Commit Graph

257 Commits (b64623132745769d604c8efdd936a997035eedff)

Author SHA1 Message Date
Phillip Webb 738d195587 Create JMS sub-packages
Reorganize the `jms` package into `hornetq` and `activemq` sub-pacakges.

Fixes gh-1005
11 years ago
Phillip Webb 8aaaaa48a6 Fix broken documentation links 11 years ago
Phillip Webb 0e4b1a4ad0 Add Elasticsearch appendix links
See gh-408
11 years ago
Stephane Nicoll 5a69bb9267 Add HornetQ JMS support
Provide auto-configuration support for HornetQ JMS broker, along with
an additional starter POM.

The connection factory connects to a broker available on the local
machine by default. A configuration switch allows to enable an embedded
mode that starts HornetQ as part of the application.

In such a mode, the spring.hornetq.embedded.* properties provide
additional options to configure the embedded broker. In particular,
message persistence and data directory locations can be specified. It is
also possible to define the queue(s) and topic(s) to create on startup.

Fixes: gh-765
11 years ago
Phillip Webb 11a093bdc0 Polish 11 years ago
Phillip Webb 5df52d3e94 Polish 11 years ago
Dave Syer 5d797ce00f Add spring-boot-groovy-templates to list in docs 11 years ago
Craig Walls 5e1913576e Document Spring Social support 11 years ago
Dave Syer 84633dae00 Clarify in docs that @PropertySource is parsed late
Fixes gh-970
11 years ago
Dave Syer d8eeba98e8 Add JAVA_OPTS advice to some docs 11 years ago
Phillip Webb 3d76d9d73b Merge branch '1.0.x' 11 years ago
Phillip Webb 819b3b9761 Fix JasperInitializerLifecycleListener
Update JasperInitializerLifecycleListener to call JasperInitializer as
a ServletContainerInitializer (not a ServletContextInitializer).

Fixes gh-962
See gh-919
11 years ago
bjornerik 769ffe2834 Missing space destroys formatting in doc 11 years ago
bjornerik 021f8eba03 Missing space destroys formatting in doc 11 years ago
Phillip Webb 0ed4afd647 Fix a couple of velocity documentation issues
Fixes gh-961
11 years ago
Phillip Webb 6381fdcb49 Polish 11 years ago
Stephane Nicoll 96adb87bbd Fix typo
Relates to gh-667
11 years ago
Stephane Nicoll a51739c0e1 Integration tests documentation
This commit clarifies how @IntegrationTest can be used as an
alternative of starting the (web) application prior to running the
tests suite.

Fixes gh-667
11 years ago
Dave Syer 32295b9bdc Add options for Flyway to have its own DataSource
Either set flyway.[url,user,password] or create a DataSource
@Bean and mark it @FlywayDataSource.

Fixes gh-807
11 years ago
Brian Clozel ddbfe187cd Fix table row format in documentation 11 years ago
Phillip Webb a3c359ab84 Remove trailing whitespace 11 years ago
Eric Dahl 3457cc4f39 Fix multiple typos in documentation, as well as "thread.deamon" typo in actuator 11 years ago
Christian Dupuis d20ed65c61 Update docs for new extended health support
fixes #930
11 years ago
Phillip Webb 794808b6b8 Various improvements to the Gradle plugin
Refactor and rework several areas of the Gradle plugin:

- Refactor package structure into functional areas and configure each
  area separately via a new PluginFeatures interface.
- Convert BootRunTask to extend RunTask rather than attempting to
  find existing RunTasks.
- Simplify agent integration by no longer needing specific BootRunTask
  code.
- Update the repackage task to consider the `mainClassName` property
  in addition to `springBoot.mainClass`.
- Automatically set `mainClassName` when calling `run` or `runBoot`
  from `springBoot.mainClass` if there is one.
- Ensure that explicitly defined `main` options on JavaExec tasks always
  take precedence.

Fixes gh-547, gh-820, gh-886, gh-912
11 years ago
Andy Wilkinson d673002c2e Document Solr integration 11 years ago
Dave Syer 0dca2dd978 Small docs tweaks in metrics 11 years ago
Andy Wilkinson 9b1ed5f24e Include GemFire starter in table of first-party starter modules
Closes #911
11 years ago
Andy Wilkinson 75792264c0 Correct the path used to import the dependency versions .adoc file 11 years ago
Andy Wilkinson 8d2da79020 Combine maven-dependency-plugin declarations
Fixes #917
11 years ago
Phillip Webb 94b8b387e8 Fix broken dependencies appendix 11 years ago
Phillip Webb 4fd4744724 Add spring-boot-versions project
Add a new maven project containing a versions.properties file and
an effective POM. Rework existing projects to use the versions
artifacts.

