Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
workflow2
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄夏豪
workflow2
Commits
a7ae7e9e
提交
a7ae7e9e
authored
10月 11, 2021
作者:
1239068511@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[代码更新] 国庆回来后的第一次上传,至此工作流的1.0版本算是做完后续会在这个基础上进行更新
上级
2362139d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
7 行增加
和
24 行删除
+7
-24
pom.xml
pom.xml
+0
-1
SecurityWebConfig.java
...ykj/workflowcore/user/authencation/SecurityWebConfig.java
+1
-17
application-mysql.yml
src/main/resources/application-mysql.yml
+2
-2
application.yml
src/main/resources/application.yml
+2
-2
index.html
src/main/resources/workflow/index.html
+2
-2
没有找到文件。
pom.xml
浏览文件 @
a7ae7e9e
...
@@ -263,7 +263,6 @@
...
@@ -263,7 +263,6 @@
<plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
2.4.1
</version>
</plugin>
</plugin>
<!-- <plugin>-->
<!-- <plugin>-->
...
...
src/main/java/com/tykj/workflowcore/user/authencation/SecurityWebConfig.java
浏览文件 @
a7ae7e9e
...
@@ -142,19 +142,8 @@ public class SecurityWebConfig extends WebSecurityConfigurerAdapter {
...
@@ -142,19 +142,8 @@ public class SecurityWebConfig extends WebSecurityConfigurerAdapter {
http
.
exceptionHandling
()
http
.
exceptionHandling
()
.
authenticationEntryPoint
(
new
CustomAuthenticationEntryPoint
());
.
authenticationEntryPoint
(
new
CustomAuthenticationEntryPoint
());
//添加自定义用户验证拦截器至UsernamePasswordAuthenticationFilter的位置
//添加自定义用户验证拦截器至UsernamePasswordAuthenticationFilter的位置
http
http
.
addFilterAt
(
customUsernamePasswordAuthenticationFilter
(),
UsernamePasswordAuthenticationFilter
.
class
);
.
addFilterAt
(
new
ConcurrentSessionFilter
(
sessionRegistry
(),
event
->
{
HttpServletResponse
resp
=
event
.
getResponse
();
resp
.
setContentType
(
"application/json;charset=utf-8"
);
resp
.
setStatus
(
401
);
PrintWriter
out
=
resp
.
getWriter
();
// out.write(new ObjectMapper().writeValueAsString(new ResultObj(405, "您已在另一台设备登录,本次登录已下线!")));
out
.
flush
();
out
.
close
();
}),
ConcurrentSessionFilter
.
class
)
.
addFilterAt
(
customUsernamePasswordAuthenticationFilter
(),
UsernamePasswordAuthenticationFilter
.
class
);
http
.
addFilterAt
(
customJwtUsernamePasswordAuthenticationFilter
(),
UsernamePasswordAuthenticationFilter
.
class
);
http
.
addFilterAt
(
customJwtUsernamePasswordAuthenticationFilter
(),
UsernamePasswordAuthenticationFilter
.
class
);
// .addFilterAt(new JwtAuthenticationTokenFilter(jwtTokenUtils), BasicAuthenticationFilter.class);
// .addFilterAt(new JwtAuthenticationTokenFilter(jwtTokenUtils), BasicAuthenticationFilter.class);
}
}
...
@@ -195,11 +184,6 @@ public class SecurityWebConfig extends WebSecurityConfigurerAdapter {
...
@@ -195,11 +184,6 @@ public class SecurityWebConfig extends WebSecurityConfigurerAdapter {
auth
.
authenticationProvider
(
usernamePasswordAuthenticationProvider
);
auth
.
authenticationProvider
(
usernamePasswordAuthenticationProvider
);
}
}
@Bean
public
SessionRegistryImpl
sessionRegistry
()
{
return
new
SessionRegistryImpl
();
}
/***
/***
* 登录成功后干些啥
* 登录成功后干些啥
...
...
src/main/resources/application-mysql.yml
浏览文件 @
a7ae7e9e
...
@@ -24,7 +24,7 @@ spring:
...
@@ -24,7 +24,7 @@ spring:
ddl-auto
:
update
ddl-auto
:
update
database-platform
:
org.hibernate.dialect.MySQL8Dialect
database-platform
:
org.hibernate.dialect.MySQL8Dialect
sync
:
sync
:
ip
:
192.168.10
0.248
ip
:
192.168.10
2.171
port
:
8880
port
:
8880
server
:
server
:
port
:
13765
port
:
8088
src/main/resources/application.yml
浏览文件 @
a7ae7e9e
...
@@ -20,4 +20,4 @@ server:
...
@@ -20,4 +20,4 @@ server:
servlet
:
servlet
:
session
:
session
:
cookie
:
cookie
:
name
:
workflow1
name
:
workflow2
\ No newline at end of file
\ No newline at end of file
src/main/resources/workflow/index.html
浏览文件 @
a7ae7e9e
<!doctype html>
<html
lang=
"zh"
><head><meta
charset=
"utf-8"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
><meta
name=
"viewport"
content=
"width=device-width,initial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no"
><link
rel=
"icon"
href=
"favicon.ico"
><title>
workFlow
</title><style>
.pre-loader
{
position
:
absolute
;
top
:
calc
(
50%
-
32px
);
left
:
calc
(
50%
-
32px
);
width
:
64px
;
height
:
64px
;
border-radius
:
50%
;
perspective
:
800px
}
.pre-loader
.inner
{
position
:
absolute
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
;
border-radius
:
50%
}
.pre-loader
.inner.one
{
left
:
0
;
top
:
0
;
-webkit-animation
:
rotate-one
1s
linear
infinite
;
animation
:
rotate-one
1s
linear
infinite
;
border-bottom
:
3px
solid
#bc9048
}
.pre-loader
.inner.two
{
right
:
0
;
top
:
0
;
-webkit-animation
:
rotate-two
1s
linear
infinite
;
animation
:
rotate-two
1s
linear
infinite
;
border-right
:
3px
solid
#74aeff
}
.pre-loader
.inner.three
{
right
:
0
;
bottom
:
0
;
-webkit-animation
:
rotate-three
1s
linear
infinite
;
animation
:
rotate-three
1s
linear
infinite
;
border-top
:
3px
solid
#caef74
}
@keyframes
rotate-one
{
0
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
0
);
transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
360deg
)}}
@keyframes
rotate-two
{
0
%
{
-webkit-transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
0
);
transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
360deg
)}}
@keyframes
rotate-three
{
0
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
0
);
transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
360deg
)}}
</style><link
href=
"https://lib.baomitu.com/element-ui/2.13.2/theme-chalk/index.css"
rel=
"stylesheet"
><link
href=
"https://lib.baomitu.com/monaco-editor/0.19.3/min/vs/editor/editor.main.css"
rel=
"stylesheet"
><script
src=
"https://lib.baomitu.com/vue/2.6.11/vue.min.js"
></script><script
src=
"https://lib.baomitu.com/vue-router/3.1.3/vue-router.min.js"
></script><script
src=
"https://lib.baomitu.com/element-ui/2.13.2/index.js"
></script><link
href=
"css/chunk-02a5a3a9.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-18e0ea77.04c9f0cf.css"
rel=
"prefetch"
><link
href=
"css/chunk-29fd0152.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-3006e7c0.263a45f1.css"
rel=
"prefetch"
><link
href=
"css/chunk-30179e6c.f89cccc5.css"
rel=
"prefetch"
><link
href=
"css/chunk-525fc2d8.84a55126.css"
rel=
"prefetch"
><link
href=
"css/chunk-5a68d65e.265b8789.css"
rel=
"prefetch"
><link
href=
"css/chunk-5b2534c0.404c0fca.css"
rel=
"prefetch"
><link
href=
"css/chunk-6aa30806.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-7c52297c.61b80532.css"
rel=
"prefetch"
><link
href=
"css/chunk-d57021c4.e910a08a.css"
rel=
"prefetch"
><link
href=
"css/chunk-e78c3d4c.2ab27357.css"
rel=
"prefetch"
><link
href=
"css/parser-home.49a6f01c.css"
rel=
"prefetch"
><link
href=
"js/chunk-02a5a3a9.78f2297b.js"
rel=
"prefetch"
><link
href=
"js/chunk-18e0ea77.71a934e6.js"
rel=
"prefetch"
><link
href=
"js/chunk-29fd0152.ac2e6d8a.js"
rel=
"prefetch"
><link
href=
"js/chunk-3006e7c0.f130947b.js"
rel=
"prefetch"
><link
href=
"js/chunk-30179e6c.485a62e2.js"
rel=
"prefetch"
><link
href=
"js/chunk-525fc2d8.4b415298.js"
rel=
"prefetch"
><link
href=
"js/chunk-5a68d65e.33db689d.js"
rel=
"prefetch"
><link
href=
"js/chunk-5b2534c0.a0d64759.js"
rel=
"prefetch"
><link
href=
"js/chunk-6aa30806.b84291da.js"
rel=
"prefetch"
><link
href=
"js/chunk-7c52297c.c0a80b51.js"
rel=
"prefetch"
><link
href=
"js/chunk-d57021c4.30f0b978.js"
rel=
"prefetch"
><link
href=
"js/chunk-e78c3d4c.d6819a29.js"
rel=
"prefetch"
><link
href=
"js/parser-home.b9b583f2.js"
rel=
"prefetch"
><link
href=
"css/index.4307d532.css"
rel=
"preload"
as=
"style"
><link
href=
"js/chunk-vendors.0fa4ad9a.js"
rel=
"preload"
as=
"script"
><link
href=
"js/index.ed799595.js"
rel=
"preload"
as=
"script"
><link
href=
"css/index.4307d532.css"
rel=
"stylesheet"
></head><body><noscript><strong>
抱歉,javascript被禁用,请开启后重试。
</strong></noscript><div
id=
"app"
></div><div
class=
"pre-loader"
id=
"pre-loader"
><div
class=
"inner one"
></div><div
class=
"inner two"
></div><div
class=
"inner three"
></div></div><script
src=
"js/chunk-vendors.0fa4ad9a.js"
></script><script
src=
"js/index.ed799595.js"
></script></body></html>
<!doctype html>
<html
lang=
"zh"
><head><meta
charset=
"utf-8"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
><meta
name=
"viewport"
content=
"width=device-width,initial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no"
><link
rel=
"icon"
href=
"favicon.ico"
><title>
workFlow
</title><style>
.pre-loader
{
position
:
absolute
;
top
:
calc
(
50%
-
32px
);
left
:
calc
(
50%
-
32px
);
width
:
64px
;
height
:
64px
;
border-radius
:
50%
;
perspective
:
800px
}
.pre-loader
.inner
{
position
:
absolute
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
;
border-radius
:
50%
}
.pre-loader
.inner.one
{
left
:
0
;
top
:
0
;
-webkit-animation
:
rotate-one
1s
linear
infinite
;
animation
:
rotate-one
1s
linear
infinite
;
border-bottom
:
3px
solid
#bc9048
}
.pre-loader
.inner.two
{
right
:
0
;
top
:
0
;
-webkit-animation
:
rotate-two
1s
linear
infinite
;
animation
:
rotate-two
1s
linear
infinite
;
border-right
:
3px
solid
#74aeff
}
.pre-loader
.inner.three
{
right
:
0
;
bottom
:
0
;
-webkit-animation
:
rotate-three
1s
linear
infinite
;
animation
:
rotate-three
1s
linear
infinite
;
border-top
:
3px
solid
#caef74
}
@keyframes
rotate-one
{
0
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
0
);
transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
35deg
)
rotateY
(
-45deg
)
rotateZ
(
360deg
)}}
@keyframes
rotate-two
{
0
%
{
-webkit-transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
0
);
transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
50deg
)
rotateY
(
10deg
)
rotateZ
(
360deg
)}}
@keyframes
rotate-three
{
0
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
0
);
transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
0
)}
100
%
{
-webkit-transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
360deg
);
transform
:
rotateX
(
35deg
)
rotateY
(
55deg
)
rotateZ
(
360deg
)}}
</style><link
href=
"https://lib.baomitu.com/element-ui/2.13.2/theme-chalk/index.css"
rel=
"stylesheet"
><link
href=
"https://lib.baomitu.com/monaco-editor/0.19.3/min/vs/editor/editor.main.css"
rel=
"stylesheet"
><script
src=
"https://lib.baomitu.com/vue/2.6.11/vue.min.js"
></script><script
src=
"https://lib.baomitu.com/vue-router/3.1.3/vue-router.min.js"
></script><script
src=
"https://lib.baomitu.com/element-ui/2.13.2/index.js"
></script><link
href=
"css/chunk-02a5a3a9.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-18e0ea77.04c9f0cf.css"
rel=
"prefetch"
><link
href=
"css/chunk-29fd0152.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-3006e7c0.263a45f1.css"
rel=
"prefetch"
><link
href=
"css/chunk-30179e6c.f89cccc5.css"
rel=
"prefetch"
><link
href=
"css/chunk-525fc2d8.84a55126.css"
rel=
"prefetch"
><link
href=
"css/chunk-5a68d65e.265b8789.css"
rel=
"prefetch"
><link
href=
"css/chunk-5b2534c0.404c0fca.css"
rel=
"prefetch"
><link
href=
"css/chunk-6aa30806.5ca0b091.css"
rel=
"prefetch"
><link
href=
"css/chunk-7c52297c.61b80532.css"
rel=
"prefetch"
><link
href=
"css/chunk-d57021c4.e910a08a.css"
rel=
"prefetch"
><link
href=
"css/chunk-e78c3d4c.2ab27357.css"
rel=
"prefetch"
><link
href=
"css/parser-home.d4f9cba5.css"
rel=
"prefetch"
><link
href=
"js/chunk-02a5a3a9.78f2297b.js"
rel=
"prefetch"
><link
href=
"js/chunk-18e0ea77.71a934e6.js"
rel=
"prefetch"
><link
href=
"js/chunk-29fd0152.ac2e6d8a.js"
rel=
"prefetch"
><link
href=
"js/chunk-3006e7c0.f130947b.js"
rel=
"prefetch"
><link
href=
"js/chunk-30179e6c.485a62e2.js"
rel=
"prefetch"
><link
href=
"js/chunk-525fc2d8.4b415298.js"
rel=
"prefetch"
><link
href=
"js/chunk-5a68d65e.33db689d.js"
rel=
"prefetch"
><link
href=
"js/chunk-5b2534c0.a0d64759.js"
rel=
"prefetch"
><link
href=
"js/chunk-6aa30806.fc92c339.js"
rel=
"prefetch"
><link
href=
"js/chunk-7c52297c.c0a80b51.js"
rel=
"prefetch"
><link
href=
"js/chunk-d57021c4.30f0b978.js"
rel=
"prefetch"
><link
href=
"js/chunk-e78c3d4c.09ead955.js"
rel=
"prefetch"
><link
href=
"js/parser-home.a758343f.js"
rel=
"prefetch"
><link
href=
"css/index.4307d532.css"
rel=
"preload"
as=
"style"
><link
href=
"js/chunk-vendors.0fa4ad9a.js"
rel=
"preload"
as=
"script"
><link
href=
"js/index.5a4866b2.js"
rel=
"preload"
as=
"script"
><link
href=
"css/index.4307d532.css"
rel=
"stylesheet"
></head><body><noscript><strong>
抱歉,javascript被禁用,请开启后重试。
</strong></noscript><div
id=
"app"
></div><div
class=
"pre-loader"
id=
"pre-loader"
><div
class=
"inner one"
></div><div
class=
"inner two"
></div><div
class=
"inner three"
></div></div><script
src=
"js/chunk-vendors.0fa4ad9a.js"
></script><script
src=
"js/index.5a4866b2.js"
></script></body></html>
\ No newline at end of file
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论