Commit Graph

1387 Commits (7e6097e419eb80e87a38b56c5929e263a7ce8b80)

Author SHA1 Message Date
Phillip Webb 2041a79970 Use RelaxedPropertyResolver in auto-configuration
Update several existing auto-configuration classes to use the new
RelaxedPropertyResolver.

This commit also rename the spring.template property to spring.thymeleaf
in case we wish to support more templating engines in the future.
11 years ago
Phillip Webb d64a44547c Fix DataSourceConfiguration isTestOnReturn()
Fix setTestOnReturn to use isTestOnReturn.
11 years ago
Dave Syer 767aa43e31 Add WebSocketAutoConfiguration
Opinionated defaults for WebSockets:

* If spring-websocket is on the classpath and so is
the Tomcat WSci initializer then it is added to the context
* A DefaultSockJsService is added if none is present
* User has only to define @Beans of type WebSocketHandler with
name starting "/"
* Each one is converted to a SockJsHttpRequestHandler and
mapped to "/<beanName>/**"
11 years ago
Phillip Webb 94b182cc81 Allow hibernate naming strategy to be specified
Issue: #53028397
11 years ago
Phillip Webb 71946f9d83 Update WebMvcAutoConfiguration conditional bean
Change WebMvcAutoConfiguration to use WebMvcConfigurationSupport instead
of HanderAdapter as the @ConditionalOnMissingBean. This allows MVC to
be auto-configured even if you define additional HanderAdapters.

Issue: #55493342
11 years ago
Phillip Webb d4fe320254 Update trace logging to include Hibernate SQL 11 years ago
Phillip Webb 6858c3987e Use Hibernate ImprovedNamingStrategy by default
Update HibernateJpaAutoConfiguration to use the ImprovedNamingStrategy
for better table and column names.

Issue: #55261888
11 years ago
Phillip Webb 7e3cb50a22 Polish 11 years ago
Phillip Webb 021fe45d83 Exclude spring-data-rest package from being stored
Update AutoConfigurationUtils to specifically exclude spring-data-rest
packages from being stored. This prevent missing class errors caused
when Spring Boot attempts to use @ComponentScan packages as the source
for JPA entities and reads annotations that are not on the classpath.

Issue: #55489346
11 years ago
Phillip Webb fc841e0269 Move inner class to end of file for consistency 11 years ago
Dave Syer d205d9404a Add additional ViewResolver configuration
The DispatcherServlet adds a default InternalViewResolver
which was used by some apps, but when the actuator was
available it added an "/error" bean and effectively
switched off the default view resolver. The net fix was
to add an InternalViewResolver at the same time as
adding any other ViewResolvers.

[Fixes #55357516] [bs-290] Actuator UI app cannot serve static index.html
11 years ago
Phillip Webb 3fc8752a37 Update autoconfigure README.md with `--debug` info 11 years ago
Phillip Webb 840fdeb50f Create common SpringBootCondition base class
Create a new SpringBootCondition that will log why a condition has
or has not been applied. The removes the need for ConditionLogUtils
and simplifies many of the existing condition implementations.

Issue: #55203236
11 years ago
Phillip Webb 4e83826b41 Polish 11 years ago
Phillip Webb 82ed7a676d Readme for auto-configuration 11 years ago
Phillip Webb 1ff76459db Polish ConditionalOn annotations
Update ConditionalOn annotations :
- Use consistent attribute names for OnClass and OnMissingClass
- Update javadoc
- Rename tests to reflect the annotation rather than the interface
11 years ago
Dave Syer 0d583deb27 Add CLASSPATH elements back to spring CLI script
Also add @WebConfiguration as a shortcut for groovy
scripts to get MVC behaviour (without a @Controller)

[#54926366]
11 years ago
Dave Syer 68e84f7d02 Add pool parameters to AbstractDataSourceConfiguration
* Exposed common pool properties in the base class for data source configuration
* Made it @ConfigurationProperties so it binds in strongly typed sense

[Fixes #53028455] [bs-214] Add pool parameters to AbstractDataSourceConfiguration
11 years ago
Dave Syer 56f5b3ad0f Add logging to dispatcher servlet condition 11 years ago
Dave Syer 0af9d2022a Allow user to supply servlets and filters and still get default DispatcherServlet
Instead of not installing one at all if there is any ServletContextInitializer,
Spring Boot will now install a DispatcherServlet if context does not contain one
already with the magic name "dispatcherServlet".

[Fixes #54674870] [bs-277]
11 years ago
Phillip Webb 00fc04c01e Simplify OnBeanCondition
Merge OnMissingBeanCondition into OnBeanCondition and simplify code.
Polish on bean conditions
11 years ago
Phillip Webb 82320b3525 Simplify OnWebApplicationCondition
Merge OnNotWebApplicationCondition into OnWebApplicationCondition and
simplify code.
11 years ago
Phillip Webb 7525eb31f1 Simplify OnClassCondition
Merge OnMissingClassCondition into OnClassCondition and simplify code.
11 years ago
Phillip Webb cf655945aa Polish 11 years ago
Phillip Webb 8a33c39f0b Polish AutoConfigurationSorter 11 years ago
Dave Syer 33658c2933 Add @AutoConfigureBefore and simple implementation
[#54597932] [bs-273] Circular view reference for /error
11 years ago
Phillip Webb 4e11ae1671 Documentation
Various updates to README.md files.
11 years ago
Phillip Webb 1db22aca5c Rework POM structure
Rework main build POM to be an aggregator pom that does not inherit
from any parent. Introduce new spring-boot-dependencies module to
act as a parent for both spring-boot-starter-parent and
spring-boot-parent.
11 years ago
Dave Syer 4bb5de02e7 Switch back to SNAPSHOT for dev 11 years ago
Dave Syer 68e5a7e887 Bump version to 0.5.0.M1 11 years ago
Phillip Webb e1c6860a41 Documentation 11 years ago
Phillip Webb c83400d265 Move conditions from boot to autoconfigure
Issue: #54393078
11 years ago
Phillip Webb 36c3ceab97 Include servlet support for index.html resources
Issue: #54228642
11 years ago
Phillip Webb 772cc851a0 Polish WebMvcAutoConfiguration resource locations 11 years ago
Dave Syer 4c359e1a4d Two choices are available to users for welcome page
* For a jar deployment add classpath:static/index.html
(works via Spring MVC mapping)
* For a war the same thing works, but so does adding
index.html to src/main/webapp (works via container
default servlet)

[Fixes #54092261] [bs-252]
11 years ago
Phillip Webb b665a2bb1d Renamed packages
Issue: #54095231
11 years ago
Phillip Webb 3f2bb03fb8 Renamed some projects and polish POMs
Issue: #54095231
11 years ago