vue.js:634 [Vue warn]: Property or method "userName" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See:

老大夫 发布于 2022-05-26 20:03
原因: vue使用了插值表达式,但是未在data中声明 解决: 在data{ } 中声明就好了 转载: https://blog.csdn.net/qq_43498860/article/details/120241962
标签: vue

This may be the result of an unspecified view, due to default view name generation

老大夫 发布于 2022-05-26 11:48
原因: pom没有加没有加thymleaf的依赖 转载: http://www.javashuo.com/article/p-uwfivquq-em.html 解决: pom中加入 <!--使用thymeleaf模板引擎--> <dependency> <groupId>org...
标签: thymleaf

Not a managed type: class com.tjetc.carwork1.pojo.IllegalRecord

老大夫 发布于 2022-05-26 10:58
原因: Pojo类名忘记加了 ENtity 转载: https://blog.csdn.net/ywy7777777/article/details/106679001/
标签: idea JPA

jpa返回Iterable而不是list

老大夫 发布于 2022-05-25 10:44
转载: https://www.codenong.com/34702252 不需要强制转换,也不推荐强制转换,只需要在repositery中重写方法.

2022-05-24

老大夫 发布于 2022-05-24 17:54
[该文章已加密,请点击标题输入密码访问]

Unsupported character encoding 'UTF‐8'

老大夫 发布于 2022-05-24 10:47
转载:https://blog.csdn.net/weixin_45848260/article/details/124214797 把UTF-8改成 utf8就行
标签: idea

不允许有匹配 "[xX][mM][lL]" 的处理指令目标。

老大夫 发布于 2022-05-24 10:40
原因:xml文件开篇第一个元素前面不能有空格 转载:https://blog.csdn.net/a_cherry_blossoms/article/details/86589479
标签: idea

IDEA打包出错:[ERROR] The specified user settings file does not exist: C:\Users\Administrator\.m2\setting

老大夫 发布于 2022-05-22 14:04
转载自:https://blog.csdn.net/qq_44982182/article/details/108812770

springboot项目中查看spring版本和springBoot版本号

老大夫 发布于 2022-05-22 13:52
转载自: https://www.csdn.net/tags/MtTaMgysMTA0NjktYmxvZwO0O0OO0O0O.html import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.SpringBootVersion; impo...

2022-05-22

老大夫 发布于 2022-05-22 13:29
[该文章已加密,请点击标题输入密码访问]

engix 可以做限流

老大夫 发布于 2022-05-16 09:02
限流一般借助队列来限流.

2022-05-15

老大夫 发布于 2022-05-15 21:58
[该文章已加密,请点击标题输入密码访问]

拦截器和过滤器出现反复横跳的原因

老大夫 发布于 2022-05-15 10:52
访问路径前记得加 / 例如:"/index" 请求方法method "GET,PUT,DELETE...."等,注意父路径是否已经被定义

JPA - no Session 的解决办法

老大夫 发布于 2022-05-10 16:21
原因: 出现 - no Session 是因为hibernate需要事务 解决方法: 我们在方法上添加注解 @Transaction @Rollback(false) 这个是在测试类中防止回滚用的

关于object references an unsaved transient instance - save the transient instance before flushing的解决方法

老大夫 发布于 2022-05-10 12:33
在使用JPA的多对一,进行保存等操作的时候报错. 显示对象未被创建. 原因是 在@ManyToOne()中缺少cascade = {CascadeType.REMOVE,CascadeType.PERSIST} 在@OneToMany()中 例如:private Role role=new Role(); 在这里是不能new的 解决办法: https://...
标签: idea JPA