- 01 Nov, 2014 1 commit
-
-
Dave Syer authored
See gh-1801
-
- 31 Oct, 2014 4 commits
-
-
Dave Syer authored
Fixes gh-1775
-
Dave Syer authored
-
Dave Syer authored
All metrics in the MetricRegistry have been added unconditionally for now. Fixes gh-1795
-
Stephane Nicoll authored
This commit adds a new command to the CLI that allows to initialize a new project from the command line. It uses the Spring initializr service to actually generate the project. The command offers two main operations: 1. Listing the capabilities of the service (--list or -l). This basically dumps the defaults of a given service and the list of dependencies and project types it supports 2. Generating a project. By default, http://start.spring.io is used and its configured defaults are applied. Running spring init would therefore have the same effect as clicking the 'generate project' on the UI without entering any extra information. No file is overwritten by default. The generation can be customized with the following options: * --boot-version (-bv) Spring Boot version the project should use * --dependencies (-d) comma separated list of dependencies to add to the generated project * --java-version (-jv) Java version to use * --packaging (-p) the packaging for the project (jar, war) * --target the url of the service to use The actual type of the project can be defined in several ways: 1. Using the --type (-t) option that identifies a type that is supported by the service 2. A combination of --build and/or --format that can be used to uniquely identify matching these tags. Build represents the build system to use (e.g. maven or gradle) while --format defines the format of the generated project. The project is saved on disk with the name provided by the server through the Content-Disposition header, if any. It is possible to force it with the --output option. It is possible to overwrite existing files by adding the --force (-f) flag. The --extract (-x) option allows to extract the project instead of saving the zip archive. By default, the project is extracted in the current working directory but it is possible to specify an alternate directory using the --output option. Fixes gh-1751
-
- 30 Oct, 2014 6 commits
-
-
Phillip Webb authored
-
Phillip Webb authored
Update LogbackLoggingSystem to programmatically configure logback defaults rather than parsing XML. This change shaves about 100ms off the start up time. Fixes gh-1796
-
Andy Wilkinson authored
-
Andy Wilkinson authored
GroovyWebConfiguration creates a GroovyTemplateViewResolver which is a UrlBasedViewResolver sub-class. UrlBasedViewResolver is provided by spring-webmvc. Previously, if a user configured a web application but did not have spring-webmvc on the classpath, the application would fail to start with a NoClassDefFoundError for UrlBasedViewResolver. This commit makes GroovyWebConfiguration conditional on UrlBasedViewResolver being on the classpath so that it backs of in the absence of spring-webmvc. Fixes gh-1793
-
Andy Wilkinson authored
Previously, Spring Security's filter had no configured order. Due to the use of AnnotationAwareOrderComparater this meant that its order defaulted to LOWEST_PRECEDENCE. This meant that a user had to declare a FilterRegistrationBean for the filter and explicitly set its order if they want another filter to run after Spring Security's. This commit updates the security auto-configuration to assign a default order of zero to Spring Security's filter, allowing filters to be easily configured to run before it or after it. This default value can overridden using the server.filter-order property. The default order is also exposed as a constant on SecurityProperties, allowing it to be referenced from other filter declarations. Closes gh-1640
-
Phillip Webb authored
Prior to this commit LoggingSystem initialization would happen multiple times. Once to configure "quiet" logging, and again to configure correct settings once the Application was initialized. This could cause problems if `logging.groovy` logback files were used. The logging system is now only initialized once (when possible) by following these steps: - Standard logging initialization occurs via the actual logging implementation used (e.g. logback will load a logback.xml file if it exists) - beforeInitization() is called to prevent early log output. Implementations now either use a Filter or simply set the root logging level. - initialize() is called with an optional log configuration file (e.g a custom logback.xml location) and an optional log output file (the default is null indicating console only output). The initialize() method will attempt to prevent double initialization by checking if a standard configuration file exists. Double initialization now only occurs in the following situations: - The user has a standard configuration file (e.g. classpath:logback.xml) but also specifies a logging.config property. Double initialization is required since the specified configuration file supersedes the default. - The user has a standard configuration file (e.g. classpath:logback.xml) and specifies a logging.file property. Double initialization is required since the standard configuration may use a ${LOG_FILE} reference. In addition this commit removes the `logging.console` option and now assumes that logging either occurs only to console or to both the console and a file. This restriction helps simplify the LoggingSystem implementations. If file only logging is required a custom logback.xml can be used. Fixes gh-1091 See gh-1612, gh-1770
-
- 29 Oct, 2014 12 commits
-
-
Phillip Webb authored
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-1787
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-1774
-
Andy Wilkinson authored
Closes gh-1767
-
Andy Wilkinson authored
Spring IO Platform already provides dependency management for JavaMail. This commit updates Boot’s new JavaMail dependency management to align with the Platform, thereby allowing the Platform to inherit Boot’s dependency management instead of defining its own.
-
Stephane Nicoll authored
-
Stephane Nicoll authored
This commit adds a new starter to auto-configure a MailSender when the necessary classes are present and when the property "spring.mail.host" is set. The auto-configuration also accepts any arbitrary properties that JavaMail might need using the "spring.mail.properties" prefix. Fixes gh-1760
-
Dave Syer authored
There actually isn't anything much we can (or should) change here. Spring always copies PropertySources and profiles down into the child context when you set its parent. That seems sensible. So you can add a new profile in a child context but it will always "inherit" from its parent. See gh-1776
-
Stephane Nicoll authored
* whitelabel-typo: Fix a typo in error.whitelabel.enabled
-
Sebastien Deleuze authored
-
- 28 Oct, 2014 17 commits
-
-
Andy Wilkinson authored
Conflicts: spring-boot-dependencies/pom.xml
-
Andy Wilkinson authored
Closes gh-1782
-
Andy Wilkinson authored
Fixes #1781
-
Andy Wilkinson authored
-
Dave Syer authored
-
Andy Wilkinson authored
-
Dave Syer authored
-
Dave Syer authored
-
Dave Syer authored
-
Dave Syer authored
also rename spring-cloud starter
-
Andy Wilkinson authored
The CI build is failing, but, for some reason, the same tests are working fine on developer machines. This commit increases the level at which the logging calls are being made to severe in the hope that some CI-specific configuration is filtering out the calls when they're at info level.
-
Christian Dupuis authored
-
Andy Wilkinson authored
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Fixes gh-1753
-
Dave Syer authored
Fixes gh-1612, Fixes gh-1770
-
David Liu authored
-