Commit Graph

540 Commits

Author SHA1 Message Date
Phillip Webb 49b75931b2 Allow hibernate naming strategy to be specified
Issue: #53028397
2013-08-21 09:44:43 -07:00
Biju Kunjummen 580ec27290 Fixed typo in LoggingApplicationContextInitalizer initializeLogLeve->initializeLogLevel 2013-08-21 10:48:19 +01:00
Biju Kunjummen 81603998ca Removed spring-boot related version from dependencies of samples 2013-08-21 10:45:30 +01:00
Dave Syer f083175ca5 Add test case for ivy customization
A bug in ivy (tickled by maven leaving a pom
but no jar in the local repo) would make the
default Grapes ivy config fail (cannot grab...).
Phil's workaround now has a test case.
2013-08-21 09:42:04 +01:00
Phillip Webb a97428a486 Ensure localm2 ivy repo can resolve artifacts
Fix the localm2 repository to only consider that a pom exists when
its artifact is contained in the repository.

This prevents a download error that can occur when the local m2
repository contains a POM file but not a JAR.

Issue: #55532358
2013-08-20 22:55:21 -07:00
Phillip Webb 50f82c03aa Add MultiPartConfigFactory
Issue: #55528242
2013-08-20 19:39:52 -07:00
Phillip Webb 240f3088ba Update WebMvcAutoConfiguration conditional bean
Change WebMvcAutoConfiguration to use WebMvcConfigurationSupport instead
of HanderAdapter as the @ConditionalOnMissingBean. This allows MVC to
be auto-configured even if you define additional HanderAdapters.

Issue: #55493342
2013-08-20 12:59:23 -07:00
Phillip Webb c8079b606d Update trace logging to include Hibernate SQL 2013-08-20 12:59:16 -07:00
Phillip Webb d4a7720a92 Use Hibernate ImprovedNamingStrategy by default
Update HibernateJpaAutoConfiguration to use the ImprovedNamingStrategy
for better table and column names.

Issue: #55261888
2013-08-20 11:07:04 -07:00
Phillip Webb 21dcbe2858 Polish 2013-08-20 11:06:56 -07:00
Phillip Webb 73e390c848 Exclude spring-data-rest package from being stored
Update AutoConfigurationUtils to specifically exclude spring-data-rest
packages from being stored. This prevent missing class errors caused
when Spring Boot attempts to use @ComponentScan packages as the source
for JPA entities and reads annotations that are not on the classpath.

