- 博客(6)
- 收藏
- 关注
原创 [VUE]v-if判断参数值和字符串是否相等使用===
主要原因是bean没有注册上,推荐方法:主程序 XXXApplication加上@MapperScan(“com.xxx.mapper”)。其他方法:只要在对应POJP加上 @Component就好主要错误:Field newsMapper in com.news.service.NewsService required a bean of type ‘com.news.mapper.N...
2020-01-20 14:29:38
28038
原创 npm install xxx npm ERR! code EPERM npm ERR! syscall mkdir
npm install安装显示npm ERR!是因为使用普通的命令提示符没有权限解决方法:使用管理员:命令提示符(右击电脑菜单)
2020-01-19 12:16:39
5972
2
转载 [VUE]computed vs methods
我们可以使用 methods 来替代 computed,效果上两个都是一样的,但是 computed 是基于它的依赖缓存,只有相关依赖发生改变时才会重新取值。而使用 methods ,在重新渲染的时候,函数总会重新调用执行。可以说使用 computed 性能会更好,但是如果你不希望缓存,你可以使用 methods 属性。https://www.runoob.com/vue2/vue-compu...
2020-01-17 17:45:44
241
原创 springboot @Controller跳转http://localhost:8080/ 打不开,跳转没有html后缀网页
正确写法@RequestMapping("/") public String index(){ return "index.html"; }在springboot中如果使用以下写法,必须引入thymeleaf模板。或者在application.properties修改后缀配置@RequestMapping("/") public String in...
2019-12-27 15:08:16
1059
原创 The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*
mapper.xml文件出现The content of element type “mapper” must match “(cache-ref|cache|resultMap*|parameterMap*|sql*| insert*|update*|delete*|select*)+”.Tomcat抛出异常Artifact manager:war exploded2: Error duri...
2019-12-09 19:58:34
975
原创 Resolved [java.lang.NullPointerException]
空指针异常,JAVA是面向对象编程,对象必须要有对应的地址出现这种情况,肯定是你初始化变量为null,最后没有赋值或者实例化!导致变量没有对应的地址List<CommentDTO> comments = commentService.list(id);我遇到空指针异常的情况是:返回list的方法中,查询数据库为空,导致没有数据返回,list最后返回的是null,需要在最后判断l...
2019-12-01 15:26:47
4476
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人