- 博客(3)
- 收藏
- 关注
原创 Postman发送请求报错org.springframework.web.bind.MissingServletRequestParameterException
我后端接口参数用的是@RequestParam接收,而在Postman里我是用的application/json方式传递的请求数据,后端是无法接收到的。处理HttpEntity传递过来的数据,一般用来处理非Content-Type: application/x-www-form-urlencoded编码格式的数据。用来处理请求头为Content-Type: application/x-www-form-urlencoded编码的内容。我们前端传递的json对象一般都以此方式在后端接收。
2023-04-26 14:46:26
476
1
原创 SpringBoot3整合MyBatis报错:Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required
mybatis-spring-boot-starter 2.x 版本暂时还不适配 Spring Boot 3 版本,没辙。-- 引入 3.0.0-SNAPSHOT 版本的 mybatis-spring-boot-starter(未正式发版) --><dependencies> <!-- 引入 3.0.0 版本的 mybatis-spring-boot-starter(正式版) -->-- 由于未正式发版,所以在Maven仓库里还搜不到,需要额外配置一个远程仓库 -->
2023-04-24 18:07:20
267
2
原创 Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https://repo.maven.apache
报错原因:Could not find artifact mysql:mysql-connector-java:pom:unknown in centra。在pom.xml文件中指定你的。
2023-04-24 09:50:06
5049
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人