菜鸟阶段,几乎天天在雷上度过。。。

第一个:数据库表字段不能用sql字段,会报500错误。比如order 在select 时就会报错。

第二个:在用int 类型做查询操作Controller层要写Integer类型,不然会报“”

  • Request processing failed; nested exception is java.lang.IllegalStateException: Optional int parameter 'page' is present but cannot be translated
    into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type

解决办法如下:
整理学习java后台踩过的坑

第三:generate 配置文件中,数据库表配置出问题,会报@autowired找不到Mapper的错误:

在这里:
整理学习java后台踩过的坑

相关文章:

  • 2021-04-04
  • 2021-06-05
  • 2022-12-23
  • 2022-01-07
  • 2022-01-19
  • 2021-12-27
  • 2021-07-10
  • 2022-12-23
猜你喜欢
  • 2021-08-07
  • 2021-11-17
  • 2021-07-12
  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
  • 2021-07-16
相关资源
相似解决方案