author
parent
a2a4420af0
commit
d7ac534b38
|
|
@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
/**
|
/**
|
||||||
* 启动类
|
* 启动类
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import com.boot.security.server.dto.ResponseInfo;
|
||||||
/**
|
/**
|
||||||
* springmvc异常处理
|
* springmvc异常处理
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@RestControllerAdvice
|
@RestControllerAdvice
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import io.swagger.annotations.ApiOperation;
|
||||||
/**
|
/**
|
||||||
* 统一日志处理
|
* 统一日志处理
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年8月19日
|
* 2017年8月19日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import java.lang.annotation.Target;
|
||||||
/**
|
/**
|
||||||
* 日志注解
|
* 日志注解
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年8月19日
|
* 2017年8月19日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||||
/**
|
/**
|
||||||
* 线程池配置、启用异步
|
* 线程池配置、启用异步
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年8月19日
|
* 2017年8月19日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import java.sql.SQLException;
|
||||||
* Druid数据源配置
|
* Druid数据源配置
|
||||||
* 2018.05.24改为配置的方式,配置前缀spring.datasource.druid,看下application.yml
|
* 2018.05.24改为配置的方式,配置前缀spring.datasource.druid,看下application.yml
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|
@ -56,7 +56,7 @@ public class DruidConfig {
|
||||||
/**
|
/**
|
||||||
* 数据源配置
|
* 数据源配置
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ConfigurationProperties(prefix = "spring.datasource")
|
@ConfigurationProperties(prefix = "spring.datasource")
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import org.springframework.data.redis.serializer.GenericToStringSerializer;
|
||||||
* 集群下启动session共享,需打开@EnableRedisHttpSession<br>
|
* 集群下启动session共享,需打开@EnableRedisHttpSession<br>
|
||||||
* 单机下不需要
|
* 单机下不需要
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年8月10日
|
* 2017年8月10日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import com.boot.security.server.filter.TokenFilter;
|
||||||
/**
|
/**
|
||||||
* spring security配置
|
* spring security配置
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年10月16日
|
* 2017年10月16日
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import com.boot.security.server.utils.ResponseUtil;
|
||||||
/**
|
/**
|
||||||
* spring security处理器
|
* spring security处理器
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年10月16日
|
* 2017年10月16日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||||
/**
|
/**
|
||||||
* swagger文档
|
* swagger文档
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年7月21日
|
* 2017年7月21日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import io.swagger.annotations.ApiOperation;
|
||||||
/**
|
/**
|
||||||
* 代码生成接口
|
* 代码生成接口
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Api(tags = "代码生成")
|
@Api(tags = "代码生成")
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ import io.swagger.annotations.ApiOperation;
|
||||||
/**
|
/**
|
||||||
* 权限相关接口
|
* 权限相关接口
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Api(tags = "权限")
|
@Api(tags = "权限")
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ import io.swagger.annotations.ApiOperation;
|
||||||
/**
|
/**
|
||||||
* 角色相关接口
|
* 角色相关接口
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Api(tags = "角色")
|
@Api(tags = "角色")
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ import io.swagger.annotations.ApiOperation;
|
||||||
/**
|
/**
|
||||||
* 用户相关接口
|
* 用户相关接口
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Api(tags = "用户")
|
@Api(tags = "用户")
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import java.io.Serializable;
|
||||||
/**
|
/**
|
||||||
* Restful方式登陆token
|
* Restful方式登陆token
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年8月4日
|
* 2017年8月4日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import com.boot.security.server.service.TokenService;
|
||||||
/**
|
/**
|
||||||
* Token过滤器
|
* Token过滤器
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年10月14日
|
* 2017年10月14日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import com.google.common.collect.Maps;
|
||||||
/**
|
/**
|
||||||
* 分页、查询参数解析
|
* 分页、查询参数解析
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class PageTableArgumentResolver implements HandlerMethodArgumentResolver {
|
public class PageTableArgumentResolver implements HandlerMethodArgumentResolver {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* 分页查询处理器
|
* 分页查询处理器
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import java.util.Map;
|
||||||
/**
|
/**
|
||||||
* 分页查询参数
|
* 分页查询参数
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class PageTableRequest implements Serializable {
|
public class PageTableRequest implements Serializable {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* 分页查询返回
|
* 分页查询返回
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class PageTableResponse implements Serializable {
|
public class PageTableResponse implements Serializable {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import com.boot.security.server.model.SysLogs;
|
||||||
/**
|
/**
|
||||||
* 日志service
|
* 日志service
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年8月19日
|
* 2017年8月19日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import com.boot.security.server.dto.Token;
|
||||||
* 如要换成数据库存储,将TokenServiceImpl类上的注解@Primary挪到com.boot.security.server.service.impl.TokenServiceDbImpl
|
* 如要换成数据库存储,将TokenServiceImpl类上的注解@Primary挪到com.boot.security.server.service.impl.TokenServiceDbImpl
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
* 2017年10月14日
|
* 2017年10月14日
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ import io.jsonwebtoken.SignatureAlgorithm;
|
||||||
/**
|
/**
|
||||||
* token存到数据库的实现类
|
* token存到数据库的实现类
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import com.boot.security.server.service.TokenService;
|
||||||
* token存到redis的实现类<br>
|
* token存到redis的实现类<br>
|
||||||
* 普通token,uuid
|
* 普通token,uuid
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ import io.jsonwebtoken.SignatureAlgorithm;
|
||||||
* token存到redis的实现类<br>
|
* token存到redis的实现类<br>
|
||||||
* jwt实现的token
|
* jwt实现的token
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Primary
|
@Primary
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import com.boot.security.server.service.UserService;
|
||||||
* <p>
|
* <p>
|
||||||
* 密码校验请看文档(02 框架及配置),第三章第4节
|
* 密码校验请看文档(02 框架及配置),第三章第4节
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class UserDetailsServiceImpl implements UserDetailsService {
|
public class UserDetailsServiceImpl implements UserDetailsService {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import org.apache.poi.ss.usermodel.Workbook;
|
||||||
/**
|
/**
|
||||||
* excel工具类
|
* excel工具类
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExcelUtil {
|
public class ExcelUtil {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||||
/**
|
/**
|
||||||
* 文件工具类
|
* 文件工具类
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class FileUtil {
|
public class FileUtil {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
|
||||||
/**
|
/**
|
||||||
* spring获取bean工具类
|
* spring获取bean工具类
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import com.google.common.collect.Lists;
|
||||||
/**
|
/**
|
||||||
* 字符串转化工具类
|
* 字符串转化工具类
|
||||||
*
|
*
|
||||||
* @author 小威老师
|
* @author 小威老师 xiaoweijiagou@163.com
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class StrUtil {
|
public class StrUtil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue