![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
实战经验
程序猿康康
这个作者很懒,什么都没留下…
展开
-
shiro的秘钥匹配,实现登录
第一种:明文匹配不加密//账户名密码不匹配 if (!entity.getPassword().equals(password)){ throw new IncorrectCredentialsException("账户密码不匹配"); } SimpleAuthenticationInfo info=new SimpleAuthenticationInfo(entity,password,getName());第二种:验证逻辑-交原创 2020-05-30 22:49:20 · 1923 阅读 · 0 评论 -
shiro认证授权
发现这个报错,检查了很多次代码发现没有问题,以为方法错了。Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-05-26 20:15:07.721 INFO 20084 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'shiro原创 2020-05-26 20:25:41 · 500 阅读 · 0 评论 -
@Data注解 与 lombok
@Data 注解的主要作用是提高代码的简洁,使用这个注解可以省去代码中大量的get()、 set()、 toString()等方法;导入依赖包lombok <!--lombok--> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version&g原创 2020-05-23 22:07:52 · 730 阅读 · 0 评论 -
微服务项目搭建—引入热部署工具Devtools
步骤一:引入spring-boot-devtools的依赖jar <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <!-- optional=true,依赖不会传递,该项目依赖devtools;之后依赖该项目的项目如果想要使用原创 2020-05-19 21:01:41 · 400 阅读 · 0 评论