Commit Graph

1304 Commits

Author SHA1 Message Date
nitram509 c50fe0733b TomcatEmbeddedServletContainer now fails fast, if there are exceptions during protocol handler startup (re-throw exception) 2013-11-19 13:35:06 +00:00
Dave Syer 371fa489ee Add missing starters to parent pom
Fixes gh-122
2013-11-19 13:29:31 +00:00
Dave Syer 156ef3f1a0 Weird build problem? 2013-11-19 09:16:37 +00:00
Dave Syer ded9020916 Allow Batch datbase initializer to be disabled 2013-11-19 09:03:43 +00:00
Dave Syer caffc28b4c Add test for initializers when child context created 2013-11-19 09:03:43 +00:00
Dave Syer 60f3dd9386 Be defensive about adding autoconfig report bean 2013-11-19 09:03:43 +00:00
Christian Dupuis 2e926601f2 Polish 2013-11-18 20:59:25 +01:00
Christian Dupuis dba8c01035 Polish 2013-11-18 20:09:58 +01:00
Christian Dupuis ec6a488a95 Upgrade to crash-1.3.0-beta11 2013-11-18 20:09:36 +01:00
Christian Dupuis e16e23230c Clarify default authentication settings for shell access 2013-11-18 17:48:21 +01:00
Christian Dupuis 41cbbeba79 Re-Introduce authentication specific properties 2013-11-18 17:42:50 +01:00
Christian Dupuis e009d3e47d Polish
Fixed inconsistency in method naming after last polish. Method and class name should use 'crsh' instead of 'crash' to be aligned with CRaSH code base.

Implemented facility to provide custom shell properties by adding beans of type CrshShellProperties to the ApplicationContext.
2013-11-18 17:20:45 +01:00
Christian Dupuis dc252c7417 Remove unnecessary String concatenation 2013-11-18 15:06:05 +01:00
Andy Wilkinson fd2583ed28 Support concise @Grab on all types of imports
Previously, the automatic addition of the group and version to a
@Grab annotation based on the module name would only work on standard
import statements. This commit adds support for this functionality
on wildcard imports, static imports and wildcard static imports.

All of the following are now supported:

@Grab('spring-core')
import org.springframework.util.Assert

@Grab('spring-core')
import org.springframework.util.*

@Grab('spring-core')
import static org.springframework.util.Assert.isTrue

@Grab('spring-core')
import static org.springframework.util.Assert.*
2013-11-18 12:40:57 +00:00
Dave Syer 640b9d2680 Add RedisAutoConfiguration 2013-11-18 10:54:33 +00:00
Dave Syer 71fd474ed2 Ensure ApplicationContextInitializers are not overwritten
SpringApplicationBuilder has to be careful not to overwrite the
default initializers if user calls its initializers() method.

Fixes gh-120.
2013-11-18 09:59:11 +00:00
Dave Syer 79495e7ad9 Add repository declaration to starter parent
Fixes gh-117.
2013-11-17 15:49:00 +00:00
Dave Syer 17de6689ab ENsure Vcap initializer runs before config file parser
Fixes gh-119.
2013-11-17 15:29:12 +00:00
Dave Syer 2f7214002d Update Spring to catch SPR-11069 2013-11-17 07:59:16 +00:00
Phillip Webb 0f85f31960 Polish 2013-11-16 01:22:10 -08:00
Phillip Webb 64f32893bb Source format and clean-up 2013-11-16 00:08:18 -08:00
Phillip Webb 883fd9162f Polish 2013-11-16 00:08:17 -08:00
Phillip Webb 127da15c3c Add homebrew formula as generated artifact 2013-11-16 00:08:17 -08:00
Phillip Webb 077cd662e7 Add zsh shell completion script 2013-11-16 00:08:14 -08:00
Phillip Webb fe0dd8e08f Don't provide hints for the hint command 2013-11-15 16:39:29 -08:00
Phillip Webb d2678e08de Improve startup performance for nested JARs
Refactor spring-boot-loader to work directly with low level zip data
structures, removing the need to read every byte when the application
loads.

