排错
布丁啊生
新人学习
展开
-
controller注入两个service的时候,表单提交数据不会自动绑定需要实体类对象
当一个controller注入两个实体类的时候,从前端提交过来的数据会自动绑定一个service的一个实体类,记得要手动添加一个实体类对象,然后存入数据库。原创 2020-12-29 19:33:49 · 363 阅读 · 0 评论 -
Unsatisfied dependency expressed through field ‘buildingService‘; nested exception is org.springfram
Unsatisfied dependency expressed through field ‘buildingService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘buildingServiceImpl’:经常在springboot运行的时候会碰到这个无法注入的问题,重点看下面的日志关于Mapper开头的信原创 2020-12-29 18:25:42 · 1631 阅读 · 0 评论 -
springboot集成jsp,There was an unexpected error (type=Not Found, status=404). No message available
There was an unexpected error (type=Not Found, status=404). No messageavailable今天遇到一个很无语的bug,访问的时候就出现这个路径没找到文件,主要是springboot默认的是使用html后缀名的模板,而没有使用jsp,所以在添加依赖包和启动方式后要在配置文件加上这两句。spring.mvc.view.prefix=/spring.mvc.view.suffix=.jsp当加上suffix后缀的时候,就能根据路径.原创 2020-12-27 13:35:54 · 1376 阅读 · 0 评论 -
An error happened during template parsing (template: “class path resource [templates/login.html]“
今天搭建thymeleaf模板使用,参考其他博客,步骤一切正常,但是访问html页面的时候还会是报这个错误。An error happened during template parsing (template: “class path resource [templates/login.html]“,于是我先清空页面的内容,直接打上几个数字,可以显示成功。然后又切换回之前页面的内容,重新访问又错。我就纳闷了,是不是之前复制的页面用不了啊,都只是些很简单的代码,然后对着这页面的代码打就又可以访问,什么原创 2020-12-24 18:42:52 · 646 阅读 · 2 评论 -
mybatis更新数据不成功,但看不到原因
mybatis更新数据不成功,但看不到原因// 更新用户信息// @Update("update users set username = #{username} where uid = #{user.uid}") public void update(User user); // 更改用户状态 @Update("update users set status=#{status} where uid=#{uid}") void changeStatus(@Para原创 2020-10-11 21:03:11 · 2483 阅读 · 0 评论 -
关于微信小程序云开发where的传参问题
关于微信小程序云开发where的传参问题关于where传参的时候,一定要先判断传入的值是什么类型我在传这个aid的时候,options是可以获取的,然后就是一直传进来获取不到数据,最后用typeof判断传入的options.aid的类型为string,然后就用parseInt()转换成了number就可以获取数据库的数据了。或者可以从云数据库的更改这个aid的数据类型为string!...原创 2020-06-24 20:56:46 · 1266 阅读 · 3 评论 -
记录一下昨晚犯的低级错误,ssm项目找不到service
记录一下昨晚犯的低级错误在搭建ssm框架时,不适用maven的情况下,一直报service的错误,说是service找不到Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.xx.xx.xxService’ available: expected at least 1 bean which qualifies as autowire cand原创 2020-06-10 08:41:07 · 1049 阅读 · 1 评论