Commit Graph

49366 Commits

Author SHA1 Message Date
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
Dave Syer
a7118c2ff2 Fix wrong version in starters parent pom 2013-05-08 11:23:59 +01:00
Dave Syer
8231377113 [bs-85] Move round and rename some actuator packages
[#49047535]
2013-05-08 11:04:24 +01:00
Dave Syer
a5810af882 Add mvn deployment gumf 2013-05-08 10:53:37 +01:00
Dave Syer
694a1dd408 Bump version to 0.5.0.BUILD-SNAPSHOT 2013-05-08 10:07:22 +01:00
Dave Syer
c19c483ab8 Add deployment metadata 2013-05-08 10:06:14 +01:00
Dave Syer
59287f1d89 Add bootstrap profile with repositories 2013-05-08 10:00:23 +01:00
Dave Syer
b897f35cad [bs-85] New name for production-ready features = "actuator"
[#49047535]
2013-05-08 09:03:59 +01:00
Dave Syer
eb7bc64e75 [bs-86] New name for "applications" - "starters"
[#49047569]
2013-05-08 08:36:33 +01:00
Dave Syer
376ae63fc5 Fix scope of bootstrap core dependency 2013-05-08 07:05:39 +01:00
Dave Syer
98d48a3cc1 Add @CopmonentScan to default imports in CLI 2013-05-07 17:01:42 +01:00
Dave Syer
bd35fd9306 [bs-98] Add MySQL data source to service sample
[#49393511] [bs-98] Add support for Tomcat database pool
2013-05-07 17:01:15 +01:00
Dave Syer
b94aaa321d [bs-98] Add tomcat JDBC to parent pom
[#49393511] [bs-98] Add support for Tomcat database pool
2013-05-07 16:54:54 +01:00
Dave Syer
81d0f14080 [bs-52] ensure "mvn exec:java" works in trad web sample
[#48386505] [bs-52] Support for running "traditional" webapps in place
2013-05-07 09:51:03 +01:00
Dave Syer
b462bc6e6c [bs-96] Switch off m2e errors about /eclipse path
* Uploaded m2e eclipse baggage to http://static.springsource.org
* Changed location in parent pom
* Removed all main.basedir properties from poms

[Fixes #49285987]
2013-05-07 07:37:47 +01:00
Dave Syer
380b1748c9 Changes to applications poms:
* Suport maven-exec-plugin in the same way as the shade plugin, so
        $ mvn exec:java
    is all you need to do to run an app
* Update README
* Fix dependencies to nail Spring version
2013-05-03 17:09:37 +01:00
Dave Syer
7e548b5bd4 [bs-93] Add /info endpoint with git properties etc.
* If git.properties is on the classpath (e.g. from the Maven plugin)
/info will list the commit id, branch and dates.
* If application.yml has an info object at the top level that will
be diplayed as well (so e.g. you can use Maven resource filtering
top add the project name, version etc.)
* RelaxedDataBinder can now be used to bind to a Map (as opposed to
a nested Map inside teh target bean)

[Fixes #49130073]
2013-05-03 12:45:06 +01:00
Dave Syer
7e6651c0a2 Beef up README a bit 2013-05-03 08:16:40 +01:00
Dave Syer
f5bfc37896 Use Resource[] for database initialization 2013-05-03 08:16:22 +01:00
Dave Syer
47f60684e3 [bs-94] Add database initializer if schema.sql detected
* If an embedded database is created it is also initialized from
classpath:/schema.sql if it exists
* Also added (but didn't use) @ConditionalOnResource

[Fixes #49142305]
2013-05-02 18:07:53 +01:00
Dave Syer
a6fd8cad76 Update README for application properties 2013-05-02 17:02:27 +01:00
Dave Syer
61a94f212d [bs-89] Allow user to plugin validator for @ConfigurationProperties
* Also fix ordering problem in integration tests
(An application context not being closed led  to port 8080
being already in use.)
* Validator can be specified by providing a Spring Validator with
bean id configurationPropertiesValidator.

[Fixes #49067859]
2013-05-02 16:23:08 +01:00
Dave Syer
504d96eb51 [bs-92] Add simple main wrapper for SpringApplication
* Added Spring class
* Used in demo project in README
* Also fixed cycle in spring-bootstrap jar

[Fixes #49121565]
2013-05-02 15:37:47 +01:00
Dave Syer
0a730beb2a [bs-15] Integrate audit abstraction into Spring Security setup
* By default all authentication events are passed onto the
audit listener
* Access denied exceptions are still not published by Spring
Security because of a bug in the Java config support

[Fixes #48155753]
2013-05-02 12:23:57 +01:00
Dave Syer
a310a79909 [bs-15] Add audit abstraction and sensible opinionated defaults
* Added AuditEvent and AuditEventRepository
* Also AuditApplicationEvent and AuditListener for
handling AUditEvents as Spring ApplicationEvents

[Fixes #48155753]
2013-05-02 09:22:59 +01:00
Dave Syer
cee78386ee [bs-87] Add /dump endpoint
* Just dumps ThreadInfo, simple but effective
* Implementation is part of TraceEndpoint

[Fixes #49056831]
2013-05-02 08:32:22 +01:00
Dave Syer
a968b140cc Add java docs to SpringApplication.main 2013-05-02 07:15:55 +01:00
Dave Syer
68960cca4e Fix confusing sentence in README 2013-05-01 16:16:13 +01:00
Dave Syer
ce0e443b0a [bs-84] Add basic getting started guide to service project
Still work in progress, bubt enough there to get someone up a
nd running I hope
[#49047467]
2013-05-01 16:10:57 +01:00
Dave Syer
bd79ec2362 [bs-22] Move @ConfigurationProperties processing to main jar
Also add unit tests.  Note also the start.groovy for the service
sample now works.

[#48127729]
2013-05-01 14:01:13 +01:00
Dave Syer
89748028b4 [bs-35] Add validation for EndpointsProperties
[Fixes #48245695]
2013-05-01 11:38:49 +01:00
Dave Syer
30087cf6b9 [bs-55] Add strategy for setting system exit code
* Added ExitCodeGenerator and SpringApplication.exit
convenience method
* User can add bean of type ExitCodeGenerator or supply
one in the call to exit()

[Fixes #48475971]
2013-05-01 11:17:27 +01:00
Dave Syer
4d372bcc25 Remove runComponents from SpringApplication
It was basically duplicating run(Object[], String[]) - unless
there is some harm in registering a non-component with the context
that I haven't seen yet.
2013-05-01 09:59:10 +01:00
Dave Syer
5501adc862 [bs-35] Add @ConfigurationProperties EndpointsProperties and bind to application.yml
[Fixes #48245695]
2013-05-01 09:14:01 +01:00
Dave Syer
ce2a2beab4 [bs-83] Rename "container" -> "server"
* Also extracted ManagementServerProperties into a separate
bean
* TraceRepository was still causing problems during startup,
fixed that
* Allow management endpoints to be switched off with port=0

[Fixes #49046013]
2013-05-01 08:41:05 +01:00
Dave Syer
ec0e9b17ad More ordering issues in service apps
* The TraceAutoConfiguration in the service project
was loading too early because it contains a BPP
* It also had a Spring Security dependency without any
@Conditional* configuration
* Fixed by nesting the BPP in a class with @Conditional*
2013-04-30 17:37:08 +01:00
Dave Syer
0a58e560b3 Fix ordering snafu with container properties and shutdown 2013-04-30 17:05:30 +01:00
Dave Syer
833b13bbbc [bs-80] Add configurable / switchable web request trace logging (headers etc)
* Added a bean post processor for the Spring Security filter chain
(so you only get traces by default if security is on)
* Every request is logged at trace level if the dump requests flag is
on
* Requests are also dumped to a TraceRepository for later analysis (very
useful for tracing problems in real time when a support call comes in)

[Fixes #48976001]
2013-04-30 15:24:27 +01:00
Dave Syer
dd1fc3f992 Fix service integration tests 2013-04-30 15:24:27 +01:00
Dave Syer
361f500ed5 [bs-28] Add /shutdown endpoint to service apps
Disabled by default use container.allow_shutdown=true to switch
it on.  Then POST to /shutdown to shut down the app.

[#48059059]
2013-04-30 10:17:39 +01:00
Dave Syer
c4028656ef Move context initializers into subpackage 2013-04-29 17:28:04 +01:00
Dave Syer
e3d5bf2e21 [bs-29] Support for XML configuration in groovy apps
Mixed .groovy and .xml now supported bia spring CLI, e.g.

$ spring samples/runner.groovy samples/runner.xml

[Fixes #48059037]
2013-04-29 16:12:29 +01:00
Dave Syer
bb62ca835e [bs-24] Support multi-file compile from command line
* Each non-option arg is tested to see if it is a file
* If it is .groovy (or .java) it is compiled

[#48127661]
2013-04-29 15:54:09 +01:00
Dave Syer
a5f7b6ead3 Remove old groovy script code 2013-04-29 13:50:58 +01:00
Dave Syer
e8e059bc90 [bs-78] Add port=0 option to switch off main servlet container
[Fixes #48888639]
2013-04-29 09:15:03 +01:00
Dave Syer
628a8c79aa [bs-19] Medley of changes supporting integration apps
* Use file adapters in sample instead of internal flow
* Add Exception to signature of CommandLineRunner for
implementation convenience
* Updates for Security snapshots
2013-04-29 08:35:01 +01:00
Dave Syer
10c333ea10 [bs-73] Tweak algorithm for detecting anonymous classes
@Bean definitions in Groovy that contain closures have the bean name in
the class name.  Ugh.  Added regex match to catch that.

[#48718891]
2013-04-26 12:02:49 +01:00
Dave Syer
ec351e5f7d Add test for custom context initializer
[#48127729] [bs-22] Add missing unit tests
2013-04-26 11:05:17 +01:00
Dave Syer
4ca26058fa [bs-73] Tweak configuration class detection algorithm some more
This looks like becoming a recurring theme. Unfortunately it's
not very easy to test if a class might eventually be instantiatable
by Spring.

This change fixes the main bootstrap SpringApplicationTests
which were failing because they used non-static inner classes
for test configurations.
2013-04-26 10:45:17 +01:00