
后端
一枚菜鸟的后端博客
wzp、、、
这个作者很懒,什么都没留下…
展开
-
java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
解决jdk11中的java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter添加以下依赖即可解决: <!-- jaxb依赖包 --> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId>原创 2020-11-08 17:24:15 · 1422 阅读 · 1 评论 -
Failed to determine a suitable driver class
***************************APPLICATION FAILED TO START***************************Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable dr原创 2020-10-31 09:03:40 · 163 阅读 · 0 评论 -
nginx: [emerg] CreateFile() “F:\桌面\nginx-1.12.2/conf/nginx.conf“ failed (3: The system cannot find t
在安装nginx时,启动nginx后出现nginx: [emerg] CreateFile() "F:\桌面\nginx-1.12.2/conf/nginx.conf" failed (3: The system cannot find the path specified)原因:路径出现了中文名,去掉中文名后成功启动。原创 2020-09-27 15:33:31 · 4943 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
在使用阿里云的oss时,由于项目是分模块的,在涉及oss模块里只想要用来上传文件,并不涉及访问数据库,因而出现了这个问题:Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver class解决方法:在注解 @原创 2020-09-25 16:26:58 · 109 阅读 · 0 评论 -
Vue warn]: Invalid prop: type check failed for prop “min“. Expected Number with value 0, got String
element-ui 组件报错:Vue warn]: Invalid prop: type check failed for prop “min”. Expected Number with value 0, got String with value “0”. 出错位置: <el-form-item label="排序" prop="sort"> <el-input-number v-model="person.sort" controls-position="ri原创 2020-08-12 21:26:04 · 1331 阅读 · 0 评论 -
mybatis-plus 自动填充无法填充问题
在使用 mybaits-plus 的自动填充时,发现自动填充失败,项目是使用 maven 的多模块,把实现 MetaObjectHandler 的类写在公共模块中,发现填充失败!! 猜测是没有用到这个类,把这个类写到本模块中,就可以自动填充了。不知道具体原因,希望大佬解答。...原创 2020-08-12 20:06:31 · 2109 阅读 · 3 评论 -
vue-admin-template登录时没有发送info请求
最近在用springboot整合vue-admin-template时,在登录后通过浏览器network发现只发送了login请求,没有发送info请求,导致整合失败;通过浏览器控制台Response data查看后发现了登录失败的原因:原来的返回信息是"{"status":20000,"data":{"token":"admin"}},而vue-admin-template判断成功的代码是:if (res.code !== 20000),这里把返回值的“status”改为“code”,就可以登录成功,粗心原创 2020-08-11 11:53:28 · 1447 阅读 · 0 评论 -
Spring Boot 出现 Spring Boot Application in default package错
Spring Boot 出现 Spring Boot Application in default package错在stack overflow上看到的解决方案:application.java 文件不能直接放在main/java文件夹下,必须要建一个包把他放进去原创 2020-05-23 15:05:57 · 734 阅读 · 0 评论 -
【异常】MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on di
异常描述:redis设置值异常:127.0.0.1:6379> set password 123456(error) MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to原创 2020-05-22 15:30:39 · 153 阅读 · 0 评论 -
java.lang.ClassCastException: class [C cannot be cast to class java.lang.String
在springboot整合shiro出现了java.lang.ClassCastException: class [C cannot be cast to class java.lang.String ([C and java.lang.String are in module java.base of loader 'bootstrap')这个问题,看了一遍代码,决定debug一下,发现在自定义Realm那里获取密码时出现了问题:原来是这样的:将下面获取密码的代码改为:成功运行。...原创 2020-05-17 16:26:34 · 3479 阅读 · 0 评论 -
IDEA访问不了官网
IDEA访问不了官网这段时间使用的破解版idea出现了问题,决定换成正版的idea,去官网下载时居然进不了官网。。。。 网上查资料后才后知后觉,因为以前用的是破解版,修改过host文件的访问地址,需要修改回来,具体操作如下:(1)先找到host文件:C:\Windows\System32\drivers\etc(2)打开host文件:使用notepad可以直接编辑,或者用记事本等。(3)(4)ctrl + s保存host文件,就可以访问idea官网了。...原创 2020-05-13 11:03:59 · 2896 阅读 · 0 评论 -
leetcode #376 摆动序列
这道题用的是贪心算法,当有连续的递增或递减序列时,选择最大或最小的数,以得到长度最长的摆动序列。可利用状态图来理解。class Solution { public int wiggleMaxLength(int[] nums) { if(nums.length < 2) { return nums.length; } ...原创 2020-05-05 08:09:11 · 268 阅读 · 1 评论 -
leetcode #141 环形链表
题目描述给定一个链表,判断链表中是否有环。思路:用快慢两个指针同时遍历,若相遇则有环,反之无环。代码如下:public class Solution { public boolean hasCycle(ListNode head) { ListNode fast = head; //快节点 ListNode slow = head; /...原创 2020-04-09 00:08:38 · 118 阅读 · 0 评论 -
Error creating bean with name 'projectingArgumentResolverBeanPostProcessor'
Error creating bean with name ‘projectingArgumentResolverBeanPostProcessor’最近springboot在整合spring security时遇到了这个错误,查了网上资料,把WebSecurityConfig类上的注解’@EnableGlobalMethodSecurity’ 去掉就可以运行了。...原创 2020-04-08 22:41:02 · 3928 阅读 · 1 评论 -
leetcode #92 反转链表II
题目描述:反转从位置 m 到 n 的链表。请使用一趟扫描完成反转。说明:1 ≤ m ≤ n ≤ 链表长度。示例:输入: 1->2->3->4->5->NULL, m = 2, n = 4输出: 1->4->3->2->5->NULL该题是leetcode链表的中等题,在一定范围内反转链表,要考虑两个问题:1、最终结果要返回哪...原创 2020-04-07 01:00:00 · 121 阅读 · 0 评论 -
springboot启动出现Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
springboot启动出现Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set用SpringData Jpa 集成hibernate遇到的坑springboot高版本以上的url配置要改成:spring.datasource.jdbc-urlspringboot高版本的MySQL方...原创 2020-04-06 22:33:53 · 537 阅读 · 0 评论