代码拉取完成,页面将自动刷新
内置代码生成器(orm jpa) 快速后台 可扩展,自定义权限策略,Token管理认证
DEMO
git 克隆项目
配置本地maven
由于项目使用了queryDsl 需要先进行编译Q类
导入data文件夹下sql
修改相关数据库配置 环境 redis
启动
模块 | 版本 | 备注 |
---|---|---|
vue-element-admin | 最新版 | |
element-ui | 2.15.6 | |
spring boot | 2.3.7.RELEASE | |
spring-security | 2.3.7.RELEASE | |
spring-data-jpa | 2.3.7.RELEASE | |
spring-data-redis | 2.3.7.RELEASE | |
undertow-starter | 2.3.7.RELEASE | |
vue | 2.x | |
queryDsl | 4.4.0 | |
jwt | 0.9.1 | 扩展token信息 ip |
// 验证当前请求是否具有权限访问
//默认实现 cn.ulyer.core.secure.authority.UrlAuthorityService
public interface AuthorityService {
boolean hasAuthority(HttpServletRequest request, Authentication authentication) throws Exception;
}
//权限处理策略接口
public interface AuthorityHandlerStrategy {
default boolean handler(HttpServletRequest request, Authentication authentication, GrantedAuthority grantedAuthority) throws Exception {
return false;
}
String strategy();
}
//tokenService base-implements AbstractTokenService
public interface TokenService {
Object store(Object token, Authentication authentication);
Object generatorToken(HttpServletRequest request);
Object readToken(HttpServletRequest request);
Authentication authenticate(Object token) throws AuthenticationException;
void remove(String token);
}
@Import(LogAspect.class)
public class AppStater {
public static void main(String[] args) {
SpringApplication.run(AppStater.class, args);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。