Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
cf1387fd
Commit
cf1387fd
authored
Jul 29, 2021
by
terrfly
Browse files
变更文件site
parent
adba7f7e
Changes
284
Hide whitespace changes
Inline
Side-by-side
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/payconfig/PayInterfaceDefineController.java
View file @
cf1387fd
...
@@ -38,7 +38,7 @@ import java.util.List;
...
@@ -38,7 +38,7 @@ import java.util.List;
* 支付接口定义管理类
* 支付接口定义管理类
*
*
* @author zhuxiao
* @author zhuxiao
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021-04-27 15:50
* @date 2021-04-27 15:50
*/
*/
@RestController
@RestController
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/payconfig/PayWayController.java
View file @
cf1387fd
...
@@ -38,7 +38,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -38,7 +38,7 @@ import org.springframework.web.bind.annotation.*;
* 支付方式管理类
* 支付方式管理类
*
*
* @author zhuxiao
* @author zhuxiao
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021-04-27 15:50
* @date 2021-04-27 15:50
*/
*/
@RestController
@RestController
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/sysuser/SysEntController.java
View file @
cf1387fd
...
@@ -38,7 +38,7 @@ import java.util.List;
...
@@ -38,7 +38,7 @@ import java.util.List;
* 权限 菜单 管理
* 权限 菜单 管理
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:13
* @date 2021/6/8 17:13
*/
*/
@RestController
@RestController
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/sysuser/SysLogController.java
View file @
cf1387fd
...
@@ -39,7 +39,7 @@ import java.util.List;
...
@@ -39,7 +39,7 @@ import java.util.List;
* 系统日志记录类
* 系统日志记录类
*
*
* @author pangxiaoyu
* @author pangxiaoyu
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021-06-07 07:15
* @date 2021-06-07 07:15
*/
*/
@RestController
@RestController
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/sysuser/SysRoleController.java
View file @
cf1387fd
...
@@ -48,7 +48,7 @@ import java.util.List;
...
@@ -48,7 +48,7 @@ import java.util.List;
* 角色管理
* 角色管理
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:13
* @date 2021/6/8 17:13
*/
*/
@RestController
@RestController
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/sysuser/SysRoleEntRelaController.java
View file @
cf1387fd
...
@@ -33,7 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -33,7 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
* 角色 权限管理
* 角色 权限管理
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:13
* @date 2021/6/8 17:13
*/
*/
@RestController
@RestController
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/sysuser/SysUserController.java
View file @
cf1387fd
...
@@ -41,7 +41,7 @@ import java.util.Arrays;
...
@@ -41,7 +41,7 @@ import java.util.Arrays;
* 操作员列表
* 操作员列表
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:13
* @date 2021/6/8 17:13
*/
*/
@RestController
@RestController
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/sysuser/SysUserRoleRelaController.java
View file @
cf1387fd
...
@@ -39,7 +39,7 @@ import java.util.List;
...
@@ -39,7 +39,7 @@ import java.util.List;
* 用户角色关联关系
* 用户角色关联关系
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:13
* @date 2021/6/8 17:13
*/
*/
@RestController
@RestController
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/mq/ResetAppConfigMQReceiver.java
View file @
cf1387fd
...
@@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
...
@@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
* 接收MQ消息
* 接收MQ消息
* 业务: 更新系统配置参数
* 业务: 更新系统配置参数
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/7/27 9:23
* @date 2021/7/27 9:23
*/
*/
@Slf4j
@Slf4j
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/secruity/JeeAuthenticationEntryPoint.java
View file @
cf1387fd
...
@@ -28,7 +28,7 @@ import java.io.Serializable;
...
@@ -28,7 +28,7 @@ import java.io.Serializable;
* 用户身份认证失败处理类
* 用户身份认证失败处理类
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:11
* @date 2021/6/8 17:11
*/
*/
@Component
@Component
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/secruity/JeeUserDetailsServiceImpl.java
View file @
cf1387fd
...
@@ -33,7 +33,7 @@ import org.springframework.stereotype.Service;
...
@@ -33,7 +33,7 @@ import org.springframework.stereotype.Service;
* 实现UserDetailsService 接口
* 实现UserDetailsService 接口
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:13
* @date 2021/6/8 17:13
*/
*/
@Service
@Service
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/secruity/WebSecurityConfig.java
View file @
cf1387fd
...
@@ -40,7 +40,7 @@ import org.springframework.web.filter.CorsFilter;
...
@@ -40,7 +40,7 @@ import org.springframework.web.filter.CorsFilter;
* Spring Security 配置项
* Spring Security 配置项
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:11
* @date 2021/6/8 17:11
*/
*/
@Configuration
@Configuration
...
@@ -99,25 +99,25 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter{
...
@@ -99,25 +99,25 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter{
.
csrf
().
disable
()
.
csrf
().
disable
()
.
cors
().
and
()
.
cors
().
and
()
// 认证失败处理方式
// 认证失败处理方式
.
exceptionHandling
().
authenticationEntryPoint
(
unauthorizedHandler
).
and
()
.
exceptionHandling
().
authenticationEntryPoint
(
unauthorizedHandler
).
and
()
// 基于token,所以不需要session
// 基于token,所以不需要session
.
sessionManagement
().
sessionCreationPolicy
(
SessionCreationPolicy
.
STATELESS
).
and
()
.
sessionManagement
().
sessionCreationPolicy
(
SessionCreationPolicy
.
STATELESS
).
and
()
.
authorizeRequests
()
.
authorizeRequests
()
// 除上面外的所有请求全部需要鉴权认证
// 除上面外的所有请求全部需要鉴权认证
.
anyRequest
().
authenticated
();
.
anyRequest
().
authenticated
();
// 添加JWT filter
// 添加JWT filter
httpSecurity
.
addFilterBefore
(
new
JeeAuthenticationTokenFilter
(),
UsernamePasswordAuthenticationFilter
.
class
);
httpSecurity
.
addFilterBefore
(
new
JeeAuthenticationTokenFilter
(),
UsernamePasswordAuthenticationFilter
.
class
);
// 禁用缓存
// 禁用缓存
httpSecurity
.
headers
().
cacheControl
();
httpSecurity
.
headers
().
cacheControl
();
}
}
@Override
@Override
public
void
configure
(
WebSecurity
web
)
throws
Exception
{
public
void
configure
(
WebSecurity
web
)
throws
Exception
{
//ignore文件 : 无需进入spring security 框架
//ignore文件 : 无需进入spring security 框架
...
@@ -145,5 +145,5 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter{
...
@@ -145,5 +145,5 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter{
"/api/anon/**"
//匿名访问接口
"/api/anon/**"
//匿名访问接口
);
);
}
}
}
}
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/service/AuthService.java
View file @
cf1387fd
...
@@ -49,7 +49,7 @@ import java.util.*;
...
@@ -49,7 +49,7 @@ import java.util.*;
* 认证Service
* 认证Service
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:12
* @date 2021/6/8 17:12
*/
*/
@Slf4j
@Slf4j
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/web/ApiResBodyAdvice.java
View file @
cf1387fd
...
@@ -27,7 +27,7 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
...
@@ -27,7 +27,7 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
* 功能: 自定义springMVC返回数据格式
* 功能: 自定义springMVC返回数据格式
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:12
* @date 2021/6/8 17:12
*/
*/
@ControllerAdvice
@ControllerAdvice
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/web/ApiResInterceptor.java
View file @
cf1387fd
...
@@ -26,7 +26,7 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -26,7 +26,7 @@ import javax.servlet.http.HttpServletResponse;
* 数据响应拦截器
* 数据响应拦截器
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:12
* @date 2021/6/8 17:12
*/
*/
@Component
@Component
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/web/ApplicationContextKit.java
View file @
cf1387fd
...
@@ -26,9 +26,9 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -26,9 +26,9 @@ import javax.servlet.http.HttpServletRequest;
/*
/*
* 读取servletContext 上下文工具类
* 读取servletContext 上下文工具类
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:13
* @date 2021/6/8 17:13
*/
*/
@Service
@Service
...
...
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/web/WebmvcConfig.java
View file @
cf1387fd
...
@@ -24,7 +24,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
...
@@ -24,7 +24,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
* webmvc配置
* webmvc配置
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021/6/8 17:12
* @date 2021/6/8 17:12
*/
*/
@Configuration
@Configuration
...
...
jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/aop/MethodLogAop.java
View file @
cf1387fd
...
@@ -49,7 +49,7 @@ import java.util.concurrent.ScheduledExecutorService;
...
@@ -49,7 +49,7 @@ import java.util.concurrent.ScheduledExecutorService;
*
*
* @author terrfly
* @author terrfly
* @modify pangxiaoyu
* @modify pangxiaoyu
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021-04-27 15:50
* @date 2021-04-27 15:50
*/
*/
@Component
@Component
...
...
jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/bootstrap/InitRunner.java
View file @
cf1387fd
...
@@ -32,7 +32,7 @@ import java.util.Date;
...
@@ -32,7 +32,7 @@ import java.util.Date;
* CommandLineRunner / ApplicationRunner都可以达到要求, 只是调用参数有所不同。
* CommandLineRunner / ApplicationRunner都可以达到要求, 只是调用参数有所不同。
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021-04-27 15:50
* @date 2021-04-27 15:50
*/
*/
@Component
@Component
...
...
jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/bootstrap/JeepayMchApplication.java
View file @
cf1387fd
...
@@ -34,7 +34,7 @@ import java.util.Arrays;
...
@@ -34,7 +34,7 @@ import java.util.Arrays;
* spring-boot 主启动程序
* spring-boot 主启动程序
*
*
* @author terrfly
* @author terrfly
* @site https://www.jee
pay.vip
* @site https://www.jee
quan.com
* @date 2021-04-27 15:50
* @date 2021-04-27 15:50
*/
*/
@SpringBootApplication
@SpringBootApplication
...
...
Prev
1
2
3
4
5
6
7
8
9
10
…
15
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment