这些是时间小偷吗,真的很偷时间啊
问题一
Field brandMapper in com.changgou.service.impl.BrandServiceImpl required a bean of type 'com.changgou.dao.BrandMapper' that could not be found.
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-03-28 09:18:03.396 ERROR 10296 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field brandMapper in com.changgou.service.impl.BrandServiceImpl required a bean of type 'com.changgou.dao.BrandMapper' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.changgou.dao.BrandMapper' in your configuration.
Disconnected from the target VM, address: '127.0.0.1:13015', transport: 'socket'
Process finished with exit code 1
解决一
解决二
发现原先包路径是错的
改掉
问题二
Loading class `com.mysql.jdbc.Driver'. This is deprecated.
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
解决
照着信息 com.mysql.jdbc.Driver --> com.mysql.cj.jdbc.Driver
问题三
post报405
解决
新的代码写完记得重跑一下 !!!!!!!!!!!!