Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
3a361e41
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3a361e41
编写于
6月 22, 2017
作者:
S
shenhongxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
thymeleaf
上级
ed34a11c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
30 addition
and
6 deletion
+30
-6
whatsmars-spring-boot/pom.xml
whatsmars-spring-boot/pom.xml
+7
-2
whatsmars-spring-boot/src/main/java/com/itlong/whatsmars/spring/boot/UserController.java
...java/com/itlong/whatsmars/spring/boot/UserController.java
+9
-1
whatsmars-spring-boot/src/main/resources/application-dev.properties
...spring-boot/src/main/resources/application-dev.properties
+1
-1
whatsmars-spring-boot/src/main/resources/application-prod.properties
...pring-boot/src/main/resources/application-prod.properties
+1
-1
whatsmars-spring-boot/src/main/resources/application-test.properties
...pring-boot/src/main/resources/application-test.properties
+1
-1
whatsmars-spring-boot/src/main/resources/templates/index.html
...smars-spring-boot/src/main/resources/templates/index.html
+11
-0
未找到文件。
whatsmars-spring-boot/pom.xml
浏览文件 @
3a361e41
...
...
@@ -117,6 +117,10 @@
<artifactId>
pagehelper
</artifactId>
<version>
4.1.6
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-thymeleaf
</artifactId>
</dependency>
</dependencies>
...
...
@@ -125,10 +129,11 @@
<resources>
<resource>
<directory>
src/main/resources
</directory>
<includes>
<
!--<
includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<include>**/*.html</include>
</includes>-->
<filtering>
true
</filtering>
</resource>
</resources>
...
...
whatsmars-spring-boot/src/main/java/com/itlong/whatsmars/spring/boot/UserController.java
浏览文件 @
3a361e41
...
...
@@ -6,6 +6,8 @@ import org.springframework.stereotype.Controller;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
java.util.Map
;
/**
* Created by shenhongxi on 2017/3/27.
*/
...
...
@@ -17,8 +19,14 @@ public class UserController {
private
UserConfig
userConfig
;
@RequestMapping
(
"/"
)
public
String
home
(
Map
<
String
,
Object
>
map
)
{
map
.
put
(
"hello"
,
"Hi, boy!"
);
return
"index"
;
}
@RequestMapping
(
"/do"
)
@ResponseBody
String
home
()
{
public
String
doSth
()
{
return
userConfig
.
getWelcome
();
}
...
...
whatsmars-spring-boot/src/main/resources/application-dev.properties
浏览文件 @
3a361e41
...
...
@@ -59,4 +59,4 @@ toutiao.loginSuccessIndex=http://${toutiao.domain}/index.html
user.welcome
=
Hello, World!
user.noFilterUrl
=
/,/login
spring.thymeleaf.cache
=
false
\ No newline at end of file
whatsmars-spring-boot/src/main/resources/application-prod.properties
浏览文件 @
3a361e41
...
...
@@ -59,4 +59,4 @@ toutiao.loginSuccessIndex=http://${toutiao.domain}/index.html
user.welcome
=
Hello, World!
user.noFilterUrl
=
/,/login
spring.thymeleaf.cache
=
false
\ No newline at end of file
whatsmars-spring-boot/src/main/resources/application-test.properties
浏览文件 @
3a361e41
...
...
@@ -59,4 +59,4 @@ toutiao.loginSuccessIndex=http://${toutiao.domain}/index.html
user.welcome
=
Hello, World!
user.noFilterUrl
=
/,/login
spring.thymeleaf.cache
=
false
whatsmars-spring-boot/src/main/resources/templates/index.html
0 → 100644
浏览文件 @
3a361e41
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:sec=
"http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
>
<head>
<title>
thymeleaf
</title>
</head>
<body>
<h1
th:inline=
"text"
>
thymeleaf
</h1>
<p
th:text=
"${hello}"
></p>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录