bug
滑德友
认认真真做人,认认真真做事
展开
-
spring boot项目 mvn test 和 mvn clean install 和 mvn test-compile 识别不到测试类无法运行单元测试
测试类使用了junit4, spring boot 版本的test 框架自带的是junit5,不兼容。原创 2023-09-27 17:39:19 · 1134 阅读 · 0 评论 -
Uncaught TypeError: date.locale is not a function
Uncaught TypeError: date.locale is not a function原创 2023-02-24 17:30:15 · 1911 阅读 · 0 评论 -
React Hook useEffect has a missing dependency: ‘getTagList‘. Either include it or remove the depende
React Hook useEffect has a missing dependency: 'getTagList'. Either include it or remove the dependency array.原创 2023-02-24 15:54:45 · 763 阅读 · 0 评论 -
An import path cannot end with a ‘.tsx‘ extension. Consider importing ‘./component/tagUpdate.js‘ ins
An import path cannot end with a '.tsx' extension. Consider importing './component/tagUpdate.js' instead.ts(2691)原创 2023-02-24 15:51:50 · 1473 阅读 · 2 评论 -
Module not found: Error:
Module not found: Error:原创 2023-02-15 09:53:44 · 218 阅读 · 0 评论 -
options.allowedHosts[0] should be a non-empty string.
options.allowedHosts[0]原创 2023-02-14 14:23:27 · 3268 阅读 · 0 评论 -
Found multiple @SpringBootConfiguration annotated classes
Found multiple @SpringBootConfiguration annotated classes原创 2023-02-07 15:16:02 · 603 阅读 · 0 评论 -
iview的table表格加按钮不生效?
官方文档是这样写的 结果不生效 { title: '操作', key: 'action', width: 150, align: 'center', render (row, column, index) { return `<i-button type="primary" size="small" @click="show(${index})">查看</i-button> <i-button type="error转载 2022-05-18 14:22:14 · 592 阅读 · 0 评论 -
iview upload组件手动控制上传后端接收不到文件
<Upload :before-upload="handleBeforeUploadCover" action="//jsonplaceholder.typicode.com/posts/"> <Button icon="ios-cloud-upload-outline">请上传封面</Button> <img :src="formData.cover" v-if="formData.cover"&...原创 2022-05-17 15:43:57 · 590 阅读 · 0 评论 -
报错Unknown custom element: <xxx> - did you register the component correctly?的原因及解决办法
导致出错的可能的原因把components写成了componentimport xxx from “./xxx.vue” 写成了import { xxx} from “./xxx.vue”代码中有两个components,后一个的值把前一个覆盖了解决方案逐一对照上述3种可能导致出错原因,然后做对应修改即可解决问题我是第3个原因,被坑到差点怀疑人生,看到这篇文章的小伙伴你是什么原因?欢迎补充————————————————版权声明:本文为CSDN博主「didi_101」的原创文章,遵循CC.转载 2022-04-11 14:11:45 · 546 阅读 · 0 评论 -
Cannot read property ‘cancelToken‘ of undefined“
Cannot read property ‘cancelToken‘ of undefined“axios拦截请求时忘记返回config了// 拦截请求httpService.interceptors.request.use(config => { return config;},err => { Promise.reject(err);})})原创 2022-04-08 16:19:47 · 294 阅读 · 0 评论 -
TypeError: relativeURL.replace is not a function
URL本来应该是一个对象,结果误传递成了一个对象,且没有replace方法,报错了原创 2022-04-07 15:42:35 · 9834 阅读 · 9 评论 -
Uncaught ReferenceError: development is not defined vue.esm.js
原因是webpack在配置开发环境的时候没有加双引号module.exports = merge(prodEnv, { NODE_ENV: '"development"', BASE_URL: '"http://localhost:8082"',})原创 2022-04-07 15:14:23 · 1184 阅读 · 0 评论 -
Property or method “rules“ is not defined on the instance but referenced during render. Make sure th
Property or method “rules” 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 <Card style="width:300px" id="lo原创 2022-04-07 10:32:28 · 7636 阅读 · 0 评论 -
Error: Can‘t resolve ‘less-loader‘
npm install less less-loader --save-dev原创 2022-03-15 10:27:20 · 4382 阅读 · 0 评论 -
MySQL 8.0 Public Key Retrieval is not allowed 错误的解决方法
mysql连接后面添加 allowPublicKeyRetrieval=true原创 2022-03-15 10:26:15 · 239 阅读 · 0 评论 -
java.lang.IllegalStateException: Found multiple @SpringBootConfiguration annotated classes
运行单元测试有多个启动类报错了,去掉一个即可原创 2022-02-24 16:49:42 · 347 阅读 · 0 评论 -
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table “USER“ already exists; SQL statement:
h2的mysql内置user表,更换下表的名称原创 2022-02-24 16:33:19 · 1726 阅读 · 0 评论 -
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table “USER“ not found; SQL statement:
h2没有创建数据库或者没有找到sql文件原创 2022-02-24 16:32:24 · 3947 阅读 · 4 评论 -
Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘news‘ method
Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘news’ method对于url :xxxxnews,被被多个方法使用,产生了歧义,消去歧义即可原创 2022-02-24 14:20:03 · 388 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.nero.hua.dao.UserDAO.selectByIdmybatis: mapper-locations: "classpath:mapper/*.xml"原创 2022-02-22 18:09:45 · 76 阅读 · 0 评论 -
@ConfigurationProperties值注入不进去
@ConfigurationProperties(“filter.login-filter”)确认扫描到该bean确认yml中的配置key和@ConfigurationProperties中的key一致原创 2022-02-22 17:29:56 · 870 阅读 · 0 评论 -
Field xxxxDAO in com.nero.hua.service.impl.LoginServiceImpl required a bean of type
Field userDAO in com.nero.hua.service.impl.LoginServiceImpl required a bean of type ‘com.nero.hua.dao.UserDAO’ that could not be found.启动类上加上@MapperScan(“com.nero.hua.dao”)原创 2022-02-22 17:24:55 · 1886 阅读 · 0 评论 -
Reason: Canonical names should be kebab-case (‘-‘ separated), lowercase alpha-numeric characters and
Reason: Canonical names should be kebab-case (’-’ separated), lowercase alpha-numeric characters and must start with a letterfilter.loginFilter ->filter.login-filter原创 2022-02-22 17:17:21 · 460 阅读 · 0 评论 -
Flyway Teams Edition or MySQL upgrade required: MySQL 5.5 is no longer supported by Flyway Community
Flyway Teams Edition or MySQL upgrade required: MySQL 5.5 is no longer supported by Flyway Community升级你的mysql或者使用flyway的企业版原创 2022-02-21 13:58:00 · 3108 阅读 · 0 评论 -
Please remove any half-completed changes then run repair to fix the schema history
Please remove any half-completed changes then run repair to fix the schema history删除表中记录的有错误的sql并重新跑原创 2022-02-21 15:53:06 · 3523 阅读 · 0 评论 -
The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized or represents more than one time zone. You
The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utiliz原创 2022-02-21 15:43:24 · 395 阅读 · 0 评论