Commit Graph

15 Commits (370501f4a940b2044e9be07505bbf8d84ff9ba1e)

Author SHA1 Message Date
Dave Syer c2b499c775 Support for @Beans of type HttpMessageConverter, and Jackson specific details
You can contribute additional HttpMessageConverters
by simply adding beans of that type in a Spring Boot
context. If a bean you add is of a type that would have been included
by default anyway (like MappingJackson2HttpMessageConverter for JSON
conversions) then it will replace the default value. A convenience
bean is provided of type MessageConverters (always available if you
use the default MVC configuration) which has some useful methods to
access the default and user-enhanced message converters (useful, for
example if you want to manually inject them into a custom
RestTemplate).

There are also some convenient configuration shortcuts for Jackson2.
The smallest change that might work is to just add beans of type
Module to your context. They will be registered with the default
ObjectMapper and then injected into the default message
converter. In addition, if your context contains any beans of type
ObjectMapper then all of the Module beans will be registered with
all of the mappers.
11 years ago
Dave Syer c40d0aba0d Document switching off DispatcherServlet 11 years ago
Dave Syer e1a09e0900 Fix formatting of header 11 years ago
Dave Syer e28e6d9593 More updated howtos 11 years ago
Dave Syer 19fa5b9af6 Updated howtos 11 years ago
Dave Syer 3e6c1b435f Add @SpringApplicationConfiguration (for integration testing)
Example:

    @RunWith(SpringJUnit4ClassRunner.class)
    @SpringApplicationConfiguration(classes = SampleDataJpaApplication.class)
    public class CityRepositoryIntegrationTests {

    	@Autowired
    	CityRepository repository;

Fixes gh-66.
11 years ago
Dave Syer 710dfaf9b2 Add howto for migrating existing app 11 years ago
Dave Syer cd54e1ed49 Add some more howtos 11 years ago
Dave Syer cb38abff41 Add starter for howto.md 11 years ago
Dave Syer 6bfc888a58 Remove missing links 11 years ago
Phillip Webb f8f36ead42 Add sample yml to docs 11 years ago
Phillip Webb 9cf59050d3 Documentation 11 years ago
Phillip Webb 65a9953c86 Fix a new remaining 'zero' and 'bootstrap' terms
Issue: #54095231
11 years ago
Dave Syer 2098e23fca Change package names zero->boot
* actuator -> boot-ops
* cli -> boot-cli
* launcher -> boot-load
* autoconfig -> boot-config
* bootstrap -> boot-strap
* starters -> boot-up

[#54095231] [bs-253] Refactor Zero->Boot
11 years ago
Dave Syer 90c942387f Add basic READMEs 11 years ago