Partially reverts 307fbba9e4

Fixes gh-913
11 years ago
Phillip Webb 8bcda1bcbe Polish 11 years ago
Andy Wilkinson 3328a30b7b Include details of dependency versions in the docs
Closes #637
11 years ago
Dave Syer e118515d7a Use Flyway to bind flyway.*
Since Flyway has bean properties (with getters and setters)
it can be used to bin directly to the Environment (instead of
copying all the properties into FlywayProperties).

Fixes gh-806
11 years ago
Dave Syer 89e0b3d552 Add more detail to error handling docs 11 years ago
Andy Wilkinson d2fc80b818 Allow custom dependency metadata to be used with the CLI
Add support for a new annotation, @GrabMetadata, that can be used
to provide the coordinates of one or more properties files, such as
the one published by Spring IO Platform, as a source of dependency
metadata. For example:

@GrabMetadata("com.example:metadata:1.0.0")

The referenced properties files must be in the format
group:module=version.

Limitations:

 - Only a single @GrabMetadata annotation is supported
 - The referenced properties file must be accessible in one of the
   default repositories, i.e. it cannot be accessed in a repository
   that's added using @GrabResolver

Closes #814
11 years ago
Andy Wilkinson 2378fe0900 Add support for using Velocity templates 11 years ago
Dave Syer a5543f18b9 Add callback for modifying or inspecting LocalContainerEntityManagerFactoryBean
A callback is added in autoconfig, so that if users inject the EntityManagerFactoryBuilder
into their app and use it to create multiple EntityManagerFactories, they all get the
same deferred DDL behaviour. The deferred DDL can also be disabled by setting
spring.jpa.hibernate.deferDdl=true.

Fixes gh-894
11 years ago
Dave Syer bfbb720d0a Add docs for Groovy Templates 11 years ago
Stephane Nicoll e695e5d637 Revisit JMS support
Since ActiveMQ 5.8.0, the modules structure has been revisited and
activemq-core no longer exists. The activemq-broker is required to
create an embedded broker. Since Boot creates such broker by default
if ConnectionFactory is present, a condition has been added to do so
only when the necessary classes are present in the classpath.

The default embedded broker is now configured to disable message
persistence altogether as this requires an extra jar since 5.8.0, i.e.
activemq-kahadb-store.

Split the ActiveMQ auto configuration from the JmsTemplate auto
configuration so these are totally independent.
ActiveMQAutoConfiguration has been created to detect and configure
the ActiveMQ broker if necessary.

The brokerUrl parameter was ignored as long as the inMemory parameter
was true. The actual brokerUrl to use is now determined by the user
defined values of those parameters: if the brokerUrl is set, it is always
used. If no brokerUrl is set, the value of inMemory determines if an
embedded broker should be used (true) or a tcp connection to an
existing local broker (false).

JmsTemplateAutoConfiguration now creates a JmsTemplate only if a
ConnectionFactory is available.

Fixes gh-872, gh-882, gh-883
11 years ago
Phillip Webb 5205ccf8c6 path->templateLoaderPath 11 years ago
Phillip Webb aaf50a768c spring.freemarker.templateLoaderPath -> path
Fixup tests and documentation following the rename of
spring.freemarker.templateLoaderPath to spring.freemarker.path
11 years ago
Phillip Webb 01fcf61140 Polish 11 years ago
Dave Syer 7454c4866b Support for @ConfigurationProperties in JPA
Adds JpaProperties to bind to spring.jpa.* (making those
properties easier to reason about and visible in the
/configprops endpoint).

Also allows easy configuration of multiple EntityManagerFactories via new
EntityManagerFactoryBuilder. JpaBaseConfiguration has a @Bean of that type
so users can inject it to create new or additional EntityManagerFactories.
This also simplifies the Hibernate autoconfiguration.

Also renames the DataSourceFactory to DataSourceBuilder (since that's what it
is).
11 years ago
Dave Syer b5e608f102 Remove mention of missing starters 11 years ago
Lukasz Kryger 254b175c0a Read data-{platform}.sql in addition to data.sql
Update DataSourceAutoConfiguration to read platform specific `data.sql`
files in the same way as `schema.sql` files.

Fixes gh-837
11 years ago
Christian Dupuis 0402ed38f7 Update documentation to include note about RabbitMQ health support 11 years ago
Phillip Webb dac03fdb7b Extract WebMvcProperties
Extract WebMvcProperties from WebMvcAutoConfiguration and also
update conditionals to use @ConditionalOnProperty.
11 years ago
Phillip Webb 1c0cce441d Add spring.resources.add-mappings property
Add `spring.resources.add-mappings` allowing users to configure if
resource mappings should be added or not.

