Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
16937746
Commit
16937746
authored
Oct 12, 2014
by
Eric Dahl
Committed by
Andy Wilkinson
Oct 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some grammar issues in docs
parent
3228cfa9
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
45 additions
and
44 deletions
+45
-44
CONTRIBUTING.adoc
CONTRIBUTING.adoc
+1
-1
README.adoc
spring-boot-actuator/README.adoc
+2
-2
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+2
-2
appendix-executable-jar-format.adoc
...ocs/src/main/asciidoc/appendix-executable-jar-format.adoc
+1
-1
build-tool-plugins.adoc
spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
+1
-1
cloud-deployment.adoc
spring-boot-docs/src/main/asciidoc/cloud-deployment.adoc
+2
-2
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+14
-14
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+4
-4
spring-boot-cli.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc
+2
-2
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+12
-11
using-spring-boot.adoc
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+2
-2
PropertiesLauncher.java
...a/org/springframework/boot/loader/PropertiesLauncher.java
+1
-1
package-info.java
...in/java/org/springframework/boot/loader/package-info.java
+1
-1
No files found.
CONTRIBUTING.adoc
View file @
16937746
...
@@ -130,7 +130,7 @@ With the requisite eclipse plugins installed you can select
...
@@ -130,7 +130,7 @@ With the requisite eclipse plugins installed you can select
need to import the root `spring-boot` pom and the `spring-boot-samples` pom separately.
need to import the root `spring-boot` pom and the `spring-boot-samples` pom separately.
=== Importing into eclipse without m2eclipse
=== Importing into eclipse without m2eclipse
If you prefer not to use m2eclipse you can generate eclipse project meta
-
data using the
If you prefer not to use m2eclipse you can generate eclipse project metadata using the
following command:
following command:
[indent=0]
[indent=0]
...
...
spring-boot-actuator/README.adoc
View file @
16937746
...
@@ -47,5 +47,5 @@ For Gradle, use the declaration:
...
@@ -47,5 +47,5 @@ For Gradle, use the declaration:
authentication events by default. This can be very useful for reporting, and also to
authentication events by default. This can be very useful for reporting, and also to
implement a lock-out policy based on authentication failures.
implement a lock-out policy based on authentication failures.
* **Process Monitoring** In Spring Boot Actuator you can find `ApplicationPidListener`
* **Process Monitoring** In Spring Boot Actuator you can find `ApplicationPidListener`
which creates
file containing application PID (by default in application directory and
which creates
a file containing the application PID (by default in the application
file name is
`application.pid`).
directory with a file name of
`application.pid`).
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
16937746
...
@@ -278,8 +278,8 @@ content into your application; rather pick only the properties that you need.
...
@@ -278,8 +278,8 @@ content into your application; rather pick only the properties that you need.
spring.hornetq.embedded.serverId= # auto-generated id of the embedded server (integer)
spring.hornetq.embedded.serverId= # auto-generated id of the embedded server (integer)
spring.hornetq.embedded.persistent=false # message persistence
spring.hornetq.embedded.persistent=false # message persistence
spring.hornetq.embedded.data-directory= # location of data content (when persistence is enabled)
spring.hornetq.embedded.data-directory= # location of data content (when persistence is enabled)
spring.hornetq.embedded.queues= # comma
separate
queues to create on startup
spring.hornetq.embedded.queues= # comma
-separated
queues to create on startup
spring.hornetq.embedded.topics= # comma
separate
topics to create on startup
spring.hornetq.embedded.topics= # comma
-separated
topics to create on startup
spring.hornetq.embedded.cluster-password= # customer password (randomly generated by default)
spring.hornetq.embedded.cluster-password= # customer password (randomly generated by default)
# JMS ({sc-spring-boot-autoconfigure}/jms/JmsProperties.{sc-ext}[JmsProperties])
# JMS ({sc-spring-boot-autoconfigure}/jms/JmsProperties.{sc-ext}[JmsProperties])
...
...
spring-boot-docs/src/main/asciidoc/appendix-executable-jar-format.adoc
View file @
16937746
...
@@ -15,7 +15,7 @@ curious about the underlying technology, this section provides some background.
...
@@ -15,7 +15,7 @@ curious about the underlying technology, this section provides some background.
=== Nested JARs
=== Nested JARs
Java does not provide any standard way to load nested jar files (i.e. jar files that
Java does not provide any standard way to load nested jar files (i.e. jar files that
are themselves contained within a jar). This can be problematic if you are looking
are themselves contained within a jar). This can be problematic if you are looking
to distribute a self
contained application that you can just run from the command line
to distribute a self
-
contained application that you can just run from the command line
without unpacking.
without unpacking.
To solve this problem, many developers use ``shaded'' jars. A shaded jar simply packages
To solve this problem, many developers use ``shaded'' jars. A shaded jar simply packages
...
...
spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
View file @
16937746
...
@@ -237,7 +237,7 @@ example:
...
@@ -237,7 +237,7 @@ example:
[[
build
-
tool
-
plugins
-
gradle
-
custom
-
version
-
management
]]
[[
build
-
tool
-
plugins
-
gradle
-
custom
-
version
-
management
]]
====
Custom
version
management
====
Custom
version
management
If
is
possible
to
customize
the
versions
used
by
the
`
ResolutionStrategy
`
if
you
need
If
is
possible
to
customize
the
versions
used
by
the
`
ResolutionStrategy
`
if
you
need
to
deviate
from
Spring
Boot
's ``blessed'' dependencies. Alternative version meta
-
data
to
deviate
from
Spring
Boot
's ``blessed'' dependencies. Alternative version metadata
is consulted using the `versionManagement` configuration. For example:
is consulted using the `versionManagement` configuration. For example:
[source,groovy,indent=0,subs="verbatim,attributes"]
[source,groovy,indent=0,subs="verbatim,attributes"]
...
...
spring-boot-docs/src/main/asciidoc/cloud-deployment.adoc
View file @
16937746
...
@@ -12,7 +12,7 @@ _cloud's_ notion of a running process.
...
@@ -12,7 +12,7 @@ _cloud's_ notion of a running process.
Two popular cloud providers, Heroku and Cloud Foundry, employ a ``buildpack'' approach.
Two popular cloud providers, Heroku and Cloud Foundry, employ a ``buildpack'' approach.
The buildpack wraps your deployed code in whatever is needed to _start_ your
The buildpack wraps your deployed code in whatever is needed to _start_ your
application: it might be a JDK and a call to `java`, it might be an embedded webserver,
application: it might be a JDK and a call to `java`, it might be an embedded webserver,
or it might be a full
fledged application server. A buildpack is pluggable, but ideally
or it might be a full
-
fledged application server. A buildpack is pluggable, but ideally
you should be able to get by with as few customizations to it as possible.
you should be able to get by with as few customizations to it as possible.
This reduces the footprint of functionality that is not under your control. It minimizes
This reduces the footprint of functionality that is not under your control. It minimizes
divergence between deployment and production environments.
divergence between deployment and production environments.
...
@@ -103,7 +103,7 @@ able to hit the application at the URI given, in this case
...
@@ -103,7 +103,7 @@ able to hit the application at the URI given, in this case
[[cloud-deployment-cloud-foundry-services]]
[[cloud-deployment-cloud-foundry-services]]
=== Binding to services
=== Binding to services
By default, meta
-
data about the running application as well as service connection
By default, metadata about the running application as well as service connection
information is exposed to the application as environment variables (for example:
information is exposed to the application as environment variables (for example:
`$VCAP_SERVICES`). This architecture decision is due to Cloud Foundry's polyglot
`$VCAP_SERVICES`). This architecture decision is due to Cloud Foundry's polyglot
(any language and platform can be supported as a buildpack) nature; process-scoped
(any language and platform can be supported as a buildpack) nature; process-scoped
...
...
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
16937746
...
@@ -365,7 +365,7 @@ that and be sure that it has initialized is to add a `@Bean` of type
...
@@ -365,7 +365,7 @@ that and be sure that it has initialized is to add a `@Bean` of type
`ApplicationListener<EmbeddedServletContainerInitializedEvent>` and pull the container
`ApplicationListener<EmbeddedServletContainerInitializedEvent>` and pull the container
out of the event when it is published.
out of the event when it is published.
A
really useful thing to do in is to use `@IntegrationTest`
to set `server.port=0`
A
useful practice for use with `@IntegrationTest`s is
to set `server.port=0`
and then inject the actual ('`local`') port as a `@Value`. For example:
and then inject the actual ('`local`') port as a `@Value`. For example:
[source,java,indent=0,subs="verbatim,quotes,attributes"]
[source,java,indent=0,subs="verbatim,quotes,attributes"]
...
@@ -415,7 +415,7 @@ accessible on the filesystem, i.e. it cannot be read from within a jar file.
...
@@ -415,7 +415,7 @@ accessible on the filesystem, i.e. it cannot be read from within a jar file.
Generally you can follow the advice from
Generally you can follow the advice from
'<<howto-discover-build-in-options-for-external-properties>>' about
'<<howto-discover-build-in-options-for-external-properties>>' about
`@ConfigurationProperties` (`ServerProperties` is the main one here), but also look at
`@ConfigurationProperties` (`ServerProperties` is the main one here), but also look at
`EmbeddedServletContainerCustomizer` and various Tomcat
specific `+*Customizers+` that you
`EmbeddedServletContainerCustomizer` and various Tomcat
-
specific `+*Customizers+` that you
can add in one of those. The Tomcat APIs are quite rich so once you have access to the
can add in one of those. The Tomcat APIs are quite rich so once you have access to the
`TomcatEmbeddedServletContainerFactory` you can modify it in a number of ways. Or the
`TomcatEmbeddedServletContainerFactory` you can modify it in a number of ways. Or the
nuclear option is to add your own `TomcatEmbeddedServletContainerFactory`.
nuclear option is to add your own `TomcatEmbeddedServletContainerFactory`.
...
@@ -423,9 +423,9 @@ nuclear option is to add your own `TomcatEmbeddedServletContainerFactory`.
...
@@ -423,9 +423,9 @@ nuclear option is to add your own `TomcatEmbeddedServletContainerFactory`.
[[howto-enable-multiple-connectors-in-tomcat]]
[[howto-enable-multiple-connectors-in-tomcat]]
=== Enable Multiple Connectors Tomcat
=== Enable Multiple Connectors
with
Tomcat
Add a `org.apache.catalina.connector.Connector` to the
Add a `org.apache.catalina.connector.Connector` to the
`TomcatEmbeddedServletContainerFactory` which can allow multiple connectors
eg a
HTTP and
`TomcatEmbeddedServletContainerFactory` which can allow multiple connectors
, e.g. an
HTTP and
HTTPS connector:
HTTPS connector:
[source,java,indent=0,subs="verbatim,quotes,attributes"]
[source,java,indent=0,subs="verbatim,quotes,attributes"]
...
@@ -855,7 +855,7 @@ then you can do that in `application.properties` using the "logging.level" prefi
...
@@ -855,7 +855,7 @@ then you can do that in `application.properties` using the "logging.level" prefi
You can also set the location of a file to log to (in addition to the console) using
You can also set the location of a file to log to (in addition to the console) using
"logging.file".
"logging.file".
To configure the more fine
grained settings of a logging system you need to use the native
To configure the more fine
-
grained settings of a logging system you need to use the native
configuration format supported by the `LoggingSystem` in question. By default Spring Boot
configuration format supported by the `LoggingSystem` in question. By default Spring Boot
picks up the native configuration from its default location for the system (e.g.
picks up the native configuration from its default location for the system (e.g.
`classpath:logback.xml` for Logback), but you can set the location of the config file
`classpath:logback.xml` for Logback), but you can set the location of the config file
...
@@ -917,10 +917,10 @@ requires some jiggling with excludes, e.g. in Maven:
...
@@ -917,10 +917,10 @@ requires some jiggling with excludes, e.g. in Maven:
<groupId>org.springframework.boot</groupId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusions>
<exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusion>
</exclusions>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
...
@@ -930,7 +930,7 @@ requires some jiggling with excludes, e.g. in Maven:
...
@@ -930,7 +930,7 @@ requires some jiggling with excludes, e.g. in Maven:
----
----
NOTE: The use of the log4j starter gathers together the dependencies for common logging
NOTE: The use of the log4j starter gathers together the dependencies for common logging
requirements (e.g. including having Tomcat use `java.util.logging` but configur
e
the
requirements (e.g. including having Tomcat use `java.util.logging` but configur
ing
the
output using Log4j). See the Actuator Log4j Sample for more detail and to see it in
output using Log4j). See the Actuator Log4j Sample for more detail and to see it in
action.
action.
...
@@ -1246,7 +1246,7 @@ that can be used to disable the migrations, or switch off the location checking.
...
@@ -1246,7 +1246,7 @@ that can be used to disable the migrations, or switch off the location checking.
By default Flyway will autowire the (`@Primary`) `DataSource` in your context and
By default Flyway will autowire the (`@Primary`) `DataSource` in your context and
use that for migrations. If you like to use a different `DataSource` you can create
use that for migrations. If you like to use a different `DataSource` you can create
one and mark its `@Bean` as `@FlywayDataSource` - if you do that remember to create
one and mark its `@Bean` as `@FlywayDataSource` - if you do that remember to create
another one and mark it as `@Primary` if you want
2
data sources.
another one and mark it as `@Primary` if you want
two
data sources.
Or you can use Flyway's native `DataSource` by setting `flyway.[url,user,password]`
Or you can use Flyway's native `DataSource` by setting `flyway.[url,user,password]`
in external properties.
in external properties.
...
@@ -1283,7 +1283,7 @@ Spring Batch auto configuration is enabled by adding `@EnableBatchProcessing`
...
@@ -1283,7 +1283,7 @@ Spring Batch auto configuration is enabled by adding `@EnableBatchProcessing`
By default it executes *all* `Jobs` in the application context on startup (see
By default it executes *all* `Jobs` in the application context on startup (see
{sc-spring-boot-autoconfigure}/batch/JobLauncherCommandLineRunner.{sc-ext}[JobLauncherCommandLineRunner]
{sc-spring-boot-autoconfigure}/batch/JobLauncherCommandLineRunner.{sc-ext}[JobLauncherCommandLineRunner]
for details). You can narrow down to a specific job or jobs by specifying
for details). You can narrow down to a specific job or jobs by specifying
`spring.batch.job.names` (comma
separated job name patterns).
`spring.batch.job.names` (comma
-
separated job name patterns).
If the application context includes a `JobRegistry` then the jobs in
If the application context includes a `JobRegistry` then the jobs in
`spring.batch.job.names` are looked up in the registry instead of being autowired from the
`spring.batch.job.names` are looked up in the registry instead of being autowired from the
...
@@ -1527,7 +1527,7 @@ To configure IntelliJ correctly you can use the `idea` Gradle plugin:
...
@@ -1527,7 +1527,7 @@ To configure IntelliJ correctly you can use the `idea` Gradle plugin:
----
----
NOTE: Intelli
j
must be configured to use the same Java version as the command line Gradle
NOTE: Intelli
J
must be configured to use the same Java version as the command line Gradle
task and `springloaded` *must* be included as a `buildscript` dependency.
task and `springloaded` *must* be included as a `buildscript` dependency.
You can also additionally enable '`Make Project Automatically`' inside Intellij to
You can also additionally enable '`Make Project Automatically`' inside Intellij to
...
@@ -1556,7 +1556,7 @@ you would add the following:
...
@@ -1556,7 +1556,7 @@ you would add the following:
</properties>
</properties>
----
----
NOTE:
t
his only works if your Maven project inherits (directly or indirectly) from
NOTE:
T
his only works if your Maven project inherits (directly or indirectly) from
`spring-boot-dependencies`. If you have added `spring-boot-dependencies` in your
`spring-boot-dependencies`. If you have added `spring-boot-dependencies` in your
own `dependencyManagement` section with `<scope>import</scope>` you have to redefine
own `dependencyManagement` section with `<scope>import</scope>` you have to redefine
the artifact yourself instead of overriding the property .
the artifact yourself instead of overriding the property .
...
...
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
16937746
...
@@ -605,7 +605,7 @@ from your command:
...
@@ -605,7 +605,7 @@ from your command:
[[
production
-
ready
-
remote
-
shell
-
plugins
]]
[[
production
-
ready
-
remote
-
shell
-
plugins
]]
====
Remote
shell
plugins
====
Remote
shell
plugins
In
addition
to
new
commands
,
it
is
also
possible
to
extend
other
CRaSH
shell
features
.
In
addition
to
new
commands
,
it
is
also
possible
to
extend
other
CRaSH
shell
features
.
All
Spring
Beans
that
extend
s
`
org
.
crsh
.
plugin
.
CRaSHPlugin
`
will
be
automatically
All
Spring
Beans
that
extend
`
org
.
crsh
.
plugin
.
CRaSHPlugin
`
will
be
automatically
registered
with
the
shell
.
registered
with
the
shell
.
For
more
information
please
refer
to
the
http
://
www
.
crashub
.
org
/[
CRaSH
reference
For
more
information
please
refer
to
the
http
://
www
.
crashub
.
org
/[
CRaSH
reference
...
@@ -832,8 +832,8 @@ In `META-INF/spring.factories` file you have to activate the listener:
...
@@ -832,8 +832,8 @@ In `META-INF/spring.factories` file you have to activate the listener:
[[production-ready-process-monitoring-programmatically]]
[[production-ready-process-monitoring-programmatically]]
=== Programmatically
=== Programmatically
You can also activate this listener by invoking `SpringApplication.addListeners(...)`
You can also activate this listener by invoking `SpringApplication.addListeners(...)`
method and passing `ApplicationPidListener` object. You can also customize
file nam
e
method and passing `ApplicationPidListener` object. You can also customize
the fil
e
and path through
constructor.
name and path through its
constructor.
...
@@ -845,5 +845,5 @@ might want to read about graphing tools such as http://graphite.wikidot.com/[Gra
...
@@ -845,5 +845,5 @@ might want to read about graphing tools such as http://graphite.wikidot.com/[Gra
Otherwise, you can continue on, to read about <<cloud-deployment.adoc#cloud-deployment,
Otherwise, you can continue on, to read about <<cloud-deployment.adoc#cloud-deployment,
'
`
cloud
deployment
options
`
'>> or jump ahead
'
`
cloud
deployment
options
`
'>> or jump ahead
for some in
depth information about Spring Boot'
s
for some in
-
depth information about Spring Boot'
s
'<<build-tool-plugins.adoc#build-tool-plugins, build tool plugins>>'
.
'<<build-tool-plugins.adoc#build-tool-plugins, build tool plugins>>'
.
spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc
View file @
16937746
...
@@ -76,7 +76,7 @@ using.
...
@@ -76,7 +76,7 @@ using.
[[cli-run]]
[[cli-run]]
=== Running applications using the CLI
=== Running applications using the CLI
You can compile and run Groovy source code using the `run` command. The Spring Boot CLI
You can compile and run Groovy source code using the `run` command. The Spring Boot CLI
is completely self
contained so you don't need any external Groovy installation.
is completely self
-
contained so you don't need any external Groovy installation.
Here is an example ``hello world'' web application written in Groovy:
Here is an example ``hello world'' web application written in Groovy:
...
@@ -272,7 +272,7 @@ executable jar file. For example:
...
@@ -272,7 +272,7 @@ executable jar file. For example:
The resulting jar will contain the classes produced by compiling the application and all
The resulting jar will contain the classes produced by compiling the application and all
of the application's dependencies so that it can then be run using `java -jar`. The jar
of the application's dependencies so that it can then be run using `java -jar`. The jar
file will also contain entries from the application's classpath. You can add explicit
file will also contain entries from the application's classpath. You can add explicit
paths to the jar using `--include` and `--exclude` (both are comma
separated, and both
paths to the jar using `--include` and `--exclude` (both are comma
-
separated, and both
accept prefixes to the values ``+'' and ``-'' to signify that they should be removed from
accept prefixes to the values ``+'' and ``-'' to signify that they should be removed from
the defaults). The default includes are
the defaults). The default includes are
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
16937746
...
@@ -1028,7 +1028,6 @@ behaviour by setting `com.ibm.ws.webcontainer.invokeFlushAfterService` to `false
...
@@ -1028,7 +1028,6 @@ behaviour by setting `com.ibm.ws.webcontainer.invokeFlushAfterService` to `false
[[boot-features-embedded-container]]
[[boot-features-embedded-container]]
=== Embedded servlet container support
=== Embedded servlet container support
Spring Boot includes support for embedded Tomcat and Jetty servers. Most developers will
Spring Boot includes support for embedded Tomcat and Jetty servers. Most developers will
...
@@ -1044,7 +1043,7 @@ Spring beans. This can be particularly convenient if you want to refer to a valu
...
@@ -1044,7 +1043,7 @@ Spring beans. This can be particularly convenient if you want to refer to a valu
your `application.properties` during configuration.
your `application.properties` during configuration.
By default, if the context contains only a single Servlet it will be mapped to `/`. In
By default, if the context contains only a single Servlet it will be mapped to `/`. In
the case of multiple Servlet
s
beans the bean name will be used as a path prefix. Filters
the case of multiple Servlet beans the bean name will be used as a path prefix. Filters
will map to `+/*+`.
will map to `+/*+`.
If convention-based mapping is not flexible enough you can use the
If convention-based mapping is not flexible enough you can use the
...
@@ -1272,7 +1271,7 @@ auto-configured. In this example it's pulled in transitively via
...
@@ -1272,7 +1271,7 @@ auto-configured. In this example it's pulled in transitively via
[[boot-features-connect-to-production-database]]
[[boot-features-connect-to-production-database]]
==== Connection to a production database
==== Connection to a production database
Production database connections can also be auto-configured using a pooling
Production database connections can also be auto-configured using a pooling
`DataSource`. Here's the algorithm for choosing a specific implementation
.
`DataSource`. Here's the algorithm for choosing a specific implementation
:
* We prefer the Tomcat pooling `DataSource` for its performance and concurrency, so if
* We prefer the Tomcat pooling `DataSource` for its performance and concurrency, so if
that is available we always choose it.
that is available we always choose it.
...
@@ -1304,6 +1303,8 @@ NOTE: For a pooling `DataSource` to be created we need to be able to verify that
...
@@ -1304,6 +1303,8 @@ NOTE: For a pooling `DataSource` to be created we need to be able to verify that
`spring.datasource.driverClassName=com.mysql.jdbc.Driver` then that class has to be
`spring.datasource.driverClassName=com.mysql.jdbc.Driver` then that class has to be
loadable.
loadable.
[[boot-features-using-jdbc-template]]
[[boot-features-using-jdbc-template]]
=== Using JdbcTemplate
=== Using JdbcTemplate
Spring's `JdbcTemplate` and `NamedParameterJdbcTemplate` classes are auto-configured and
Spring's `JdbcTemplate` and `NamedParameterJdbcTemplate` classes are auto-configured and
...
@@ -1450,7 +1451,7 @@ their http://projects.spring.io/spring-data-jpa/[reference documentation].
...
@@ -1450,7 +1451,7 @@ their http://projects.spring.io/spring-data-jpa/[reference documentation].
[[boot-features-creating-and-dropping-jpa-databases]]
[[boot-features-creating-and-dropping-jpa-databases]]
==== Creating and dropping JPA databases
==== Creating and dropping JPA databases
By default
JPA database
will be automatically created *only* if you use an embedded
By default
, JPA databases
will be automatically created *only* if you use an embedded
database (H2, HSQL or Derby). You can explicitly configure JPA settings using
database (H2, HSQL or Derby). You can explicitly configure JPA settings using
`+spring.jpa.*+` properties. For example, to create and drop tables you can add the
`+spring.jpa.*+` properties. For example, to create and drop tables you can add the
following to your `application.properties`.
following to your `application.properties`.
...
@@ -1475,7 +1476,7 @@ passes `hibernate.globally_quoted_identifiers` to the Hibernate entity manager.
...
@@ -1475,7 +1476,7 @@ passes `hibernate.globally_quoted_identifiers` to the Hibernate entity manager.
By default the DDL execution (or validation) is deferred until
By default the DDL execution (or validation) is deferred until
the `ApplicationContext` has started. There is also a `spring.jpa.generate-ddl` flag, but
the `ApplicationContext` has started. There is also a `spring.jpa.generate-ddl` flag, but
it is not used if Hibernate autoconfig is active because the `ddl-auto`
it is not used if Hibernate autoconfig is active because the `ddl-auto`
settings are more fine
grained.
settings are more fine
-
grained.
...
@@ -1809,7 +1810,7 @@ connect to a broker using the the `netty` transport protocol. When the latter is
...
@@ -1809,7 +1810,7 @@ connect to a broker using the the `netty` transport protocol. When the latter is
configured, Spring Boot configures a `ConnectionFactory` connecting to a broker running
configured, Spring Boot configures a `ConnectionFactory` connecting to a broker running
on the local machine with the default settings.
on the local machine with the default settings.
NOTE:
i
f you are using `spring-boot-starter-hornetq` the necessary dependencies to
NOTE:
I
f you are using `spring-boot-starter-hornetq` the necessary dependencies to
connect to an existing HornetQ instance are provided, as well as the Spring infrastructure
connect to an existing HornetQ instance are provided, as well as the Spring infrastructure
to integrate with JMS. Adding `org.hornetq:hornetq-jms-server` to your application allows
to integrate with JMS. Adding `org.hornetq:hornetq-jms-server` to your application allows
you to use the embedded mode.
you to use the embedded mode.
...
@@ -1826,7 +1827,7 @@ HornetQ configuration is controlled by external configuration properties in
...
@@ -1826,7 +1827,7 @@ HornetQ configuration is controlled by external configuration properties in
----
----
When embedding the broker, you can chose if you want to enable persistence, and the list
When embedding the broker, you can chose if you want to enable persistence, and the list
of destinations that should be made available. These can be specified as a comma
separated
of destinations that should be made available. These can be specified as a comma
-
separated
list to create them with the default options; or you can define bean(s) of type
list to create them with the default options; or you can define bean(s) of type
`org.hornetq.jms.server.config.JMSQueueConfiguration` or
`org.hornetq.jms.server.config.JMSQueueConfiguration` or
`org.hornetq.jms.server.config.TopicConfiguration`, for advanced queue and topic
`org.hornetq.jms.server.config.TopicConfiguration`, for advanced queue and topic
...
@@ -1933,7 +1934,7 @@ If you use the
...
@@ -1933,7 +1934,7 @@ If you use the
the following provided libraries:
the following provided libraries:
* Spring Test -- integration test support for Spring applications.
* Spring Test -- integration test support for Spring applications.
* J
u
nit -- The de-facto standard for unit testing Java applications.
* J
U
nit -- The de-facto standard for unit testing Java applications.
* Hamcrest -- A library of matcher objects (also known as constraints or predicates)
* Hamcrest -- A library of matcher objects (also known as constraints or predicates)
allowing `assertThat` style JUnit assertions.
allowing `assertThat` style JUnit assertions.
* Mockito -- A Java mocking framework.
* Mockito -- A Java mocking framework.
...
@@ -2001,7 +2002,7 @@ it with HTTP (e.g. using `RestTemplate`), annotate your test class (or one of it
...
@@ -2001,7 +2002,7 @@ it with HTTP (e.g. using `RestTemplate`), annotate your test class (or one of it
superclasses) with `@IntegrationTest`. This can be very useful because it means you can
superclasses) with `@IntegrationTest`. This can be very useful because it means you can
test the full stack of your application, but also inject its components into the test
test the full stack of your application, but also inject its components into the test
class and use them to assert the internal state of the application after an HTTP
class and use them to assert the internal state of the application after an HTTP
interaction. For
E
xample:
interaction. For
e
xample:
[source,java,indent=0,subs="verbatim,quotes,attributes"]
[source,java,indent=0,subs="verbatim,quotes,attributes"]
----
----
...
@@ -2206,7 +2207,7 @@ You can use the
...
@@ -2206,7 +2207,7 @@ You can use the
{sc-spring-boot-autoconfigure}/AutoConfigureAfter.{sc-ext}[`@AutoConfigureAfter`] or
{sc-spring-boot-autoconfigure}/AutoConfigureAfter.{sc-ext}[`@AutoConfigureAfter`] or
{sc-spring-boot-autoconfigure}/AutoConfigureBefore.{sc-ext}[`@AutoConfigureBefore`]
{sc-spring-boot-autoconfigure}/AutoConfigureBefore.{sc-ext}[`@AutoConfigureBefore`]
annotations if your configuration needs to be applied in a specific order. For example,
annotations if your configuration needs to be applied in a specific order. For example,
if you provide web
specific configuration, your class may need to be applied after
if you provide web
-
specific configuration, your class may need to be applied after
`WebMvcAutoConfiguration`.
`WebMvcAutoConfiguration`.
...
@@ -2227,7 +2228,7 @@ code by annotating `@Configuration` classes or individual `@Bean` methods.
...
@@ -2227,7 +2228,7 @@ code by annotating `@Configuration` classes or individual `@Bean` methods.
==== Class conditions
==== Class conditions
The `@ConditionalOnClass` and `@ConditionalOnMissingClass` annotations allows configuration
The `@ConditionalOnClass` and `@ConditionalOnMissingClass` annotations allows configuration
to be skipped based on the presence or absence of specific classes. Due to the fact that
to be skipped based on the presence or absence of specific classes. Due to the fact that
annotation meta
-
data is parsed using http://asm.ow2.org/[ASM] you can actually use the
annotation metadata is parsed using http://asm.ow2.org/[ASM] you can actually use the
`value` attribute to refer to the real class, even though that class might not actually
`value` attribute to refer to the real class, even though that class might not actually
appear on the running application classpath. You can also use the `name` attribute if you
appear on the running application classpath. You can also use the `name` attribute if you
prefer to specify the class name using a `String` value.
prefer to specify the class name using a `String` value.
...
...
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
16937746
...
@@ -549,7 +549,7 @@ and build system. Most IDEs can import Maven projects directly, for example Ecli
...
@@ -549,7 +549,7 @@ and build system. Most IDEs can import Maven projects directly, for example Ecli
can
select
`
Import
...`
->
`
Existing
Maven
Projects
`
from
the
`
File
`
menu
.
can
select
`
Import
...`
->
`
Existing
Maven
Projects
`
from
the
`
File
`
menu
.
If
you
can
't directly import your project into your IDE, you may be able to generate IDE
If
you
can
't directly import your project into your IDE, you may be able to generate IDE
meta
-
data using a build plugin. Maven includes plugins for
metadata using a build plugin. Maven includes plugins for
http://maven.apache.org/plugins/maven-eclipse-plugin/[Eclipse] and
http://maven.apache.org/plugins/maven-eclipse-plugin/[Eclipse] and
http://maven.apache.org/plugins/maven-idea-plugin/[IDEA]; Gradle offers plugins
http://maven.apache.org/plugins/maven-idea-plugin/[IDEA]; Gradle offers plugins
for http://www.gradle.org/docs/current/userguide/ide_support.html[various IDEs].
for http://www.gradle.org/docs/current/userguide/ide_support.html[various IDEs].
...
@@ -638,7 +638,7 @@ See the <<howto.adoc#howto-hotswapping, Hot swapping ``How-to''>> section for de
...
@@ -638,7 +638,7 @@ See the <<howto.adoc#howto-hotswapping, Hot swapping ``How-to''>> section for de
[[using-boot-packaging-for-production]]
[[using-boot-packaging-for-production]]
== Packaging your application for production
== Packaging your application for production
Executable jars can be used for production deployment. As they are self
contained, they
Executable jars can be used for production deployment. As they are self
-
contained, they
are also ideally suited for cloud-based deployment.
are also ideally suited for cloud-based deployment.
For additional ``production ready'' features, such as health, auditing and metric REST
For additional ``production ready'' features, such as health, auditing and metric REST
...
...
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java
View file @
16937746
...
@@ -86,7 +86,7 @@ public class PropertiesLauncher extends Launcher {
...
@@ -86,7 +86,7 @@ public class PropertiesLauncher extends Launcher {
/**
/**
* Properties key for classpath entries (directories possibly containing jars).
* Properties key for classpath entries (directories possibly containing jars).
* Defaults to "lib/" (relative to {@link #HOME loader home directory}). Multiple
* Defaults to "lib/" (relative to {@link #HOME loader home directory}). Multiple
* entries can be specified using a comma
separe
ted list.
* entries can be specified using a comma
-separa
ted list.
*/
*/
public
static
final
String
PATH
=
"loader.path"
;
public
static
final
String
PATH
=
"loader.path"
;
...
...
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/package-info.java
View file @
16937746
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
*/
*/
/**
/**
* System that allows self
contained JAR/WAR archives to be launched using
* System that allows self
-
contained JAR/WAR archives to be launched using
* {@code java -jar}. Archives can include nested packaged dependency JARs (there is
* {@code java -jar}. Archives can include nested packaged dependency JARs (there is
* no need to create shade style jars) and are executed without unpacking. The only
* no need to create shade style jars) and are executed without unpacking. The only
* constraint is that nested JARs must be stored in the archive uncompressed.
* constraint is that nested JARs must be stored in the archive uncompressed.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment