Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
80f3e74a
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 3 年多
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
80f3e74a
编写于
3月 02, 2020
作者:
C
Captain.B
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
简化后端
上级
04a804f0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
34 deletion
+5
-34
backend/pom.xml
backend/pom.xml
+1
-20
backend/src/main/java/io/metersphere/config/ShiroConfig.java
backend/src/main/java/io/metersphere/config/ShiroConfig.java
+0
-6
backend/src/main/java/io/metersphere/controller/IndexController.java
.../main/java/io/metersphere/controller/IndexController.java
+3
-7
backend/src/main/java/io/metersphere/interceptor/MybatisInterceptor.java
...n/java/io/metersphere/interceptor/MybatisInterceptor.java
+1
-1
未找到文件。
backend/pom.xml
浏览文件 @
80f3e74a
...
...
@@ -51,11 +51,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.github.theborakompanioni
</groupId>
<artifactId>
thymeleaf-extras-shiro
</artifactId>
<version>
2.0.0
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -173,21 +168,7 @@
<skipTests>
true
</skipTests>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-source-plugin
</artifactId>
<version>
3.0.0
</version>
<configuration>
<attach>
true
</attach>
</configuration>
<executions>
<execution>
<id>
attach-sources
</id>
<goals>
<goal>
jar
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
...
...
backend/src/main/java/io/metersphere/config/ShiroConfig.java
浏览文件 @
80f3e74a
package
io.metersphere.config
;
import
at.pollux.thymeleaf.shiro.dialect.ShiroDialect
;
import
io.metersphere.security.LoginFilter
;
import
io.metersphere.security.ShiroDBRealm
;
import
org.apache.shiro.cache.MemoryConstrainedCacheManager
;
...
...
@@ -100,11 +99,6 @@ public class ShiroConfig {
return
daap
;
}
@Bean
(
name
=
"shiroDialect"
)
public
ShiroDialect
shiroDialect
()
{
return
new
ShiroDialect
();
}
@Bean
public
AuthorizationAttributeSourceAdvisor
getAuthorizationAttributeSourceAdvisor
(
DefaultWebSecurityManager
sessionManager
)
{
AuthorizationAttributeSourceAdvisor
aasa
=
new
AuthorizationAttributeSourceAdvisor
();
...
...
backend/src/main/java/io/metersphere/controller/IndexController.java
浏览文件 @
80f3e74a
...
...
@@ -4,18 +4,14 @@ import io.metersphere.user.SessionUtils;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.servlet.ModelAndView
;
@Controller
@RequestMapping
public
class
IndexController
{
@RequestMapping
(
value
=
"/"
,
method
=
RequestMethod
.
GET
)
public
ModelAndView
index
()
{
ModelAndView
modelAndView
=
new
ModelAndView
();
modelAndView
.
setViewName
(
"index"
);
return
modelAndView
;
@GetMapping
(
value
=
"/"
)
public
String
index
()
{
return
"index"
;
}
@GetMapping
(
value
=
"/login"
)
...
...
backend/src/main/java/io/metersphere/interceptor/MybatisInterceptor.java
浏览文件 @
80f3e74a
...
...
@@ -2,6 +2,7 @@ package io.metersphere.interceptor;
import
io.metersphere.commons.utils.BeanUtils
;
import
io.metersphere.commons.utils.MybatisInterceptorConfig
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.ibatis.cache.CacheKey
;
import
org.apache.ibatis.executor.Executor
;
...
...
@@ -10,7 +11,6 @@ import org.apache.ibatis.mapping.MappedStatement;
import
org.apache.ibatis.plugin.*
;
import
org.apache.ibatis.session.ResultHandler
;
import
org.apache.ibatis.session.RowBounds
;
import
org.thymeleaf.util.MapUtils
;
import
java.lang.reflect.Method
;
import
java.util.*
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录