- 04 Nov, 2014 10 commits
-
-
Phillip Webb authored
Update ConfigurationPropertiesBindingPostProcessor to ensure that the defaultConversionService is only created once. Fixes gh-1822
-
Phillip Webb authored
-
Stephane Nicoll authored
Disable JTA auto-configuration altogether with a simple property. This can be useful if the environment is JTA capable but the application does not require it. Fixes gh-1457
-
Stephane Nicoll authored
-
Stephane Nicoll authored
Enable ConditionalOnJndi evaluation and add tests that validate it works as expected Fixes gh-1820
-
Stephane Nicoll authored
Override the default StringHttpMessageConverter provided by the standard Spring MVC configuration so that is uses UTF-8 instead of the aging default of the servlet spec (that is ISO-8859-1) Fixes gh-1800
-
Dave Syer authored
-
Dave Syer authored
Fixes gh-1816
-
Phillip Webb authored
See gh-1590
-
Phillip Webb authored
-
- 03 Nov, 2014 17 commits
-
-
Dave Syer authored
Fixes gh-1104
-
Dave Syer authored
If the DataSource is a Tomcat one we force it to register an MBean if spring.jmx.enabled=true Fixes gh-1590
-
Stephane Nicoll authored
This commit updates the help command to also show some example(s) to illustrate how the command can be used. The commit also defines useful examples for the init command Fixes gh-1809
-
Stephane Nicoll authored
This commit reworks a7e1ec84 to fix the build failure and update the documentation regarding default maven filtering option with spring-boot-starter-parent Fixes gh-1199
-
Stephane Nicoll authored
Prior to this commit, specifying the --format and/or --build options alongside --type did not use the explicit type as it should. This commit ignores the --build and --format options if a type is explicitly set. Fixes gh-1807
-
Andy Wilkinson authored
Closes gh-1709
-
Dave Syer authored
It *is* very useful to have filtering on by default, so that is now the case (in spring-boot-starter-parent). Users can filter resources by default by adding @*@ placeholders (so as not to clash with Spring ${} placeholders). Fixes gh-1199
-
Stephane Nicoll authored
This commit moves the --output switch to a regular argument. This aligns to other command, i.e. spring init my-project.zip would save the project to "my-project.zip" in the current directory. This commit also auto-detects the --extract option if the location ends with a slash, i.e. spring init demo/ would extract the content of the project in a demo directory that is local to the current directory. Fixes gh-1802
-
Stephane Nicoll authored
-
Dave Syer authored
The old resolver class is deprecated already, and there's no reason to continue to support the View and View resolver implementations from Boot 1.1, so I removed those. Also there is no need to support older versions of Groovy, so I removed a config class that was conditional on a groovy version (by looking for the markup support). Fixes gh-1578
-
Brian Clozel authored
Update `GroovyTemplateAutoConfiguration` to use Spring 4.1 Groovy Markup Template infrastructure instead of Boot's. Fixes gh-1552
-
Phillip Webb authored
-
Phillip Webb authored
Add an appendix to the reference documentation describing the format of configuration meta-data and how the annotation processor can be used. Closes gh-1001
-
Stephane Nicoll authored
Add a @NestedConfigurationProperty annotation which can be used to customize how configuration mete-data is generated. Prior to this commit only inner-classes where considered nested (see Tomcat in ServerProperties). Using this new annotation, the Ssl property in ServerProperties can be detected as well. See gh-1001
-
Stephane Nicoll authored
Update the `spring-boot`, `spring-boot-autoconfigure` and `spring-boot-actuator` project to generate configuration meta-data files during compilation. See gh-1001
-
Phillip Webb authored
Update `ConfigurationMetadataAnnotationProcessor` to include the 'defaultValue' of a property when possible. For example the 'defaultValue' or 'server.port' is '8080'. Default values are detected by inspecting the field assignments of @ConfigurationProperties items. In order to detect field values some internals of the Java compiler are used. To save a dependency on 'tools.jar' internal javac classes are accessed using reflection. See gh-1001
-
Stephane Nicoll authored
Adds an annotation processor to generates a JSON meta-data file at compile time from @ConfigurationProperties items. Each meta-data file can include an array or 'properties' and 'groups'. A 'property' is a single item that may appear in a Spring Boot 'application.properties' file with a given value. For example, 'server.port' and 'server.context-path' are properties. Each property may optionally include 'type' and 'description' attributes to provide the data type (e.g. `java.lang.Integer`, `java.lang.String`) and some short documentation (taken from the field javadoc) about what the property is for. For consistency, the type of a primitive is translated to its wrapper counterpart, i.e. `boolean` becomes `java.lang.Boolean`. A 'group' provides a higher level grouping of properties. For example the 'server.port' and 'server.context-path' properties are in the 'server' group. Both 'property' and 'group' items may additional have 'sourceType' and 'sourceMethod' attributes to indicate the source that contributed them. Users may use `META-INF/additional-spring-configuration-metadata.json` to manually provide additionally meta-data that is not covered by @ConfigurationProperties objects. The contents of this file will be read and merged with harvested items. The complete meta-data file is finally written to `META-INF/spring-configuration-metadata.json`. See gh-1001
-
- 02 Nov, 2014 5 commits
-
-
Phillip Webb authored
Update OnBeanCondition to use a new BeanTypeRegistry which includes optimized code when using a DefaultListableBeanFactory. The optimized version calculates bean types only once per bean and caches the result. Prior to this change the sample "pet clinic" application would spend 400-500 milliseconds evaluating OnBeanConditions, after this change it spends around 120 milliseconds. Fixes gh-1803
-
Phillip Webb authored
-
Phillip Webb authored
Update ManagementSecurityAutoConfiguration to return IgnoredPathsWebSecurityConfigurerAdapter rather than WebSecurityConfigurer<WebSecurity>.
-
Phillip Webb authored
Conflicts: spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SecurityAutoConfigurationTests.java
-
Phillip Webb authored
-
- 01 Nov, 2014 6 commits
-
-
Dave Syer authored
Instead of just blindly creating the default authentication manager, after thic change we count the beans of type GlobalAuthenticationManagerConfigurer and assume that if we detect more than we expect (one from Boot and one from Spring Security) then the user is telling us they want to configure the AuthenticationManager themselves. Fixes gh-1801
-
Phillip Webb authored
Change InitializrService to use a late binding CloseableHttpClient since the calling `HttpClientBuilder.create().build()` is slow. Fixes gh-1764
-
Phillip Webb authored
Rename a few classes and methods and extract some logic into helper classes. Also change 2 char shortcuts to a single char. Closes gh-1751
-
Phillip Webb authored
Apply eclipse formatting rules to b2fe2dd9. See gh-1751
-
Phillip Webb authored
-
Dave Syer authored
See gh-1801
-
- 31 Oct, 2014 2 commits