详细的微服务开发基础框架

上传者: bala5569 | 上传时间: 2022-05-31 09:08:56 | 文件大小: 90KB | 文件类型: ZIP
现有如下需求: 基于用户-角色-权限控制 权限粒度控制到具体的请求URL 当用户的角色或者权限变动后,已获授权的用户需要重新登录授权 本文围绕上面三个基本需求进行实现。 二、工程说明 设计的框架已经中间件有: Nacos 1.3 Spring Cloud Hoxton.SR8 JWT nimbus-jose-jwt Spring Cloud Gateway Spring security mybatis-plus Redis mysql 设计的主要工程有: gateway:网关,动态权限判断 auth:认证中心 upms:用户权限管理服务

文件下载

资源详情

[{"title":"( 83 个子文件 90KB ) 详细的微服务开发基础框架\n\n","children":[{"title":"Micro-Service-Skeleton-master","children":[{"title":"mss-upms","children":[{"title":"pom.xml <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"mvnw <span style='color:#111;'> 6.32KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"resources","children":[{"title":"generatorConfig.xml <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"upms","children":[{"title":"GeneratorTests.java <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"SysRoleMapper.xml <span style='color:#111;'> 854B </span>","children":null,"spread":false},{"title":"SysUserMapper.xml <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"SysMenuMapper.xml <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"bootstrap.yml <span style='color:#111;'> 167B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"upms","children":[{"title":"config","children":[{"title":"Swagger2Config.java <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"UpmsApplication.java <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"SysUserMapper.java <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"SysRoleMapper.java <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"SysMenuMapper.java <span style='color:#111;'> 448B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"UserController.java <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"PermissionController.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"TestController.java <span style='color:#111;'> 567B </span>","children":null,"spread":false},{"title":"RoleController.java <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"RoleService.java <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"PermissionService.java <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"UserService.java <span style='color:#111;'> 295B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserServiceImpl.java <span style='color:#111;'> 930B </span>","children":null,"spread":false},{"title":"RoleServiceImpl.java <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"PermissionServiceImpl.java <span style='color:#111;'> 756B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"entity","children":[{"title":"SysUser.java <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"SysRole.java <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"SysMenu.java <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"mvnw.cmd <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"package.bat <span style='color:#111;'> 56B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 3.24KB </span>","children":null,"spread":false},{"title":"mss-common","children":[{"title":"pom.xml <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"common","children":[{"title":"util","children":[{"title":"StatusCode.java <span style='color:#111;'> 296B </span>","children":null,"spread":false},{"title":"Md5Utils.java <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"vo","children":[{"title":"Authority.java <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"RoleVo.java <span style='color:#111;'> 438B </span>","children":null,"spread":false},{"title":"UserVo.java <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"Result.java <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"MenuVo.java <span style='color:#111;'> 461B </span>","children":null,"spread":false}],"spread":true},{"title":"jwt","children":[{"title":"JWTConstants.java <span style='color:#111;'> 352B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 268B </span>","children":null,"spread":false}],"spread":true},{"title":"mss-oauth","children":[{"title":"pom.xml <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"auth","children":[{"title":"AuthCenterApplicationTests.java <span style='color:#111;'> 796B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"logback.xml <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false},{"title":"application.yml <span style='color:#111;'> 649B </span>","children":null,"spread":false},{"title":"bootstrap.yml <span style='color:#111;'> 133B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"auth","children":[{"title":"config","children":[{"title":"WebSecurityConfig.java <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false}],"spread":false},{"title":"AuthCenterApplication.java <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"controller","children":[{"title":"UserController.java <span style='color:#111;'> 600B </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UpmsService.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserDetailsServiceImpl.java <span style='color:#111;'> 2.91KB </span>","children":null,"spread":false},{"title":"UpmsServiceFallbackFactory.java <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"entity","children":[{"title":"AuthUser.java <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false}],"spread":false},{"title":"jwt","children":[{"title":"handler","children":[{"title":"JWTAuthenticationFailureHandler.java <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"JWTAuthenticationSuccessHandler.java <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"endpoint","children":[{"title":"JWTAuthorizationFilter.java <span style='color:#111;'> 4.40KB </span>","children":null,"spread":false},{"title":"JWTAuthenticationEntryPoint.java <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"mobile","children":[{"title":"MobileAuthenticationProcessingFilter.java <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"MobileAuthenticationProvider.java <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"MobileAuthenticationToken.java <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false}],"spread":false},{"title":"token","children":[{"title":"JwtAuthenticationToken.java <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false}],"spread":false},{"title":"password","children":[{"title":"UsernameAuthenticationProvider.java <span style='color:#111;'> 6.37KB </span>","children":null,"spread":false},{"title":"UsernameAuthenticationFilter.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"node-1.bat <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"package.bat <span style='color:#111;'> 56B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 885B </span>","children":null,"spread":false},{"title":"other","children":[{"title":"db","children":[{"title":"zuul-auth.sql <span style='color:#111;'> 14.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"mss-gateway","children":[{"title":"pom.xml <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"gateway","children":[{"title":"GatewayApplicationTests.java <span style='color:#111;'> 351B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 826B </span>","children":null,"spread":false},{"title":"bootstrap.yml <span style='color:#111;'> 164B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"gateway","children":[{"title":"config","children":[{"title":"ExclusionUrl.java <span style='color:#111;'> 525B </span>","children":null,"spread":false}],"spread":false},{"title":"filter","children":[{"title":"AuthFilter.java <span style='color:#111;'> 5.84KB </span>","children":null,"spread":false}],"spread":false},{"title":"GatewayApplication.java <span style='color:#111;'> 423B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"node-1.bat <span style='color:#111;'> 68B </span>","children":null,"spread":false}],"spread":true},{"title":"mss-monitor","children":[{"title":"pom.xml <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"monitor","children":[{"title":"MonitorApplicationTests.java <span style='color:#111;'> 351B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 101B </span>","children":null,"spread":false},{"title":"bootstrap.yml <span style='color:#111;'> 151B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"microservice","children":[{"title":"skeleton","children":[{"title":"monitor","children":[{"title":"MonitorApplication.java <span style='color:#111;'> 423B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明