- 博客(5)
- 收藏
- 关注

原创 Springboot-SpringSecurity结合mybatis-进行数据库验证
Springboot-SpringSecurity结合mybatis-进行数据库验证需要的jar包POJO类Security主要配置类Service所使用的表效果展示其中特别要注意的点需要的jar包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf&
2020-08-13 16:18:21
561
2
原创 No serializer found for class edu.hut.lh.POJO.Dept and no properties discovered to create BeanSerial
No serializer found for class edu.hut.lh.POJO.Dept and no properties discovered to create BeanSerializer这是由于使用了RestController注解将查询的POJO类装转化为JSON字符串时报错。解决方法:要么将POJO类的属性设为public,或者提供属性的public的get()方法。...
2020-08-15 19:31:16
407
原创 errorCode 1045,state 28000: Access denied for user ‘mysql‘@‘localhost‘ (using password: YES)
errorCode 1045,state 28000: Access denied for user ‘mysql’@‘localhost’ (using password: YES)springboot连接mysql的时候出现登录失败的错误errorCode 1045,state 28000 java sql.SQLException:Access denied for user 'root'@'localhost'原因是yml配置文件中密码没有使用引号。第一:在密码上加上单引号spring:
2020-08-15 19:24:24
1303
原创 拦截器(Interceptor)和过滤器(Filter)的区别,以及各个方法和controller的执行顺序
拦截器(Interceptor)和过滤器(Filter)的区别,以及各个方法和controller的执行顺序拦截器过滤器区别拦截器和过滤器各个方法调用的时机拦截器拦截器(Interceptor),是面向切面编程(AOP,Aspect Oriented Program)的。它可以在处理器之前做一些操作,或者在处理完成之后进行操纵,甚至是在渲染视图后进行操作。动态代理就是拦截器的简单实现,在调用方法前打印出字符串(或者做其它业务逻辑的操作),也可以在调用方法后打印出字符串,甚至在抛出异常的时候做业务逻辑的操
2020-08-14 20:15:43
1443
1
原创 springboot定义page工具类实现上下翻页,进行分页,使用thymeleaf进行页面渲染
springboot-mybatis-定义page工具类实现上下翻页,进行分页,使用thymeleaf进行页面渲染需要的jar包PageInfo工具类控制层前端代码效果展示需要的jar包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf<
2020-08-14 10:39:45
1222
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人