Issue: #55489346
2013-08-20 10:43:49 -07:00
Phillip Webb 7349195d1a Move inner class to end of file for consistency 2013-08-20 10:43:49 -07:00
Dave Syer a805b1ce85 Rename SpringServletInitializer
[Fixes #55388726] [bs-292]
2013-08-20 10:00:24 +01:00
Dave Syer b67ebc751d Startup time for CLI app much quicker now
The Boot resolver didn't transfer enough of the settings
of the default ChainResolver. Adding a boolean flag was
enough to make the chatter die down for dependencies
that were unneeded.

[Fixes #55358344] [bs-291]
2013-08-20 09:50:18 +01:00
Phil Webb 013d51662c Fix README.md typo 2013-08-20 01:41:20 -07:00
Dave Syer 229943a853 Restore Tomcat in CLI
Seems to work. I think the problem was the race conditions
that we hopefully already eliminated. I got an out of memory
error running the samples tests in Eclipse, but then it went
away again (something to look out for).

[Fixes #54925992] [bs-280]
2013-08-19 17:04:54 +01:00
Dave Syer 12241ec63e Remove commons-logging dependency for starter projects 2013-08-19 15:36:02 +01:00
Dave Syer 2fbff69811 Add additional ViewResolver configuration
The DispatcherServlet adds a default InternalViewResolver
which was used by some apps, but when the actuator was
available it added an "/error" bean and effectively
switched off the default view resolver. The net fix was
to add an InternalViewResolver at the same time as
adding any other ViewResolvers.

[Fixes #55357516] [bs-290] Actuator UI app cannot serve static index.html
2013-08-19 14:10:57 +01:00
Dave Syer 10ddc90fb8 Avoid NPE in error controller 2013-08-18 18:05:46 +01:00
Dave Syer cdaf0c0960 Add sidebar 2013-08-16 15:30:05 +01:00
Dave Syer c70b0b338c Add branding to gh-pages 2013-08-16 14:15:22 +01:00
Dave Syer cb3aba54dc Move duplicate files temporarily 2013-08-16 13:59:34 +01:00
Phillip Webb 1cf1aee535 Update autoconfigure README.md with --debug info 2013-08-14 18:52:17 -07:00
Phillip Webb 4895ab4b71 Create common SpringBootCondition base class
Create a new SpringBootCondition that will log why a condition has
or has not been applied. The removes the need for ConditionLogUtils
and simplifies many of the existing condition implementations.

Issue: #55203236
2013-08-14 17:44:21 -07:00
Phillip Webb 169373c0c2 Support --debug and --trace increased logging
Update LoggingApplicationContextInitializer to detect the presence of
'--debug' and '--trace' arguments to increase log output.

Using '--debug' will set 'org.springframework.boot' loggers to DEBUG.

Using '--trace' will set 'org.springframework', 'org.apache.tomcat' and
'org.eclipse.jetty' loggers to TRACE.

Issue: #55202588
2013-08-14 17:44:13 -07:00
Phillip Webb 1344461128 Pass args to SpringApplicationInitializers
Change SpringApplicationInitializer interface to include run() args.
Allow initializers to make additional configurations based on the user
supplied arguments.

Issue: #55202588
2013-08-14 17:25:36 -07:00
Phillip Webb e1cea7dca9 Rename SpringApplication.defaultCommandLineArgs
Rename SpringApplication.defaultCommandLineArgs to defaultArgs for
consistency with the run() method arguments.

Issue: #55202844
2013-08-14 17:22:48 -07:00
Phillip Webb b0625d2f88 Support programmatic setting of log levels
Provide a common way to programmatically set log levels regardless of
the underlying log implementation.

Issue: #55202588
2013-08-14 17:16:30 -07:00
Phillip Webb 3a1358306f Add managed dependency to Spring Data Mongo 2013-08-14 11:10:10 -07:00
Phillip Webb 4c56685eee Upgrade to Spring Data 1.3.4 2013-08-14 11:10:10 -07:00
Dave Syer 7a935d371b Add test for nested properties 2013-08-14 16:37:11 +01:00
Phillip Webb c6c1f50858 Polish 2013-08-13 11:07:41 -07:00
Phillip Webb c6a0a34fd2 Readme for auto-configuration 2013-08-13 11:06:05 -07:00
Dave Syer 4e3a86eff4 Add table support to markdown 2013-08-13 10:40:28 +01:00
Dave Syer 970cb9b0f1 Build gh-pages from src/pages
* To build site install ruby 1.9.3 and `bundle` in src/main/pages
* Then run src/main/pages/build.sh (from the top level)
* Pages show up in target/pages
2013-08-13 10:27:13 +01:00
Phillip Webb 1ff76459db Polish ConditionalOn annotations
Update ConditionalOn annotations :
- Use consistent attribute names for OnClass and OnMissingClass
- Update javadoc
- Rename tests to reflect the annotation rather than the interface
2013-08-12 23:00:07 -07:00
Dave Syer 0d583deb27 Add CLASSPATH elements back to spring CLI script
Also add @WebConfiguration as a shortcut for groovy
scripts to get MVC behaviour (without a @Controller)

[#54926366]
2013-08-12 18:18:11 +01:00
Phillip Webb 8e347cddff Merge pull request #23 from chanwit/master
# By Chanwit Kaewkasi
* pull23:
  Fix a line ending issue for building on Windows
2013-08-12 09:26:02 -07:00
Chanwit Kaewkasi 1b38cddeae Fix a line ending issue for building on Windows 2013-08-12 09:24:36 -07:00
Phillip Webb e7689fd7c9 Revert "Add repository declarations to parent poms"
This reverts commit e8430f6119.
2013-08-12 09:10:39 -07:00
Dave Syer 68e84f7d02 Add pool parameters to AbstractDataSourceConfiguration
* Exposed common pool properties in the base class for data source configuration
* Made it @ConfigurationProperties so it binds in strongly typed sense

[Fixes #53028455] [bs-214] Add pool parameters to AbstractDataSourceConfiguration
2013-08-12 11:16:34 +01:00
Dave Syer 56f5b3ad0f Add logging to dispatcher servlet condition 2013-08-12 10:39:04 +01:00
Dave Syer 0af9d2022a Allow user to supply servlets and filters and still get default DispatcherServlet
Instead of not installing one at all if there is any ServletContextInitializer,
Spring Boot will now install a DispatcherServlet if context does not contain one
already with the magic name "dispatcherServlet".

[Fixes #54674870] [bs-277]
2013-08-12 10:32:49 +01:00
Dave Syer 86064f48e0 Add GVM instructions to README 2013-08-11 12:45:52 +01:00
Dave Syer e8430f6119 Add repository declarations to parent poms 2013-08-11 12:27:58 +01:00
Phillip Webb 81541643fd Fix accidentally committed errors in README.md 2013-08-10 11:40:26 -07:00
Phillip Webb 878ff13620 Documentation updates 2013-08-09 15:34:04 -07:00
Phillip Webb ce5e145afa Add Libraries.NONE static final 2013-08-09 15:33:37 -07:00
Phillip Webb 0b7256e7f9 Fix compile failure on JDK 6 2013-08-09 13:01:39 -07:00
Phillip Webb 00fc04c01e Simplify OnBeanCondition
Merge OnMissingBeanCondition into OnBeanCondition and simplify code.
Polish on bean conditions
2013-08-09 12:36:20 -07:00