Fixes gh-804
11 years ago
Phillip Webb f80d23ada7 Clarify why you might not use the starter parent
Update reference documentation to make it clearer why you might not
always want to use the spring-boot-starter-parent.

Fixes gh-774
11 years ago
Phillip Webb 1acffdf649 Polish 11 years ago
Phillip Webb d9bf538e95 Document repackage in maven without parent POM
Fixes gh-811
11 years ago
Christian Dupuis dfd6f91aef Merge pull request #819 from cdupuis/health-indicator
Rework HealthIndicator support
11 years ago
Christian Dupuis 893654bdd1 Update documentation for new HealthIndicator support 11 years ago
Phillip Webb 506c0f50b9 Allow meta-data driven version overrides in Gradle
Add a `versionManagement` gradle configuration which can be used to
provide alternative version meta-data. Primarily added so that the
Spring IO platform can provide version overrides without causing a
cyclic build dependency.

Fixes gh-750
11 years ago
Phillip Webb 38fb8e6874 Fix broken documentation link 11 years ago
Dave Syer 14d3b46809 Add constants to SecurityProperties and ManagementServerProperties
For the convenience of users who want to selectively override the
access rules in an application without taking complete control of the
security configuration we now have some constants:

* SecurityProperties.ACCESS_OVERRIDE_ORDER for overriding just the
application endpoint access rules

* ManagementServerProperties.ACCESS_OVERRIDE_ORDER for overriding the
application endpoint and management endpoint access rules

Fixes gh-803
11 years ago
Phillip Webb 28bd87cbae Update @EnableAutoConfiguration exclude example
Update documentation to use a real auto-configure class.

Fixes #791
11 years ago
Christian Dupuis e5b6d7c756 EmbeddedDatabaseConfiguration -> EmbeddedDataSourceConfiguration in docs
fixes #791
11 years ago
Phillip Webb bce3eaefd0 Fixup reference guide following dependencies move
Update reference guide to indicate that spring-boot-dependencies should
be imported when not using the parent POM.
11 years ago
Stephane Nicoll 33082fd56d Harmonized maven dependency management
This commit harmonizes the dependency management of internal modules
so that versions can be omitted everywhere. Update the maven coordinates
to provide the full groupId for consistency
11 years ago
Phillip Webb 2c45399bf8 Add note for maven plugin documentation
Update the reference guide to add a call-out to the new generated
maven plugin site.

Finishes gh-772
11 years ago
Ger-Jan te Dorsthorst 904804d717 Minor documentation fixes
Fixes gh-781
11 years ago
Stephane Nicoll a330cb9b8a Improve remote shell security documentation
Previous to this commit, the remote shell security configuration
described that a default password will be generated with no extra
configuration. Actually, when Spring Security is configured for the
application, the remote shell reuses that configuration by default.

It turns out that the default log message is confusing as it was
referring to "application endpoints". Updated that log to a more
generic log message and updated doc accordingly.

Fixes gh-779
11 years ago
Marcel Overdijk 0f738be114 Add specifying (fixed) date format via application properties
Fixes gh-778, Fixes gh-755
11 years ago
Marcel Overdijk 949871957b Fixed type sections to seconds (time-out)
Fixes gh-776
11 years ago
Phillip Webb 34b7bb20fd Add maven implicit plugin group ID
Add previously implicit <groupId>org.apache.maven.plugins</groupId>
to plugin declarations.
11 years ago
Stephane Nicoll bf4b347a96 Fix build failure
Commit e26e06d5dd broke the full build as the generated zip file for
the size is not generated. Actually, the site plugin has a jar goal that
is exactly meant for what we need to do.

This commit removes the use of the assembly plugin and invokes the
jar goal of the site plugin when the full profile is enabled.

Relates to #749
11 years ago
Stephane Nicoll 888703cf26 Add maven plugin documentation
This commit adds the generated site for the maven plugin alongside
the developer guide and javadoc. The maven plugin is available in
the "/maven-plugin" context.

The advanced information described in the developer guide have
been migrated to the plugin site as most the information is taken
from the code itself, which avoids duplication.

Fixes #749
11 years ago
Phillip Webb b5451d54ee Polish 11 years ago
Dave Syer 799f9edb0b Harmonize enabled flags for flyway and liquibase 11 years ago
Dave Syer 2cd7b13096 Drop 'spring' from 'spring.[liquibase,flyway]' 11 years ago
Dave Syer 5548b24c4c Add autoconfig support for Flyway migrations
Flyway starts up with its default settings if it is on the classpath.
You can also ask Boot to barf if the migration scripts are missing.

