Commit Graph

614 Commits

Author SHA1 Message Date
Phillip Webb
c9b3af09b4 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-09-05 17:13:36 -07:00
Phillip Webb
87b0cea6f6 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-09-05 17:13:36 -07:00
Phillip Webb
76bda7e3b4 Rename SpringApplication.defaultCommandLineArgs
Rename SpringApplication.defaultCommandLineArgs to defaultArgs for
consistency with the run() method arguments.

Issue: #55202844
2013-09-05 17:13:36 -07:00
Phillip Webb
5b77028f04 Support programmatic setting of log levels
Provide a common way to programmatically set log levels regardless of
the underlying log implementation.

Issue: #55202588
2013-09-05 17:13:35 -07:00
Phillip Webb
5446a20a90 Add managed dependency to Spring Data Mongo 2013-09-05 17:13:35 -07:00
Phillip Webb
0fdafa885f Upgrade to Spring Data 1.3.4 2013-09-05 17:13:35 -07:00
Dave Syer
c25736d84f Add test for nested properties 2013-09-05 17:13:35 -07:00
Phillip Webb
4e83826b41 Polish 2013-09-05 17:13:35 -07:00
Phillip Webb
82ed7a676d Readme for auto-configuration 2013-09-05 17:13:35 -07: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
Phillip Webb
82320b3525 Simplify OnWebApplicationCondition
Merge OnNotWebApplicationCondition into OnWebApplicationCondition and
simplify code.
2013-08-09 12:35:43 -07:00
Phillip Webb
7525eb31f1 Simplify OnClassCondition
Merge OnMissingClassCondition into OnClassCondition and simplify code.
2013-08-09 12:34:14 -07:00
Phillip Webb
cf655945aa Polish 2013-08-09 12:28:54 -07:00
Dave Syer
7bea9dd973 Massage MVC test a bit
* Use *Tests as classname
* Fixed broken test in suite where ID is not always "1"
2013-08-09 16:41:58 +01:00
Biju Kunjummen
31af68a915 Added a Spring MVC test for the Sample MessageController 2013-08-09 16:31:11 +01:00
Dave Syer
0e798a32aa Fix issue with new format of VCAP_APPLICATION 2013-08-09 13:44:28 +01:00
Dave Syer
08e679753d Add CLA link to CONTRIBUTING.md 2013-08-08 16:34:20 +01:00
Dave Syer
2ba1bd9dbb Fix security dependency in README 2013-08-08 16:30:14 +01:00
Dave Syer
a2fe8a0e89 Actuator README accuracy 2013-08-08 16:06:30 +01:00
Dave Syer
f645b03939 Fix pom in actuator README 2013-08-08 15:58:05 +01:00
Phillip Webb
d8eadfddff Limit Servlet Listener registration
Limit Servlet Listener registration to the specific supported types.

Issue: #54112999
2013-08-08 05:08:55 -07:00
Phillip Webb
f25b9e109f Remove trailing whitespace from bash script 2013-08-08 05:07:44 -07:00
Dave Syer
42bb793155 Add ServletContextListener to embedded web app
* User can add @Bean of type EventListener (e.g.
ServletContextListener)

[Fixes #54112999] [bs-254]
2013-08-08 11:27:07 +01:00
Dave Syer
3b9df63f73 Add bash completion for spring command
* Added src/main/content/bash_completion.d/spring
* Also made all commands alias to "--<self>" so
"--help" is a synonym for "help" (for instance). This
helps with the completion generation.

[Fixes #54827292]
2013-08-08 11:00:41 +01:00
Phillip Webb
f5bae04714 Ignore websocket sample for now 2013-08-07 23:09:08 -07:00
Phillip Webb
b5e81ff42d Fix broken test dependencies 2013-08-07 22:52:26 -07:00
Phillip Webb
eb69732fbb Reinstate integration tests 2013-08-07 22:34:09 -07:00
Phillip Webb
8a33c39f0b Polish AutoConfigurationSorter 2013-08-07 16:29:41 -07:00
Dave Syer
0d19b2d9fa Revert change to placeholders in config file initializer 2013-08-07 16:53:15 +01:00
Rob Winch
f40758c13d Update README link text to be M1
Previously the link text for the download of 0.5.0.M1 was labeled as a
SNAPSHOT.

This commit updates the link text to be the correct version.
2013-08-07 14:32:53 +01:00
Dave Syer
521174754e Add default /error view for HTML clients
* Add integration tests for /error view
* Add "error" @Bean as default view for HTML

Users may see side effects because now there will be
a ContentNegotiatingViewResolver by default for the
first time in a vanilla Actuator app. Should be
interesting.

[Fixes #54597932] [bs-273] Circular view reference for /error
2013-08-07 10:55:30 +01:00
Dave Syer
62f08bb4ec Tweak travis again 2013-08-07 10:31:44 +01:00
Dave Syer
33658c2933 Add @AutoConfigureBefore and simple implementation
[#54597932] [bs-273] Circular view reference for /error
2013-08-07 10:19:56 +01:00
Phillip Webb
91a56f7bb7 Merge pull request #13 from jotomo/patch-1
# By Johannes Mockenhaupt
# Via Johannes Mockenhaupt
* patch-1:
  Fix broken links to samples.
2013-08-06 16:52:01 -07:00
Johannes Mockenhaupt
c3a7dbb192 Fix broken links to samples. 2013-08-07 01:26:35 +02:00
Phillip Webb
1b370b54b6 Update README.md brew instructions 2013-08-06 09:25:32 -07:00