This change was initially driven by the desire to improve tab-completion
time when working with the Spring CLI tool. Local tests show CLI
startup time improving from ~0.7 to ~0.22 seconds.

Startup times for regular Spring Boot applications are also improved,
for example, the tomcat sample application now starts 0.5 seconds
faster.
2013-11-15 16:15:47 -08:00
Phillip Webb 6a6159f106 Add JVM uptime to startup info log output 2013-11-15 15:41:51 -08:00
Dave Syer 4254eb971e Upgrade Spring Data 2013-11-15 14:00:44 +00:00
Dave Syer 8bc5e9c36c Refine semantics of server.port=0
If the server port is 0 it doesn't mean you don't want *any* container
because there might still be servlet context aware components in the
classpath. Better to try and stop the server from actually starting.

This change is a step in the right direction: it prevents the server
from starting in the start() method (even though for technical reasons
it may have already been started and stopped in initialize()).

N.B. Tomcat at least uses port=0 as a signal it should pick a random
port. Pertty useful feature that we may want to capitalize on at some
point (on the other hand having our own port scanner would be useful
generally too).
2013-11-14 14:59:30 +00:00
Dave Syer 11149443e3 Make sure Batch autoconfig only gets inlcuded once 2013-11-14 14:55:03 +00:00
Dave Syer b39ab925cf Make the AutoConfigurationReportEndpoint path a bit shorter 2013-11-14 14:54:32 +00:00
Phillip Webb 6849640cba Update README with M6 references 2013-11-09 11:05:20 -08:00
Phillip Webb ff635cf75b Move shell completion logic to Java
Refactor bash shell completion to move the majority of the logic into
the Java code. This commit also removes the need for the '--' prefix on
every command.
2013-11-09 09:31:38 -08:00
Phillip Webb 202e32425e Reinstate git commit ID in loader tools manifest
Add Spring-Boot-Commit-Id to MANIFEST.MF of spring-boot-loader-tools.
The reinstates functionality of 498ca07698
but does not cause issues in eclipse.
2013-11-07 11:03:51 -08:00
Phillip Webb dc3d670019 Strip trailing whitespace 2013-11-07 10:32:57 -08:00
Phillip Webb e6597e6f33 Fix broken tests 2013-11-07 10:30:18 -08:00
Dave Syer 0c1aa1942e Add tests for loading dependencies in starters without parent 2013-11-07 16:05:01 +00:00
Dave Syer 578fadf6f9 Attempt to allow Aether to load from local repo 2013-11-07 15:47:41 +00:00
Dave Syer e46c427b75 Remove unused field 2013-11-07 15:47:41 +00:00
Dave Syer 0b130f6f6a Pin Spring version when using security 2013-11-07 15:47:41 +00:00
Dave Syer a41a2db976 Add all starters to parent pom 2013-11-07 15:47:41 +00:00
Dave Syer 811bd32ce2 More sensible signature for servlet initializer 2013-11-07 14:03:58 +00:00
Christian Dupuis 1f922f49b0 Switch to placeholders in conditional expressions; Ensure that Crsh auto configuration works without Spring Security 2013-11-07 12:48:03 +01:00
Christian Dupuis cc941bf89b Have spring-boot-starter-shell-remote depend on spring-boot-starter-actuator 2013-11-07 12:48:03 +01:00
Christian Dupuis a498a7f477 Make simple authentication the default and log default password 2013-11-07 12:48:03 +01:00
Phillip Webb dafeddca09 Rework auto-configure report
Update the auto-configuration report to improve log formatting and to
separate the internal report data-structure from the JSON friendly
endpoint data-structure.
2013-11-06 21:40:05 -08:00
Phillip Webb 04fd7fdbbe Improve message used on match
Update OnBeanCondition and OnClassCondition to improve the message used
on a successful match.
2013-11-06 21:31:58 -08:00
Phillip Webb ab249b034d Rename Outcome -> ConditionOutcome 2013-11-06 15:40:09 -08:00
Phillip Webb a9a6077fdb Polish SpringApplicationErrorHandler 2013-11-06 15:40:09 -08:00
Phillip Webb 68e07eba5c Minor formatting polish 2013-11-06 15:40:09 -08:00