spring boot
国家一级保护程序员
这个作者很懒,什么都没留下…
展开
-
spring boot项目如何设置全局跨域配置
跨域配置原创 2022-07-07 14:51:57 · 916 阅读 · 1 评论 -
spring boot整合第三方微信开发工具 weixin-java-miniapp 实现小程序微信登录
有时候项目需要用到微信登录或获取用户的手机号码,weixin-java-miniapp是一个好用的第三方工具,不用我们自己写httpcline调用。导入jar包<dependency> <groupId>com.github.binarywang</groupId> <artifactId>weixin-java-miniapp</artifactId> <versi原创 2022-02-19 16:43:13 · 24801 阅读 · 1 评论 -
springboot项目如何整合mybatis-plus与pagehelper分页插件的使用
加入依赖<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.13</version> <exclusions>原创 2022-01-15 10:24:06 · 265 阅读 · 0 评论 -
Spring boot项目整合mybatis-plus如何直接调用delete方法实现数据库的逻辑删除
通过因一些业务需求,有一些数据实现删除操作并不是直接使用delete删除,而是在表中设置一个字段比如“disabled”(是否删除:1 否,0 是),来标识这条数据是否删除,则项目中的查询根据条件进行筛选。那么既然不能直接使用delete方法,就只能通过这条记录的id把它的状态改为0,再执行update方法,但是这样感觉会有点繁琐,既然Mybatis-plus已经带了delete方法,能不能直接使用,达到不是物理删除,而是逻辑删除,直接把"disabled"字段的值设为1呢?下面说一下如何实现:引入My原创 2022-01-11 11:22:04 · 1043 阅读 · 0 评论 -
Spring boot如何在Controller层的各个方法设置切面了解调用的相关信息
@Aspect@Componentpublic class AccessLogAspect { private Logger logger = LoggerFactory.getLogger(AccessLogAspect.class); @Pointcut("execution(* com.xdaozwg.preformance.controller.*.*.*(..))") public void controllerAspect() { } @Arou原创 2020-11-23 10:29:00 · 653 阅读 · 0 评论 -
spring boot集成shiro,配置ShiroConfig类相关继承org.apache.shiro.spring.web的类@Autowired无法注入问题
这个问题真的折磨我很久,在网上找了很多方法都解决不了幸好看见了这一篇https://www.cnblogs.com/matd/p/11128179.html原创 2020-09-29 16:24:27 · 955 阅读 · 0 评论 -
Spring boot项目关于service层使用@Autowired无法注入问题
报错提示如下Description:Field messagePushListener in com.xxxx.xxxx.Controller.xxxController required a bean of type 'com.xdaozwg.service.xxxService' that could not be found.The injection point has the following annotations: - @org.springframework.beans.fac原创 2020-08-27 17:24:11 · 2412 阅读 · 0 评论