Commit Graph

133 Commits (14aa163731985db3f8a28b871b2ff113e92f6cc2)

Author SHA1 Message Date
Phillip Webb 14aa163731 Start to breakup README.md documentation 12 years ago
Phillip Webb 30bf5dcb0d Do not using static finals for PID and format
Update SimpleFormatter so that the PID and format can be different per
formatter instance.
12 years ago
Dave Syer 217a6a4cd1 Unify log format of default JDK logger with other systems 12 years ago
Phillip Webb dc1b787a01 Support color log output
Rework logback formatting to include ansi color output. Also added
support for JUL over SLF4J to ensure that tomcat logging looks OK.

Issue: #53249833
12 years ago
Phillip Webb 5c46a39494 Polish ANSI code 12 years ago
Phillip Webb a324beadac Create LoggingSystem class to configure logging
Add LoggingSystem class that can be used to configure various logging
systems in a consistent way. Mostly the code is migrated from the
LoggingApplicationContextInitializer.
12 years ago
Phillip Webb ae20d389c4 Add SpringApplicationInitializer strategy
Add SpringApplicationInitializer that can be used to initialize a
SpringApplication before it runs. An ApplicationContextInitializer
can optionally implement this interface.
12 years ago
Phillip Webb 0b673d82e2 Add simple ANSI encoder and colorize the banner
Issue: #51754753
12 years ago
Phillip Webb 2a4454b524 Add simple Java Util Logging formatter
Add simple formatter used with the default logging.properties to
improve JUL output.
12 years ago
Phillip Webb d4b9014b64 Log useful information on startup
Include the bootstrap version number in the banner and log information
such as the host name when starting.

Issue: #53030523
12 years ago
Phillip Webb 7d0c0fc0dd Polish 12 years ago
Dave Syer 6dbd6d7c4c [bs-178] Use OpenEntityManagerInView by default in webapp with JPA
If JPA is used and the context is a webapp we add the OEMIV interceptor.
It can be switched off by the user declaring a bean of type OEMSIVI or
the corresponding Filter, or by setting spring.jpa.open_in_view=false.

