Commit Graph

114 Commits

Author SHA1 Message Date
Dave Syer
50f3a2c614 Add logging to BasicDataSourceConfiguration 2013-05-17 12:11:42 +01:00
Dave Syer
2dc296caa9 [bs-98] Add support for Tomcat database pool
* If Tomcat jdbc is available and the driverClassName and url
are provided or can be guessed (e.g. for HSQL) it is used.
Properties spring.database.{driverClassName,url} are consulted.

* If Commons DBCP is available it is used (if Tomcat is not)

* Otherwise an EmbeddedDatabase is created if all the bits are
available

* A JdbcOperations and a NamedParameterJdbcOperations are
available by default if a DataSource is created

* The data source is initialized from spring.database.schema (csv
of resource patterns)

[Fixes #49393511]
2013-05-17 11:57:02 +01:00
Dave Syer
74fffeba73 Rename LoggingInitializer to be consistent with others 2013-05-17 11:56:30 +01:00
Dave Syer
83b5240a0f Add some dependencies 2013-05-17 11:54:52 +01:00
Dave Syer
430ec347fd Tweak dependency versions 2013-05-16 16:38:59 +01:00
Dave Syer
73f28a3809 [bs-22] Add tests for JPA auto configuration
* Extracted the component scan detector so it can be used
without @EnableAutoConfiguration
* Added unit tests
* Improve logging in @Conditional processing

[#48127729]
2013-05-16 14:05:07 +01:00
Dave Syer
ad2e311f2f [bs-124] Add tests for @ConditionalOnBean
[#49989537] [bs-124] @ConditionalOnBean doesn't work
2013-05-16 12:14:46 +01:00
Dave Syer
6d21ff71ba Add some dependencies to starters 2013-05-16 12:13:53 +01:00
Dave Syer
728b4887c1 [bs-107] Remove "z" suffix from management endpoints
* /varz->/metrics
* /healthz->/health
* all actuator endpoints are now in a subpackage

[Fixes #49496887]
2013-05-15 16:13:23 +01:00
Dave Syer
53078c320e [bs-118], [bs-119]: add UI builder features
* MessageSource created automatically (location
spring.messages.basename:messages)
* Thymeleaf configured automatically to look for
templates in classpath:/templates
* Added static resource handlers for classpath:/static
and classpath:/

[Fixes #49832165] [bs-118] Support for thymeleaf templates
2013-05-15 15:58:18 +01:00
Dave Syer
ceea71fc38 [bs-53] Fix class loading problem with Log in a Condition 2013-05-13 17:36:07 +01:00
Dave Syer
71c0fdd22d Add service wrappers as main theme 2013-05-13 15:58:48 +01:00
Dave Syer
ad3076784d [bs-53] Aid for users debugging auto-configuration failures
Add logging to Condition implementations.

[Fixes #48389533]
2013-05-13 14:27:43 +01:00
Dave Syer
6fb8ae3d3b Add brief description of resource filtering 2013-05-12 21:58:54 +01:00
Dave Syer
ef5c8aa304 [bs-115] Add EmbeddedServletContainerCustomizer as a callback
* All instances are called before the container is started in
 a bean post processor
* Users still have to be careful because the customizer is
called very early in the ApplicationContext lifecycle (e.g.
might have to do a lookup for some dependencies instead of
@Autowired)

[Fixes #49671463] User-hook for customizing embedded servlet container
2013-05-10 17:20:08 +01:00
Dave Syer
56865ab260 Fix integration sample (no web dependencies) 2013-05-10 16:21:30 +01:00
Dave Syer
eb2adc0b99 More fixes for @Configuration processing 2013-05-10 15:52:53 +01:00
Dave Syer
ad19edf03b Fix bug introduced by Spring @Configuration processing 2013-05-10 15:45:12 +01:00
Dave Syer
fc8240ac88 Fix ordering problem with validator being null 2013-05-10 14:45:18 +01:00
Dave Syer
e24ffa7e64 Fix samples to include integration as a submodule 2013-05-09 17:37:06 +01:00
Dave Syer
202dae3213 Fix missing version for spring-core 2013-05-09 16:14:16 +01:00
Dave Syer
13cb224b0a [bs-113] Remove dependency on slf4j for core jars
Also added explicit version for starter dependencies.

[Fixes #49588267]
2013-05-09 15:32:31 +01:00
Dave Syer
9f4eb6befc Re-instate README 2013-05-09 14:15:14 +01:00
Dave Syer
5aeb3fe6ca Remove dependency on slf4j for core jars
[Fixes #49588267]
2013-05-09 14:11:01 +01:00
Dave Syer
21d55b231d [bs-108] Feature documentation: just a list and brief description
[Fixes #49502657]
2013-05-09 13:55:29 +01:00
Dave Syer
c65a224f4d [bs-85] Change name of groovy sample script 2013-05-09 13:14:21 +01:00
Dave Syer
c0148b4536 Skip deployment for samples 2013-05-09 12:49:59 +01:00
Dave Syer
a0e51d06ea [bs-111] Extract TraceFilterConfiguration into separate file
We want the traces to be collected for the main app, but reported
in the management app, so the confi has to be separate.

[#49578819]
2013-05-09 12:37:23 +01:00
Dave Syer
ceab9b9b33 [bs-111] Extract trace logging from Security config
It's not really a security feature (just logging request headers),
so better to put it in the main actuator autoconfig.

[Fixes #49578819] [bs-111] Unresolvable cycle when separating management.port
2013-05-09 12:21:47 +01:00
Dave Syer
bff41d51ff [bs-108] Feature documentation: just a list and brief description
[#49502657]
2013-05-09 09:53:36 +01:00
Dave Syer
7800ebbdc7 Make management.port default to server.port 2013-05-09 09:41:24 +01:00
Dave Syer
e1c3dae8a1 Restore README for Actuator 2013-05-09 09:06:12 +01:00
Dave Syer
018ee3e8b2 Add real dependencies to starter projects 2013-05-09 09:05:46 +01:00
Phillip Webb
c8f37a95c9 [bs-18] Unhack direct field access
Remove reflection hacks from ConfigurationPropertiesBindingConfiguration
following updates to Spring 4.0
2013-05-08 20:55:20 -07:00
Phillip Webb
0bc2b5673c Use Spring 4.0 now that bootstrap branch is merged 2013-05-08 20:53:56 -07:00
Phillip Webb
7624b6a9f6 Include jcl-over-slf4j with autoconfigure 2013-05-08 14:46:43 -07:00
Phillip Webb
44947b13a8 Polish calling of ExitCodeGenerators 2013-05-08 14:45:58 -07:00
Phillip Webb
589ef1868d Update hardcoded bootstrap references to 0.5.0 2013-05-08 14:41:52 -07:00
Phillip Webb
a0fb085102 Refactor to work with Spring 4.0
Refactor code to work with Spring 4.0 M1
2013-05-08 14:41:51 -07:00
Phillip Webb
a8d6b435a4 Minor Javadoc polish 2013-05-08 14:41:51 -07:00
Phillip Webb
88a1c1de41 Fix broken ServerPropertiesTests on OSX
Fixed ServerPropertiesTests to use InetAddress.getByName("127.0.0.1")
instead of InetAddress.getLocalHost().
2013-05-08 14:41:51 -07:00
Phillip Webb
4743d1803c Update JavaLoggerConfigurer to use AC ClassLoader
Update JavaLoggerConfigurer to use the ApplicationContext classloader
rather then the default classloader. Also refactored to introduce
LoggingSystem enum to act as a strategy for the specific logging
systems.
2013-05-08 14:41:51 -07:00
Phillip Webb
10c33db612 Update m2e eclipse plugin for Kepler 2013-05-08 14:40:52 -07:00
Phillip Webb
e7a67ba2a8 Use commons-logging for bootstrap dependencies
Update main bootstrap modules to use Apache commons-logging rather than
SLF4J.
2013-05-08 13:37:23 -07:00
Phillip Webb
2f3b30e49f Example pom.xml Javadoc config for Java 8
Include commented out config showing how the maven build Javadoc
section can be modified to work with Java 8.
2013-05-08 13:26:08 -07:00
Phillip Webb
cafded9e7e Polish JavaDoc 2013-05-08 13:20:25 -07:00
Dave Syer
c2058f0d8c Add UTF-8 encoding configuration to spring-bootstrap-starters POM
[Fixes #49507163]
2013-05-08 15:35:20 +01:00
Dave Syer
8bfe07c730 Use HttpStatus in ErrorPage 2013-05-08 15:33:25 +01:00
Dave Syer
dc30add6c5 Move orphaned test case 2013-05-08 12:40:53 +01:00
Dave Syer
4a292bd93f [bs-97] Support adding management endpoints to a different network
* ManagementProperties and ServerProperties now support an address property
* For example set management.port=9001,management.address=127.0.0.1 to listen
on port 9001 but only for connections from the localhost

[Fixes #49395783]
2013-05-08 12:08:02 +01:00