目录
Field 'id' doesn't have a default value
Required request parameter 'id' for method parameter type Integer is present but converted to null]
MapperScan注解包含多个包
Invalid bound statement (not found)
Annotation-specified bean name 'userInfoService' for bean
Invalid bound statement (not found): com.example.demo.service.UserService.getUserById
spring 启动成功但是浏览器访问不到
Could not autowire. No beans of 'xxxx' type found
autowire:自动连接
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
java -jar shell 启动、停止
Field 'id' doesn't have a default value

配置完成之后一定要进行保存

MapperScan注解包含多个包
@MapperScan({"com.example.demo.dao","com.example.demo.easy.dao"})
注意是数组形式

就是mapping 文件映射问题,注意名字一样;
在application中精准扫描mapping


进行修改dao
看看有什么区别

使用工具生成ip
不要使用这种方式打包 jar
使用maven package
生成jar 目录
直接在,命令行窗口 crtl +d