项目错误记录

1.在访问规格参数是,页面上出现此错误[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-1RcJhR5i-1590583573423)(C:\Users\mysho\AppData\Roaming\Typora\typora-user-images\image-20200527083542679.png)]

原因是:island 的项目错误记录 - day02

此方法所返回的是List集合但是在此方法的Controller上所用的注解是@RestController
island 的项目错误记录 - day02

错误解决的方法:把Controller上的@RestController注解改为@Controller

2.规格参数在添加的时候出现的数据库异常org.springframework.dao.DataIntegrityViolationException:

原因:因为前端传值方式错误了,data不应该这样去传值
island 的项目错误记录 - day02

错误的解决方法:把data的传值方式更改为 this.$qs.stringify({cid:this.group.cid,name:this.group.name}) 就可以了

island 的项目错误记录 - day02

相关文章:

  • 2021-09-17
  • 2021-07-26
  • 2021-11-18
  • 2021-12-17
  • 2022-12-23
  • 2021-11-16
猜你喜欢
  • 2021-06-18
  • 2021-07-31
  • 2021-04-17
  • 2021-05-24
  • 2022-12-23
  • 2021-07-07
  • 2021-06-08
相关资源
相似解决方案