Commit cf1387fd authored by terrfly's avatar terrfly
Browse files

变更文件site

parent adba7f7e
......@@ -38,7 +38,7 @@ import java.util.List;
* 支付接口定义管理类
*
* @author zhuxiao
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021-04-27 15:50
*/
@RestController
......
......@@ -38,7 +38,7 @@ import org.springframework.web.bind.annotation.*;
* 支付方式管理类
*
* @author zhuxiao
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021-04-27 15:50
*/
@RestController
......
......@@ -38,7 +38,7 @@ import java.util.List;
* 权限 菜单 管理
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:13
*/
@RestController
......
......@@ -39,7 +39,7 @@ import java.util.List;
* 系统日志记录类
*
* @author pangxiaoyu
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021-06-07 07:15
*/
@RestController
......
......@@ -48,7 +48,7 @@ import java.util.List;
* 角色管理
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:13
*/
@RestController
......
......@@ -33,7 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
* 角色 权限管理
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:13
*/
@RestController
......
......@@ -41,7 +41,7 @@ import java.util.Arrays;
* 操作员列表
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:13
*/
@RestController
......
......@@ -39,7 +39,7 @@ import java.util.List;
* 用户角色关联关系
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:13
*/
@RestController
......
......@@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
* 接收MQ消息
* 业务: 更新系统配置参数
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/7/27 9:23
*/
@Slf4j
......
......@@ -28,7 +28,7 @@ import java.io.Serializable;
* 用户身份认证失败处理类
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:11
*/
@Component
......
......@@ -33,7 +33,7 @@ import org.springframework.stereotype.Service;
* 实现UserDetailsService 接口
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:13
*/
@Service
......
......@@ -40,7 +40,7 @@ import org.springframework.web.filter.CorsFilter;
* Spring Security 配置项
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:11
*/
@Configuration
......@@ -99,25 +99,25 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter{
.csrf().disable()
.cors().and()
// 认证失败处理方式
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()
// 基于token,所以不需要session
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
.authorizeRequests()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated();
// 添加JWT filter
httpSecurity.addFilterBefore(new JeeAuthenticationTokenFilter(), UsernamePasswordAuthenticationFilter.class);
// 禁用缓存
httpSecurity.headers().cacheControl();
}
@Override
public void configure(WebSecurity web) throws Exception {
//ignore文件 : 无需进入spring security 框架
......@@ -145,5 +145,5 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter{
"/api/anon/**" //匿名访问接口
);
}
}
......@@ -49,7 +49,7 @@ import java.util.*;
* 认证Service
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:12
*/
@Slf4j
......
......@@ -27,7 +27,7 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
* 功能: 自定义springMVC返回数据格式
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:12
*/
@ControllerAdvice
......
......@@ -26,7 +26,7 @@ import javax.servlet.http.HttpServletResponse;
* 数据响应拦截器
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:12
*/
@Component
......
......@@ -26,9 +26,9 @@ import javax.servlet.http.HttpServletRequest;
/*
* 读取servletContext 上下文工具类
*
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:13
*/
@Service
......
......@@ -24,7 +24,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
* webmvc配置
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021/6/8 17:12
*/
@Configuration
......
......@@ -49,7 +49,7 @@ import java.util.concurrent.ScheduledExecutorService;
*
* @author terrfly
* @modify pangxiaoyu
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021-04-27 15:50
*/
@Component
......
......@@ -32,7 +32,7 @@ import java.util.Date;
* CommandLineRunner / ApplicationRunner都可以达到要求, 只是调用参数有所不同。
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021-04-27 15:50
*/
@Component
......
......@@ -34,7 +34,7 @@ import java.util.Arrays;
* spring-boot 主启动程序
*
* @author terrfly
* @site https://www.jeepay.vip
* @site https://www.jeequan.com
* @date 2021-04-27 15:50
*/
@SpringBootApplication
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment