![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring-boot后端框架搭建
chenkangck50
这个作者很懒,什么都没留下…
展开
-
spring-boot 统一异常处理
package com.github.binarywang.demo.wx.mp.controller;import org.springframework.http.HttpStatus;import org.springframework.web.bind.annotation.ControllerAdvice;import org.springframework.web.bind.annotation.ExceptionHandler;import org.springframework.w原创 2021-10-22 16:52:52 · 115 阅读 · 0 评论 -
spring-boot集成mysql,mybatis-plus
1.pom.xml 引入依赖 <!-- 数据库驱动 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.27</version> </dependency原创 2021-10-22 10:44:58 · 231 阅读 · 0 评论 -
springboot 解决CORS跨域问题
1.实现Filter```javapackage com.github.binarywang.demo.wx.mp.config;import org.springframework.context.annotation.Configuration;import javax.servlet.*;import javax.servlet.annotation.WebFilter;import javax.servlet.http.HttpServletResponse;import jav原创 2021-10-22 09:48:56 · 97 阅读 · 0 评论