Fixes gh-730
11 years ago
Marcel Overdijk 68e33b25c1 Added liquibase autoconfiguration for database migrations
If Liquibase is on the classpath it will fire up on startup. Various
config options are available (as well as the option to disable it).
Liquibase uses a YAML format for changes (in classpath:db/changelog).
11 years ago
Dave Syer b7e583a39b Document message codes and custom banner
Fixed gh-756, Fixes gh-757
11 years ago
Dave Syer f81c01d490 @WebApplication->@WebAppConfiguration
Fixed gh-746
11 years ago
Phillip Webb 6025f45aa0 Polish 11 years ago
Marcel Overdijk 1cbef02236 Add messagecode resolver format based on application property 11 years ago
Christian Dupuis a66fc3030e Add more runtime metrics like information about heap, class loading and threads to the metrics infrastructure 11 years ago
Andy Wilkinson 7c91176186 Add FreeMarker support
This commit adds auto-configuration and a starter,
spring-boot-starter-freemarker, for using FreeMarker view templates in
a web application.

A new abstraction, TemplateAvailabilityProvider, has been introduced.
This decouples ErrorMvcAutoConfiguration from the various view
technologies that Spring Boot now supports, allowing it to determine
when a custom error template is provided without knowing the details of
each view technology.

Closes #679
11 years ago
Dave Syer 1143f6dbb1 @WebApplication->@WebAppConfiguration
Fixed gh-746
11 years ago
Dave Syer ef4e83a879 Move ErrorController to autoconfig 11 years ago
Dave Syer 42ca765e1a Remove test dependencies from spring-boot-starter-parent
Fixes gh-617

Conflicts:

	spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
11 years ago
Stephane Nicoll 6cf946ea3f Fix typo 11 years ago
Phillip Webb 1ae91a135c Polish MultipartConfigElement support
Polish MultipartConfigElement changes introduced in commit e8e59ea6
as follows:

- Fix javadoc formatting
- Fix tab/spaces formatting
- Fix asciidoc formatting
- Move creation of MultipartConfigElement into MultipartProperties
- Add @Since tags
- Restore random port in tests
11 years ago
Stephane Nicoll c4ffe721c7 Fix JmsTemplate default pubSubDomain setting
Prior to this commit, a JmsTemplate bean created automatically by Boot
had its "pubSubDomain" flag enabled. It's far more usual to fallback on
queue rather than topic.

This commit flips the default value of the configuration property.
11 years ago
Josh Long e8e59ea657 MultipartConfigElement autoconfig support.
Fixes gh-708
11 years ago
Phillip Webb 64a835e91a Move master to 1.1.0.BUILD-SNAPSHOT 11 years ago
Dave Syer 8f640c549f Correct copy-paste error in log4j config snippet 11 years ago
Spring Buildmaster d3954a1703 Next development version 11 years ago
Phillip Webb 6268322c76 Tighten up documentation on SSL and HTTPS
Fixes gh-640
11 years ago
Phillip Webb 59496abf85 Add mvnDebug how-to
Fixes gh-713
11 years ago
Phillip Webb 51c403b636 Document how to customize dependency versions
Add a section to the "how-to" on customizing third-party dependency
versions when using Maven.

Fixes gh-434
11 years ago
Phillip Webb b5b2fd2377 Add note explaining gradle ResolutionStrategy
Update reference documentation to include a note explaining that
"blessed" versions a chosen based on the gradle plugin version, and
that builds are repeatable.

Fixes gh-619
11 years ago
Scott Frederick 08a0c31105 Update Cloud Foundry deployment documentation
Update the Cloud Foundry section of the reference documentation to:

- Reflect the fact that the Cloud Foundry v6 CLI no longer has an
  interactive mode for application push.
- Update some of the CLI output.
- Change links to point to open-source CF docs instead of Pivotal
  commercial docs.
- Add a few links.

Fixes gh-718
11 years ago
Phillip Webb fad5ce45db Polish 11 years ago
Dave Syer 3304dd1cc9 Add spring.datasource.separator (default ";")
Fixes gh-715
11 years ago
Hugo Flambo a77fee9f18 Fix typo and use *PropertySource* instead *ProperySource*
Fixes gh-705
11 years ago
Dave Syer 359315568a Clarify handling and binding or YAML lists
The docs related to YAML lists were out of date and
lacked an example making it clear how to bind to them.

See gh-501
11 years ago
Marcel Overdijk f78f836fc0 Add fixedlocaleresolver based on application property
If the user sets spring.mvc.locale and doesn't provide a @Bean
of type LocaleResolver then a FixedLocaleResolver will be provided.

Fixes gh-697, fixes gh-669
11 years ago