@ -125,8 +125,8 @@ To build and run a project artifact, you can type the following:
@@ -125,8 +125,8 @@ To build and run a project artifact, you can type the following:
$ java -jar target/mymodule-0.0.1-SNAPSHOT.jar
----
To build a war file that is both executable and deployable into an external container
you need to mark the embedded container dependencies as "provided", e.g.
To build a war file that is both executable and deployable into an external container you
need to mark the embedded container dependencies as ``provided'', e.g:
[source,xml,indent=0,subs="verbatim,attributes"]
----
@ -136,7 +136,7 @@ you need to mark the embedded container dependencies as "provided", e.g.
@@ -136,7 +136,7 @@ you need to mark the embedded container dependencies as "provided", e.g.
<!-- ... -->
<packaging>war</packaging>
<!-- ... -->
<dependencies>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
@ -147,11 +147,12 @@ you need to mark the embedded container dependencies as "provided", e.g.
@@ -147,11 +147,12 @@ you need to mark the embedded container dependencies as "provided", e.g.
The following configuration options are available for the `spring-boot:repackage` goal:
@ -373,33 +374,33 @@ To build and run a project artifact, you can type the following:
@@ -373,33 +374,33 @@ To build and run a project artifact, you can type the following:
----
To build a war file that is both executable and deployable into an external container,
you need to mark the embedded container dependencies as belonging to a configuration
named "providedRuntime", e.g.
you need to mark the embedded container dependencies as belonging to a configuration
@ -355,30 +355,29 @@ that and be sure that it has initialized is to add a `@Bean` of type
@@ -355,30 +355,29 @@ that and be sure that it has initialized is to add a `@Bean` of type
`ApplicationListener<EmbeddedServletContainerInitializedEvent>` and pull the container
out of the event when it is published.
A really useful thing to do in is to autowire the
`EmbeddedWebApplicationContext` into a test case and use it to
discover the port that the app is running on. In that way you can use
a test profile that chooses a random port (`server.port=0`) and make
your test suite independent of its environment. Example:
A really useful thing to do in is to autowire the `EmbeddedWebApplicationContext` into a
test case and use it to discover the port that the app is running on. In that way you can
use a test profile that chooses a random port (`server.port=0`) and make your test suite