Commit Graph

35 Commits (595cb6d55b0455dce37cf999565ef711e73d31a2)

Author SHA1 Message Date
Phillip Webb 72dc09cb56 Strip trailing whitespace 11 years ago
Dave Syer 2dc4c291ff Add some clarifications to maven plugin README
Fixes gh-246
11 years ago
Dave Syer 015d92b8e8 Add docs for @EntityScan and JPA repository packages
Fixes gh-200
11 years ago
Dave Syer c1bbd4fc4e Fix typo in howto 11 years ago
Dave Syer c43d91598e Update config location docs 11 years ago
Dave Syer c9f8dac9d9 Typo in howto 11 years ago
Phillip Webb 47da8a817a Polish 11 years ago
Dave Syer b1db714c23 Allow @EnableGlobalMethodSecurity in a non webapp
Fixes gh-202
11 years ago
Dave Syer 633dea9d80 Add declarative ApplicationListener 11 years ago
Phillip Webb 1bcd3de7b5 Polish 11 years ago
Dave Syer 4d60b09c9b Revise docs for port discovery 11 years ago
Dave Syer b558537ee6 Docs for obtaining server port 11 years ago
Dave Syer fe1336edcc Add JobExplorer and JobOperator 11 years ago
Dave Syer b81930fcce Support for Jetty 9 11 years ago
Dave Syer f5ad4be2c1 Add basic build.xml to actuator sample
$ ant -lib ivy-2.2.jar

(substitute the location of your actual ivy jar)

    $ java -jar target/*.jar

Fixes gh-140
11 years ago
Dave Syer bd0a499ab8 Parse @PropertySource annotations on SpringApplication sources
If any of the sources has a @PropertySource annotation (or many)
then we can add those properties to the Environment. It's a nice
convenient way of specifying a custom external properties location
for an app.

One problem is that Spring will come along and parse the same
annotations later as part of the @Configuration parsing. The
user has pretty limited control over how that is done, and it
will never be done in a "natural" way for a Boot application
(which would prefer that the default application.properties
is applied *last*, whereas Spring will apply the @PropertySource
last).

To get round that problem we add the property sources with
a different name (key in the PropertySources in Environment),
prefixing named property sources with "boot.", and adding
others with a name that is the same as the resource location
(instead of its description, which is the default for
Spring).

Another problem is that Spring doesn't know about YAML, so
the user is currently restricted to using properties files
with this annotation.
11 years ago
Dave Syer a79e3613d3 Add header as separator 11 years ago
Phillip Webb 513c6a1de2 Polish 11 years ago
Dave Syer 60cb5fd35c Add log4j starter and some documentation
As discussed in gh-162
11 years ago
Dave Syer c78973e375 MessageConverters -> HttpMessageConverters 11 years ago
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 12 years ago