[Fixes #52939983]
12 years ago
Dave Syer a7c3edefe8 Tied up loose end for spring profile binding in YAML
The short story: we only support comma-separated spring.profiles
in YAML documents.

[#51968679]
12 years ago
Dave Syer d5aad97d1f [bs-168] Support convenient binding of @Bean to external source
@ConfigurationProperties now has a path() attribute that can be used
to specify a resource location explicitly.

[Fixes #51968657]
12 years ago
Dave Syer 15ba11f302 [bs-167] Fixed YamlProcessor to not create a key for an array
[Fixes #51968679] YamlPropertiesFactoryBean creates unbindable keys
(the toString() of the whole map for instance)
12 years ago
Phillip Webb 86ce60593b Relax logging tests for CI 12 years ago
Phillip Webb fbc68fe145 Tweak EmbeddedServletContainerCustomizer javadoc
Make it a little clearer that a
EmbeddedServletContainerCustomizerBeanPostProcessor is usually involved.

Issue: #53029445
12 years ago
Phillip Webb 3ba700a861 Revert accidentally changed logging.properties 12 years ago
Phillip Webb 02ae46d40e Further attempt to fix CI log test failures 12 years ago
Phillip Webb 83d3b508a8 Revert "@Ignore logging tests that fail on CI"
This reverts commit 2630aa732f.
12 years ago
Phillip Webb dbd29f36ec Protect against malformed logging.config
Ensure that any user specified logging.config exists. Required for
CI build as bamboo sets a "LOGGING_CONFIG" environment variable.
12 years ago
Phillip Webb 2630aa732f @Ignore logging tests that fail on CI 12 years ago
Phillip Webb abad5aa8e4 Attempt to fix logging tests that fail in CI 12 years ago
Phillip Webb c52972ceec Polish 12 years ago
Phillip Webb 0b863611d9 Package restructure 12 years ago
Phillip Webb cd51f357a3 Further maven module restructure 12 years ago
Phillip Webb 40bf334871 Restructure projects layout 12 years ago
Dave Syer 3996353e35 Make logging config come after config file
...otherwise you can't control the log configuration from
application.properties.
12 years ago
Dave Syer 7e579d3652 Revert strange looking DataSource chamge 12 years ago
Phillip Webb 510e16a809 Don't consider system ClassLoader in Tomcat
Modify TomcatEmbeddedServletContainerFactory to ensure that the
system ClassLoader is not considered when loading classes.

This is required to fix issues when working with executable JARs
created with the maven plugin.
12 years ago
Dave Syer f3cb6d46ce Add test for Spring integration tests 12 years ago
Greg Turnquist db05637e06 Add MultipartAutoConfigure to spring.factories
Update META-INF/spring.factories to include MultipartAutoConfigure.
Also tweaked the class @Conditionals and Javadoc.

Issue: BS-157
12 years ago
Greg Turnquist 9ab2f98df0 Tune expected exceptions to support more platforms
It appears that some machines break when looking for ConnectionException,
but not SocketException, both of which are IOExceptions. This seems to make
tests pass on more machines without compromising the intentions of the API.

[BS-162]
12 years ago
Greg Turnquist f8c20919f9 [BS-157] Fix misnamed method
Fix typo in EmbeddedServletContainerFactory.
e enter the commit message for your changes. Lines starting
12 years ago
Phillip Webb 018231d20a Polish 12 years ago
Dave Syer 7bf3e35249 Remove some try/catch blocks from test methods 12 years ago
Greg Turnquist 4b1c58d736 [BS-157] Add MultipartConfig support
Use Servlet 3.0 features to autodetect a MultipartConfigElement and
hence autowire multipart support in the servlet container.
12 years ago
Dave Syer 697c210155 Add cacheable switch to Thymeleaf template resolver
User can set spring.template.cache=false to change the behaviour
12 years ago
Dave Syer e1bac589fb Use available Converters for @ConfigurationProperties binding 12 years ago
Phillip Webb 9782747027 Use SpringZero Banner 12 years ago
Phillip Webb 8c347fc99b Numerous changes to actuator
Numerous changes to the actuator project, including:
- Specific Endpoint interface
- Spring MVC/Enpoint adapter
- Management server context changes
- Consistent auto-configuration class naming
- Auto-configuration ordering
- Javadoc, code formatting and tests
12 years ago
Phillip Webb dd69d0f660 Polish and Fixup
Polish and fixup:
- Ordered auto-configuration
- @ConditionalOnBean default on @Bean methods
- Improved separation of auto-configure classes
- Consistent naming
- Javadoc, code formatting and tests
12 years ago
Phillip Webb 2f84df66b6 Always store @ComponentScan details
Refactor JpaComponentScanDetector to a more general use utility and
ensure that details are always stored.
12 years ago
Phillip Webb b572d98cbf Support ordering of auto-configuration classes
Update EnableAutoConfigurationImportSelector to sort auto-configuration
classes based on @Order and @AutoConfigureAfter annotations.
12 years ago
Phillip Webb 3536fc68f5 Update On(Missing)Bean Condition logic
Update OnBeanCondition and OnMissingBeanCondition to work better
with @Configuration classes and to support an optional considerHierarchy
annotation value.

The class value for conditions can now also be inferred when used on
@Bean methods.
12 years ago
Phillip Webb 6a2f36a68a Obtain ServletContextInitializer beans later
Update EmbeddedWebApplicationContext to obtain ServletContextInitializer
beans after self initialization. Allows @Configuration beans to be
ServletContextAware.
12 years ago
Dave Syer 20cce0c69c [bs-52] Added support for SpringApplication in a ServletContextInitializer
WAR applications should extend SpringServletInitializer to take advantage
of Servlet 3.0 initialization and SpringApplication context loading features.

[#48386505] [bs-52] Support for running "traditional" webapps in place
12 years ago
Dave Syer e011312c68 [bs-138] Make it easy to secure only the management endpoints
Example: web UI with publicly available static assets

    # application.properties:
    security.ignored: /css/**,/script/**

Example: web UI with publicly available everything, but secure
management endpoints.

    # application.properties:
    # Empty path for basic security (default is /**)
    security.basic.path=

[Fixes #50721675]
12 years ago
Dave Syer fc021fc86a Some javadocs 12 years ago
Dave Syer e60efc7e55 [bs-17], [bs-146] Add some ApplicationContextInitializers
* One for Cloud Foundry and one for the application context ID
* If app runs in Cloud Foundry vcap.application.* and vcap.services.*
will be populated in the Environment
* The ApplicationContext ID is set to something supposedly unique
(e.g. name:index in a Cloud Foundry app)

[#50968415] [#48153639]
12 years ago