首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >后台常见错误

后台常见错误

作者头像
zhangjiqun
发布2024-12-16 19:18:46
发布2024-12-16 19:18:46
21900
代码可运行
举报
文章被收录于专栏:计算机工具计算机工具
运行总次数: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注解包含多个包

代码语言:javascript
代码运行次数:0
运行
复制
@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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2024-12-16,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
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 启动、停止
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档