Commit Graph

12465 Commits (49797b11539b998fc7f8f857e05c15297e9111f6)
 

Author SHA1 Message Date
Phillip Webb 813128a410 Add support for configuration properties binding
Create a new `Binder` class specifically designed to bind properties
from one or more `ConfigurationPropertySources` to an object.

The binder provides a replacement for `RelaxedBinder` and attempts to
fix the limitations of the previous solution.

Closes gh-8868
8 years ago
Phillip Webb a5651b75de Create ConfigurationPropertySource abstraction
Add a new abstraction that represents a source for configuration
properties. The new source is similar to the `Environment` abstraction
provided by Spring Framework but follows a stricter set of rules.

The `ConfigurationPropertySource` provides a uniform view onto a source
and will help to move responsibility for accessing properties in a
"relaxed" way away from the caller.

The `ConfigurationPropertyName` class enforces strict naming rules
that callers must follow when accessing properties. Configuration
names are lowercase, dot separated and may contain dashes. In
addition "indexed" name elements may be defined by using square
brackets.

Mapping is provided to existing Spring PropertySources implemented with
the relaxed rules that users are used to. For example the configuration
property `server.local-host` can still be written in a property files
as `server.localHost` or in an environment variable as SERVER_LOCALHOST.

Closes gh-4910
8 years ago
Phillip Webb dbc7e938c8 Restructor and improve Origin support
Move the `Origin` and related classes from `o.s.boot.env` to
`o.s.boot.orgin` and extend support. The concept of an origin can now
be used outside of just the Spring Environment abstraction.

Closes gh-9001
8 years ago
Phillip Webb b10e2f3a05 Deprecate relaxed property concepts
Deprecate `RelaxedDataBinder`, `RelaxedPropertyResolver` and related
classes in preparation for the updated configuration properties binder
work.

See gh-9000
8 years ago
Phillip Webb 39b33d30e1 Rework SpringApplication `sources` property
Update `SpringApplication` so that the `sources` property is
independent to the primary source provided on construction.

Prior to this commit the sources property was a little unusual in that
calling set would add to the existing collection.

Closes gh-8910
8 years ago
Phillip Webb 82b839e4fb Polish OnWebApplicationCondition message 8 years ago
Phillip Webb 102da8b3c6 Polish 8 years ago
Andy Wilkinson 91fe040586 Start building against Spring Social LinkedIn 2.0 snapshots
See gh-9019
8 years ago
Phillip Webb 45dd9f7144 Polish 8 years ago
Phillip Webb 42e24136ef Drop `spring-social-web-thymeleaf3`
Drop `spring-social-web-thymeleaf3` dependency since it's been merged
into `spring-social-web` as of Spring Social 2.0.

Fixes gh-9017
8 years ago
Phillip Webb 44b4d82e4f Merge pull request #9011 from vpavic/align-session-2.0
* pr/9011:
  Remove Spring Session GemFire dependency
  Remove Spring Session Mongo support
8 years ago
Vedran Pavic 0a64b96b83 Remove Spring Session GemFire dependency
Remove Spring Session GemFire dependency since it is
no longer supported in Spring Session 2.0.

Closes gh-9011
8 years ago
Vedran Pavic 33dd9d6d84 Remove Spring Session Mongo support
Remove auto-configuration support for Spring Session Mongo since it is
no longer supported in Spring Session 2.0.

See gh-9011
8 years ago
Phillip Webb 30eba451d9 Merge branch '1.5.x' 8 years ago
Phillip Webb 4d8584eba8 Merge branch '1.4.x' into 1.5.x 8 years ago
Phillip Webb df82060cad Formatting 8 years ago
Stephane Nicoll 800eb010b1 Change the default JDBC connection pool to Hikari
Closes gh-6013
8 years ago
Stephane Nicoll 2e491dfa9c Merge branch '1.5.x' 8 years ago
Stephane Nicoll 3dc9b125d7 Merge branch '1.4.x' into 1.5.x 8 years ago
Stephane Nicoll 703a6dc056 Prevents BasicErrorControllerIntegrationTest to start another server
`BasicErrorControllerIntegrationTest` is handling the context in each test
and yet it starts a useless test via `@SpringBootTest`. This commit
removes the useless runner and associated annotations.
8 years ago
Stephane Nicoll df388aaaf9 Polish doc 8 years ago
Stephane Nicoll 227bcf44da Create jetty access log file in the temp directory 8 years ago
Stephane Nicoll 66298d85c4 Fix build 8 years ago
Stephane Nicoll 7b0645ff22 Merge pull request #8971 from vpavic:gh-7872
* pr/8971:
  Polish "Do not expose `exception` error attribute by default"
  Do not expose `exception` error attribute by default
