Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
8011ec54
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,体验更适合开发者的 AI 搜索 >>
提交
8011ec54
编写于
6月 20, 2017
作者:
S
shenhongxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
springboot
上级
76500cf1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
68 addition
and
27 deletion
+68
-27
whatsmars-spring-boot/pom.xml
whatsmars-spring-boot/pom.xml
+61
-22
whatsmars-spring-boot/src/main/java/com/itlong/whatsmars/spring/boot/SampleController.java
...va/com/itlong/whatsmars/spring/boot/SampleController.java
+5
-1
whatsmars-spring-boot/src/main/java/com/itlong/whatsmars/spring/boot/UserConfig.java
...ain/java/com/itlong/whatsmars/spring/boot/UserConfig.java
+1
-1
whatsmars-spring-boot/src/main/resources/application-test.properties
...pring-boot/src/main/resources/application-test.properties
+1
-2
whatsmars-spring-boot/src/main/resources/user.properties
whatsmars-spring-boot/src/main/resources/user.properties
+0
-1
未找到文件。
whatsmars-spring-boot/pom.xml
浏览文件 @
8011ec54
...
...
@@ -22,14 +22,71 @@
</parent>
<dependencies>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
1.1.1
</version>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
<exclusion>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
</exclusion>
<!--<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>-->
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
1.1.1
</version>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-aop
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<!-- 开启如下依赖后,应用会自动检测相关配置 -->
<!--<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session</artifactId>
</dependency>-->
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
commons-dbcp
</groupId>
...
...
@@ -45,25 +102,7 @@
<artifactId>
pagehelper
</artifactId>
<version>
4.1.6
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</artifactId>
</dependency>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
1.1.1
</version>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
<exclusion>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
...
...
whatsmars-spring-boot/src/main/java/com/itlong/whatsmars/spring/boot/SampleController.java
浏览文件 @
8011ec54
package
com.itlong.whatsmars.spring.boot
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -12,10 +13,13 @@ import org.springframework.web.bind.annotation.ResponseBody;
@EnableAutoConfiguration
public
class
SampleController
{
@Autowired
private
UserConfig
userConfig
;
@RequestMapping
(
"/"
)
@ResponseBody
String
home
()
{
return
"Hello World!"
;
return
userConfig
.
getNoFilterUrl
().
toString
()
;
}
}
whatsmars-spring-boot/src/main/java/com/itlong/whatsmars/spring/boot/UserConfig.java
浏览文件 @
8011ec54
...
...
@@ -7,7 +7,7 @@ import java.util.List;
/**
* Created by shenhongxi on 2017/6/20.
*/
@ConfigurationProperties
(
prefix
=
"
whatsmars
"
)
@ConfigurationProperties
(
prefix
=
"
user
"
)
public
class
UserConfig
{
private
List
<
String
>
noFilterUrl
;
...
...
whatsmars-spring-boot/src/main/resources/application-test.properties
浏览文件 @
8011ec54
...
...
@@ -56,7 +56,6 @@ toutiao.loginCallback=http://${toutiao.domain}/user/login
toutiao.logoutCallback
=
http://${toutiao.domain}/
toutiao.loginSuccessIndex
=
http://${toutiao.domain}/index.html
#open api auth
openapi.auth.enable
=
true
user.noFilterUrl
=
/,/login
whatsmars-spring-boot/src/main/resources/user.properties
浏览文件 @
8011ec54
whatsmars.noFilterUrl
=
/,/login
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录