Failed to start component [Connector[HTTP/1.1-80]]::端口被占用,yml配置文件更改端口
3TGCQF25BLHU9R7IQUITN0FCC5
CLIENT_PLUGIN_AUTH is required] with root cause :MySQL版本问题,pom更改版本依赖
useUnicode=true&characterEncoding=utf-8 :设定时区时,serverTimezone=UTC比中国时间早8个小时,若在中国,可设置serverTimezone=Shanghai或者serverTimezone=Hongkong,例如:
driverClassName=com.mysql.cj.jdbc.Driver url=jdbc:mysql://localhost:3306/test?serverTimezone=Shanghai&?useUnicode=true&characterEncoding=utf8&useSSL=false username=root password=root
Error creating bean with name 'userController'启动类架包扫描@ComponentScan(basePackages = { "com.example.controller" }) Field userServiceImpl in com.hxz.controller.UserController required a bean of type 'com.hxz.service. @ComponentScan(basePackages = { "com.example.service.impl })
The Tomcat connector configured to listen on port 8081 failed to

本文主要探讨了Spring Boot开发中遇到的常见问题,包括端口被占用、YML配置文件更改端口、MySQL版本问题、时区设置、启动类扫描、Maven操作以及Swagger和@RestController的使用误区,提供了解决这些问题的具体步骤和建议。
最低0.47元/天 解锁文章
1481

被折叠的 条评论
为什么被折叠?



