您当前的位置: 首页 > 

ZhangJiQun&MXP

暂无认证

  • 0浏览

    0关注

    1187博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

后台常见错误

ZhangJiQun&MXP 发布时间:2021-07-08 18:40:50 ,浏览量:0

目录

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

 

 

Required request parameter 'id' for method parameter type Integer is present but converted to null]

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

 

 

MapperScan注解包含多个包
@MapperScan({"com.example.demo.dao","com.example.demo.easy.dao"})

注意是数组形式

Invalid bound statement (not found)

就是mapping 文件映射问题,注意名字一样;

Annotation-specified bean name 'userInfoService' for bean 

在application中精准扫描mapping

Invalid bound statement (not found): com.example.demo.service.UserService.getUserById

进行修改dao

spring 启动成功但是浏览器访问不到

看看有什么区别

 使用工具生成ip

 

Could not autowire. No beans of 'xxxx' type found

autowire:自动连接

 

Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

不要使用这种方式打包 jar

使用maven package

 生成jar 目录

 

java -jar shell 启动、停止

直接在,命令行窗口 crtl +d

关注
打赏
1665659684
查看更多评论
立即登录/注册

微信扫码登录

0.0396s