Commit Graph

54 Commits

Author SHA1 Message Date
Phillip Webb
c5ee3c7eba Remove duplicate documentation
Remove README files that have been since been migrated to the reference
documentation. Also updated remaining markdown files to asciidoctor to
save having a mix of different formats.

Fixed gh-503
2014-03-16 23:00:12 -07:00
Dave Syer
6b83e0ad5d Change bean name of ContentNegotiatingViewResolver
Fixed gh-428
2014-03-05 08:56:53 +00:00
Dave Syer
15372cb737 Add Maven example for Tomcat 8
Fixes gh-430
2014-03-04 22:28:05 +00:00
Dave Syer
b56bd0a10c Add ViewResolver docs 2014-03-04 22:17:50 +00:00
Phillip Webb
6934b340ce Update README to RC4 2014-03-03 23:50:56 -08:00
Dave Syer
e58206bcf6 Add sample web.xml for error mapping 2014-02-28 09:02:31 +00:00
Dave Syer
70431c5d64 Add howto for Jetty 2014-02-26 09:30:03 +00:00
Phillip Webb
cf23b519d2 Polish 2014-02-24 13:43:54 -08:00
Dave Syer
09f3ee14a4 Skip unnecessary attempt at executing Job
...that was already executed as part of the "local" set.

Also added some howto docs on executing Batch jobs.

See gh-382
2014-02-24 14:56:17 +00:00
Dave Syer
8d9c26b2df Switch default to fail on error in SQL initialization
User can switch the behaviour on and off with
spring.datasource.continueOnError:true|false. I decided
not to add an extra nested level of property resolution
because of the existing spring.datasource.schema
(and other properties relating to initialization) because
concision seemed like a good thing with those more common
settings.

Fixes gh-374
2014-02-24 09:30:21 +00:00
Dave Syer
c5d8150fd4 Add docs on initializing a database
Fixes gh-364
2014-02-19 18:06:28 +00:00
Dave Syer
da26c614f2 Update YAML refs in docs 2014-02-18 10:48:38 +00:00
Phillip Webb
e4376bc4a6 Update READMEs to 1.0.0.RC3 2014-02-13 13:37:12 -08:00
Phillip Webb
eaa05c6b6d Update READMEs to 1.0.0.RC2 2014-02-12 20:56:00 -08:00
Dave Syer
52ba2f40dc Generate a list of autoconfig for docs 2014-02-12 11:59:23 +00:00
Phillip Webb
6ddbf3bd92 Restore active profile logic and support +
Restore the previous `spring.profiles.active` logic effectively
reverting commit 37069d9. This ensures that active profiles defined in
a higher `PropertySource` replace those lower down.

In addition, add support for a `+` prefix that can be used to indicate
that a profile should be added to the active set.

For example:

	# application-prod.properties
	spring.profiles.active=+proddb,+prodmq

Fixed gh-308, gh-309
2014-02-04 14:06:02 -08:00
Phillip Webb
69f7f38403 Document Listener/Initializer changes
Fixes gh-312
2014-02-04 12:26:14 -08:00
Dave Syer
9758ca5535 Add some more detail on security config options 2014-01-29 16:16:03 +00:00
Dave Syer
5c6690f704 More detail on reloading static resources 2014-01-28 08:52:37 +00:00
Phillip Webb
72dc09cb56 Strip trailing whitespace 2014-01-21 10:22:00 -08:00
Dave Syer
2dc4c291ff Add some clarifications to maven plugin README
Fixes gh-246
2014-01-21 12:18:13 +00:00
Dave Syer
015d92b8e8 Add docs for @EntityScan and JPA repository packages
Fixes gh-200
2014-01-20 08:29:35 +00:00
Dave Syer
c1bbd4fc4e Fix typo in howto 2014-01-20 08:11:49 +00:00
Dave Syer
c43d91598e Update config location docs 2014-01-14 13:25:43 +00:00
Dave Syer
c9f8dac9d9 Typo in howto 2014-01-13 14:32:12 +00:00
Phillip Webb
47da8a817a Polish 2014-01-10 13:06:54 -08:00
Dave Syer
b1db714c23 Allow @EnableGlobalMethodSecurity in a non webapp
Fixes gh-202
2014-01-09 17:13:59 +00:00
Dave Syer
633dea9d80 Add declarative ApplicationListener 2014-01-07 17:53:34 +00:00
Phillip Webb
1bcd3de7b5 Polish 2014-01-02 12:10:37 -08:00
Dave Syer
4d60b09c9b Revise docs for port discovery 2013-12-27 11:19:58 +00:00
Dave Syer
b558537ee6 Docs for obtaining server port 2013-12-27 09:18:09 +00:00
Dave Syer
fe1336edcc Add JobExplorer and JobOperator 2013-12-26 14:23:21 +00:00
Dave Syer
b81930fcce Support for Jetty 9 2013-12-26 09:58:26 +00:00
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
2013-12-23 14:50:58 +00:00
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.
2013-12-23 09:22:15 +00:00
Dave Syer
a79e3613d3 Add header as separator 2013-12-17 11:07:46 +00:00
Phillip Webb
513c6a1de2 Polish 2013-12-16 14:38:52 -08:00
Dave Syer
60cb5fd35c Add log4j starter and some documentation
As discussed in gh-162
2013-12-16 17:26:53 +00:00
Dave Syer
c78973e375 MessageConverters -> HttpMessageConverters 2013-12-15 13:33:50 +00:00
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.
2013-12-14 22:05:30 +00:00
Dave Syer
c40d0aba0d Document switching off DispatcherServlet 2013-12-12 17:32:58 +00:00
Dave Syer
e1a09e0900 Fix formatting of header 2013-12-04 12:30:14 +00:00
Dave Syer
e28e6d9593 More updated howtos 2013-11-29 09:46:10 +00:00
Dave Syer
19fa5b9af6 Updated howtos 2013-11-29 07:39:24 +00:00
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.
2013-11-28 14:35:36 +00:00
Dave Syer
710dfaf9b2 Add howto for migrating existing app 2013-11-27 13:49:44 +00:00
Dave Syer
cd54e1ed49 Add some more howtos 2013-11-26 18:00:50 +00:00
Dave Syer
cb38abff41 Add starter for howto.md 2013-11-25 17:28:51 +00:00
Dave Syer
6bfc888a58 Remove missing links 2013-10-09 12:43:15 -04:00
Phillip Webb
f8f36ead42 Add sample yml to docs 2013-09-05 17:14:11 -07:00