摘要:
查看官方文档shiro的10分钟快速搭建 http://shiro.apache.org/10-minute-tutorial.html github查看shiro源码 https://github.com/apache/shiro.git 导入依赖、新建shiro.ini和log4j.proper 阅读全文
摘要:
controller中登录请求配置 @RequestMapping("/toLogin") public String toLogin(){ return "views/login"; } .新建配置类SecurityConfig,配置用户登录,实现不同用户不同访问权限 //AOP实现,不更改其他代 阅读全文
摘要:
Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to dete 阅读全文
摘要:
检查mapping.xml中mapper类的包名是否正确,查询语句返回参数设置是否正确 检查mapper中的方法名与mapping中的是否一致 检查application配置文件中mybatis的配置,classpath后没有/ mybatis.mapper-locations=classpath: 阅读全文