spring-boot-plus shiro

微生新霁
2023-12-01

spring-boot-plus 

geekidea 

spring-boot-plus: Spring-Boot-Plus是易于使用,快速,高效,功能丰富,开源的spring boot 脚手架.

配置

https://springboot.plus/config/#spring-boot

https://springboot.plus/guide/rbac.html#shiro%E6%9D%83%E9%99%90%E9%85%8D%E7%BD%AE

https://springboot.plus/guide/shiro-jwt.html#shiro

#SpringBoot官方完整配置

Common Application properties

SHIRO

https://www.iteye.com/blog/jinnianshilongnian-2049092

apache shiro框架@RequiresPermissions源码分析_谢文峰的博客-CSDN博客

RBAC

https://springboot.plus/guide/rbac.html#shiro%E6%9D%83%E9%99%90%E9%85%8D%E7%BD%AE

https://www.iteye.com/blog/jinnianshilongnian-2018936

SpringBoot集成JWT实现token验证 - 简书

JWT

https://github.com/LiHaodong888/SpringBootLearn

easyui.jsp taglibs.jsp weui.jsp validation.jsp

@SpringBootApplication
@MapperScan("cn.dao")
@EnableTransactionManagement
public class App extends SpringBootServletInitializer{
    
    public App(){
        super();
        setRegisterErrorPageFilter(false);
    }
    
    public static void main( String[] args )
    {
        SpringApplication.run(App.class, args);
    }
    
    @Bean
    RestTemplate restTemplate() {
        RestTemplate restTemplate = new RestTemplate();
        //解决中文编码问题,index为1可见构造器源码
        restTemplate.getMessageConverters().set(1, new StringHttpMessageConverter(StandardCharsets.UTF_8));
        return restTemplate;
    }
    
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(App.class);
    }
    
    
}

 类似资料: