|
@@ -2,7 +2,7 @@
|
2
|
2
|
tags: [spring-boot]
|
3
|
3
|
projects: [spring-boot]
|
4
|
4
|
---
|
5
|
|
-:spring_boot_version: 0.5.0.M6
|
|
5
|
+:spring_boot_version: 1.0.0.RC3
|
6
|
6
|
:spring-boot: https://github.com/spring-projects/spring-boot
|
7
|
7
|
:toc:
|
8
|
8
|
:icons: font
|
|
@@ -154,30 +154,14 @@ Change your `build.gradle` to exclude Tomcat then add Jetty to the list of depen
|
154
|
154
|
|
155
|
155
|
[source,groovy]
|
156
|
156
|
----
|
157
|
|
- compile("org.springframework.boot:spring-boot-starter-web:0.5.0.M6") {
|
158
|
|
- exclude module: "spring-boot-starter-tomcat"
|
159
|
|
- }
|
160
|
|
- compile("org.springframework.boot:spring-boot-starter-jetty:0.5.0.M6")
|
|
157
|
+include::complete/build.gradle[tag=jetty]
|
161
|
158
|
----
|
162
|
159
|
|
163
|
160
|
If you are using Maven, the changes look like this:
|
164
|
161
|
|
165
|
162
|
[source,xml]
|
166
|
163
|
----
|
167
|
|
- <dependency>
|
168
|
|
- <groupId>org.springframework.boot</groupId>
|
169
|
|
- <artifactId>spring-boot-starter-web</artifactId>
|
170
|
|
- <exclusions>
|
171
|
|
- <exclusion>
|
172
|
|
- <groupId>org.springframework.boot</groupId>
|
173
|
|
- <artifactId>spring-boot-starter-tomcat</artifactId>
|
174
|
|
- </exclusion>
|
175
|
|
- </exclusions>
|
176
|
|
- </dependency>
|
177
|
|
- <dependency>
|
178
|
|
- <groupId>org.springframework.boot</groupId>
|
179
|
|
- <artifactId>spring-boot-starter-jetty</artifactId>
|
180
|
|
- </dependency>
|
|
164
|
+include::complete/pom.xml[tag=jetty]
|
181
|
165
|
----
|
182
|
166
|
|
183
|
167
|
This change isn't about comparing Tomcat vs. Jetty. Instead, it demonstrates how Spring Boot reacts to what is on your classpath.
|
|
@@ -264,17 +248,14 @@ Add this to your build file's list of dependencies:
|
264
|
248
|
|
265
|
249
|
[source,groovy]
|
266
|
250
|
----
|
267
|
|
- compile("org.springframework.boot:spring-boot-starter-actuator:0.5.0.M6")
|
|
251
|
+include::complete/build.gradle[tag=actuator]
|
268
|
252
|
----
|
269
|
253
|
|
270
|
254
|
If you are using Maven, add this to your list of dependencies:
|
271
|
255
|
|
272
|
256
|
[source,xml]
|
273
|
257
|
----
|
274
|
|
- <dependency>
|
275
|
|
- <groupId>org.springframework.boot</groupId>
|
276
|
|
- <artifactId>spring-boot-starter-actuator</artifactId>
|
277
|
|
- </dependency>
|
|
258
|
+include::complete/pom.xml[tag=actuator]
|
278
|
259
|
----
|
279
|
260
|
|
280
|
261
|
Then restart the app:
|