Commit Graph

58380 Commits

Author SHA1 Message Date
Christian Dupuis 078933c8fd Add actuator endpoint to expose ConfigurationProperties
This information should probably be also available from the console and log similar to AutoConfigurationReport.
2013-11-29 15:16:31 +01:00
Christian Dupuis 00c8633597 Add missing new exception class 2013-11-29 15:16:30 +01:00
Christian Dupuis 2c67e06b47 Move enablement of endpoints into AbstractEndpoint 2013-11-29 15:16:30 +01:00
Dave Syer f1026b1202 Add JreProxySelector to handle global proxy configuration
The JreProxySelector is used it to adjust the repositories
as they are added to the GrapeEngine. It looks at standard
System proeprties like http.proxyHost and http.proxyPort
and in addition consults standard JRE Authenticator features
for credentials (falling back to System properties
http.proxyUser and http.proxyPassword).

Fixes gh-136
2013-11-29 10:12:08 +00:00
Dave Syer e28e6d9593 More updated howtos 2013-11-29 09:46:10 +00:00
Dave Syer 19fa5b9af6 Updated howtos 2013-11-29 07:39:24 +00:00
Dave Syer d39fc5bb92 Tidy up some tests 2013-11-28 17:35:48 +00:00
Dave Syer 9db55a3b71 Add explicit test for config file and SpringApplication 2013-11-28 16:46:21 +00:00
Dave Syer 131cfd6114 Update @SpringApplicationConfiguration after comment in 3e6c1b 2013-11-28 15:45:57 +00:00
Dave Syer 259e6a6ec1 RedisProperties prefix -> spring.redis 2013-11-28 15:12:55 +00:00
Dave Syer e74da3fa73 FIXME test additions 2013-11-28 15:01:00 +00:00
Dave Syer 3e6c1b435f Add @SpringApplicationConfiguration (for integration testing)
Example:

    @RunWith(SpringJUnit4ClassRunner.class)
    @SpringApplicationConfiguration(classes = SampleDataJpaApplication.class)
    public class CityRepositoryIntegrationTests {

    	@Autowired
    	CityRepository repository;

Fixes gh-66.
2013-11-28 14:35:36 +00:00
Dave Syer 3e5e058b02 Ensure /error view is available 2013-11-28 14:20:45 +00:00
Dave Syer 8c9b7bd406 Use SimpleHealthIndicator if DataSource present 2013-11-28 14:20:26 +00:00
Dave Syer 16222270b8 Improve reporting of SpEL condition matching 2013-11-28 13:08:19 +00:00
Dave Syer 20bede21ad Add support for parent hierarchy in AUtoConfigurationReport 2013-11-28 11:39:27 +00:00
Dave Syer 47d079d937 Add default proxy settings from System proerties
Aether apparently doesn't use the java.net.* APIs for
TCP connections so it doesn't notice when a user sets
-Dhttp.Proxy*. To fix it is painful, and leads me to
suspect that actually we might want to parse a
settings.xml at some point (however unpalatable that
is).

For now I have added a Proxy to all RemoteRepository
instances that we create in the CLI if the user
has set -Dhttp.proxyHost (and/or -Dhttps.proxyHost for
a secure repository).

TODO: authentication. Is there a standard way to specify
that globally via system properties.

TODO: maybe use per-repository settings if provided
(e.g. in settings.xml).
2013-11-28 10:10:57 +00:00
Dave Syer b74a9b2d06 Add tests to FIXME 2013-11-27 16:03:27 +00:00
Dave Syer 67cc427d2b Expose local port in EmbeddedServletContainer 2013-11-27 15:50:46 +00:00
Dave Syer d1dcb015b6 Ensure only supported listeners are instantiated
Previously all EventListeners were eagerly instantiated
but that can cause problems because it happens quite early
in the lifecycle. Better to be explicit about the
supported types.
2013-11-27 15:04:05 +00:00
Dave Syer aefec4c16a Check that SessionScope is available early 2013-11-27 14:04:09 +00:00
Dave Syer 2f6f88e370 Fix actuator sample for new shutdown property 2013-11-27 13:53:12 +00:00
Dave Syer 710dfaf9b2 Add howto for migrating existing app 2013-11-27 13:49:44 +00:00
Dave Syer 7ef9688d99 Javadocs clarification of role of DispatcherServlet 2013-11-27 10:21:38 +00:00
Dave Syer 756b5e1b60 Convert JSP sample to deployable (executable) WAR 2013-11-27 10:17:04 +00:00
Dave Syer 171c1366f9 Move shutdown enable flag to the endpoint 2013-11-26 18:01:08 +00:00
Dave Syer cd54e1ed49 Add some more howtos 2013-11-26 18:00:50 +00:00
Dave Syer 94e2f90793 Ensure endpoints.jolokia.enabled=false switches off jolokia 2013-11-26 13:27:10 +00:00
Dave Syer 564475556e Allow for commandLineArgs to be already present in Environment 2013-11-26 10:00:50 +00:00
Dave Syer 3f1cfbf241 Add JSTL to JSP sample 2013-11-26 10:00:50 +00:00
Phillip Webb f4f668a52b Polish 2013-11-25 17:12:56 -08:00
Phillip Webb c5911e8634 Attempt to restore Javadoc 2013-11-25 16:31:46 -08:00
Phillip Webb 8845c9c279 Fixup for upstream Spring changes 2013-11-25 16:25:03 -08:00
Dave Syer 29293a1ae5 Maybe not 2.9.1 2013-11-25 18:20:36 +00:00
Dave Syer c113e37f65 Javadoc 2.9.1 seems to be broken 2013-11-25 18:09:28 +00:00
Dave Syer cb38abff41 Add starter for howto.md 2013-11-25 17:28:51 +00:00
Dave Syer aed0e0f217 Add provided scope for tomcat 2013-11-25 17:22:14 +00:00
Dave Syer a9e4400f82 Add test for PropertyPlaceholderAutoConfiguration 2013-11-25 16:07:07 +00:00
Dave Syer aeb0f0a625 Add random.* property source 2013-11-25 15:08:53 +00:00
Dave Syer 94c5203de6 Add more smarts to properties binding
* Underscores are allowed as nested property field separators
* System and env vars are only considered for binding if they
look like they apply to a given bean when ignoreUnknownFields
is false
2013-11-25 15:08:53 +00:00
Christian Dupuis 04b7b9b2ca Rework handling of default shell authentication method in the absence of Spring Security
In case Spring Security is missing from the class path, shell auto configuration will now fall back gracefully to simple authentication and emit warning to the console.

fixes #114
2013-11-25 16:07:58 +01:00
Christian Dupuis d828f13a09 Fix exec-maven-plugin configuration issue
fixes #133
2013-11-25 15:18:34 +01:00
Christian Dupuis e06596ada8 Merge pull request #132 from nitram509/fix-exception-msg-typos
fixed typos in Exception messages
2013-11-25 02:25:17 -08:00
Dave Syer 98ae4ed928 Add ignoreNestedFields option to @ConfigurationProperties
@ConfigurationProperties(ignoreUnkownFields=false,ignoreNestedFields=true)
is now a useful option for binding to "top-level" command line options
(without a prefix). In that case we don't try to bind to `server.*` and
other common prefixed property values (at the cost of not being able to
bind to nested beans).
2013-11-25 09:15:09 +00:00
Dave Syer d8033189d0 Disable javdoc until it can be fixed 2013-11-24 14:01:26 +00:00
nitram509 cbc9c6a156 fixed 3 x typos in Exception messages 2013-11-24 13:40:50 +01:00
Dave Syer 8efa2fc569 Use server.port=0 for scanning
This leverages existing capabilities of teh JDK and the OS
to grab a port at random and not have it stolen by another
process. It's very hard to avoid that race condition in
pure Java code, so why bother?

User can set port<0 to disable autoStart of connectors (e.g.
to start a web application context but not have it listen on
any port). In that case the actual socket port will be set to
0 (and therefore if it ever starts up the local port will
be random).
2013-11-23 11:26:58 +00:00
Dave Syer 59f07d37ab Scan for port near default 2013-11-22 19:59:19 +00:00
Christian Dupuis e69e190ae9 Close application context in test 2013-11-22 20:37:58 +01:00
Christian Dupuis 1b49605749 Make shell username and password configuration properties consistent with general security properties
Now simple authentication for the crsh shell can we configured using shell.auth.simple.user.name and shell.auth.simple.user.password. This is consistent with security.user.name and security.user.password.

fixes #113
2013-11-22 20:37:37 +01:00