8 years ago
Stephane Nicoll e9abe3fcca Polish "Do not expose `exception` error attribute by default"
Closes gh-8971
8 years ago
Vedran Pavic afe0c6f432 Do not expose `exception` error attribute by default
See gh-8971
8 years ago
Stephane Nicoll 605ea487c0 Merge pull request #9002 from vpavic:gh-8560
* pr/9002:
  Make Audit events MVC endpoint `after` parameter required
8 years ago
Vedran Pavic 720e801a76 Make Audit events MVC endpoint `after` parameter required
Closes gh-9002
8 years ago
Stephane Nicoll b426bba169 Merge pull request #8819 from olamy:feature/jetty_accesslog
* pr/8819:
  Add support for configuring Jetty's request log via the environment
  Add support for configuring Jetty's request log via the environment
8 years ago
Stephane Nicoll f5db75792e Add support for configuring Jetty's request log via the environment
Closes gh-8819
8 years ago
olivier lamy ce892a06e4 Add support for configuring Jetty's request log via the environment
See gh-8819
8 years ago
Stephane Nicoll 45f76965f6 Rename cassandra bean names
Closes gh-8982
8 years ago
Stephane Nicoll 3477b02cb4 Merge pull request #8568 from eddumelendez:gh-8052
* pr/8568:
  Polish "Add reactive support for Spring Data Cassandra"
  Add reactive support for Spring Data Cassandra
8 years ago
Stephane Nicoll 47037d5227 Polish "Add reactive support for Spring Data Cassandra"
Closes gh-8568
8 years ago
Eddú Meléndez abd35f041b Add reactive support for Spring Data Cassandra
See gh-8568
8 years ago
Andy Wilkinson 9c65888a54 Upgrade to Jackson 2.9.0.pr3
Closes gh-8990
8 years ago
Brian Clozel 117310924e Reduce number of managed Netty dependencies
Now that reactor-netty has a strict set of transitive dependencies, this
commit refactors the managed dependencies to only list the required
ones. `netty-all` is still managed to avoid conflicts when pulled by
other libraries.

Fixes gh-8553
8 years ago
Madhura Bhave bc1ee76b55 Change default for new_generator_mappings to true
Closes gh-7612
8 years ago
Phillip Webb 1ad318d8a6 Refine Mustache support
Refine Mustache support to provide a cleaner separation between the
reactive and servlet implementations. The views have now moved to the
`spring-boot` project and the auto-configuration has been split into
two distinct `@Imports` to save needing full package declarations.

See gh-8941
8 years ago
Phillip Webb 06558675bb Polish 8 years ago
Andy Wilkinson b43f902556 Upgrade to Spring Restdocs 1.2.0.RELEASE
Closes gh-8996
8 years ago
Andy Wilkinson f8549b7276 Upgrade to Jsonassert 1.5.0
Closes gh-8995
8 years ago
Andy Wilkinson 877290c251 Upgrade to Postgresql 42.0.0
Closes gh-8994
8 years ago
Andy Wilkinson 3224bb99a9 Upgrade to Mockito 2.7.22
Closes gh-8993
8 years ago
Andy Wilkinson e2d9b152a9 Upgrade to Thymeleaf Layout Dialect 2.2.1
Closes gh-8992
8 years ago
Andy Wilkinson 7a027b0187 Upgrade to Rxjava2 2.0.9
Closes gh-8991
8 years ago
Brian Clozel ec25e51f1f Refactor Mustache views support in Spring MVC
This commit simplifies the Mustache support for Spring MVC and removes
the included (view-based) i18n support in favor of more idiomatic
constructs like Mustache lambdas.

Fixes gh-8941
8 years ago
Brian Clozel 7e77e648bf Add Mustache support for Spring WebFlux apps
This commit moves the existing Spring MVC Mustache support to its own
`servlet` package and adds a new one under `reactive` for the WebFlux
web applications.

New `MustacheView` and `MustacheViewResolver` types resolve and render
Mustache views for WebFlux applications.

Since this templating engine is now supported by two flavors of Spring
web apps, the `spring-boot-starter-mustache` does not depend anymore on
the `spring-boot-starter-web` one: it's up to the developer to add the
relevant starter `web` or `webflux` to their application.

Fixes gh-8648
8 years ago
Madhura Bhave c2e5fd031a Replace usage of WebMvcConfigurerAdapter
Closes gh-8964
8 years ago
Phillip Webb ec57c3d92a Exclude commons-logging from Spring Security
Excluded the commons-logging dependency pulled in by Spring Security
until they can provide a fix.

See gh-8985
8 years ago