Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
多鱼的夏天
Gs Spring Boot
提交
384a9e64
G
Gs Spring Boot
项目概览
多鱼的夏天
/
Gs Spring Boot
通知
12
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gs Spring Boot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
384a9e64
编写于
2月 14, 2014
作者:
G
Greg Turnquist
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use tags to simplify the guide
上级
246eb4f2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
24 deletion
+13
-24
README.adoc
README.adoc
+5
-24
complete/build.gradle
complete/build.gradle
+4
-0
complete/pom.xml
complete/pom.xml
+4
-0
未找到文件。
README.adoc
浏览文件 @
384a9e64
...
...
@@ -2,7 +2,7 @@
tags: [spring-boot]
projects: [spring-boot]
---
:spring_boot_version:
0.5.0.M6
:spring_boot_version:
1.0.0.RC3
:spring-boot: https://github.com/spring-projects/spring-boot
:toc:
:icons: font
...
...
@@ -154,30 +154,14 @@ Change your `build.gradle` to exclude Tomcat then add Jetty to the list of depen
[source,groovy]
----
compile("org.springframework.boot:spring-boot-starter-web:0.5.0.M6") {
exclude module: "spring-boot-starter-tomcat"
}
compile("org.springframework.boot:spring-boot-starter-jetty:0.5.0.M6")
include::complete/build.gradle[tag=jetty]
----
If you are using Maven, the changes look like this:
[source,xml]
----
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
include::complete/pom.xml[tag=jetty]
----
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:
[source,groovy]
----
compile("org.springframework.boot:spring-boot-starter-actuator:0.5.0.M6")
include::complete/build.gradle[tag=actuator]
----
If you are using Maven, add this to your list of dependencies:
[source,xml]
----
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
include::complete/pom.xml[tag=actuator]
----
Then restart the app:
...
...
complete/build.gradle
浏览文件 @
384a9e64
...
...
@@ -24,11 +24,15 @@ repositories {
}
dependencies
{
// tag::jetty[]
compile
(
"org.springframework.boot:spring-boot-starter-web:1.0.0.RC3"
)
{
exclude
module:
"spring-boot-starter-tomcat"
}
compile
(
"org.springframework.boot:spring-boot-starter-jetty:1.0.0.RC3"
)
// end::jetty[]
// tag::actuator[]
compile
(
"org.springframework.boot:spring-boot-starter-actuator:1.0.0.RC3"
)
// end::actuator[]
testCompile
(
"junit:junit"
)
}
...
...
complete/pom.xml
浏览文件 @
384a9e64
...
...
@@ -14,6 +14,7 @@
</parent>
<dependencies>
<!-- tag::jetty[] -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
...
...
@@ -28,10 +29,13 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<!-- end::jetty[] -->
<!-- tag::actuator[] -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<!-- end::actuator[] -->
</dependencies>
<properties>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录