Fork me on GitHub
摘要: bug描述: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is com.google.common.util.concurrent.ExecutionError: com.google.commo 阅读全文
posted @ 2022-07-14 15:17 卡卡北 阅读(153) 评论(0) 推荐(0)
摘要: 问题描述: 第一次写mvc测试,照着别人2.0版本写的,结果测试结果MockMvc报空指针异常 private MockMvc mvc; debug发现这部分为空 解决方案: 添加注解 @AutoConfigureMockMvc @Autowired 完事 阅读全文
posted @ 2022-07-14 11:13 卡卡北 阅读(266) 评论(0) 推荐(0)
摘要: final 含义:不可改变的。(不可重写) 特点: 1。一个永不改变的编译时常量。 2.一个在运行时初始化就不会改变的值 final数据:要求:定义常量时必须赋值。 如果是空的final对象,则会要求在构造器中初始化。 示例: public class BlankFinal { private fi 阅读全文
posted @ 2020-12-20 11:05 卡卡北 阅读(244) 评论(0) 推荐(0)
摘要: 一 this关键字 1 自己的理解是: 1.1 出现在类创建之初的构造器或方法中,而一般不再类具体实现中出现,也不会出现在静态方法中。 1.2 字面意思是当前对象的引用,你可以像对待其他引用一样对待这个引用。 2 一些特殊的用法: 2.1 返回this public class Leaf { int 阅读全文
posted @ 2020-12-18 22:42 卡卡北 阅读(110) 评论(0) 推荐(0)
摘要: 参考博客:https://blog.csdn.net/s10461/article/details/53941091 阅后笔记: 一. 概念特性 1.1 泛型,参数化类型,参数包括实参<?><Integer>、形参<T><E>,参数化类型通俗点举例就是:<String> <Integer> 1.2 阅读全文
posted @ 2020-12-15 21:45 卡卡北 阅读(144) 评论(1) 推荐(0)
摘要: 解压版安装,安装前要卸载: https://blog.csdn.net/u014722022/article/details/100170664 下载地址: https://dev.mysql.com/downloads/mysql/ 阅读全文
posted @ 2020-11-10 12:43 卡卡北 阅读(109) 评论(0) 推荐(0)
摘要: bug1: junit:no runnable methods 1.导错包:@Test时import的是@org.testng.annotations.Test 所以会报错 我的问题在这一步已经解决。 解决方法:改为import org.junit.Test; 2.忘记在方法前面加入@Test注解 阅读全文
posted @ 2020-11-08 10:56 卡卡北 阅读(94) 评论(0) 推荐(1)
摘要: @Aspect注解 要使用此注解,需要在pom.xml中完成以下配置 1 <project xmlns="http://maven.apache.org/POM/4.0.0" 2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xsi: 阅读全文
posted @ 2020-10-26 16:02 卡卡北 阅读(75) 评论(0) 推荐(0)
摘要: maven自己下一个,配置环境变量。在idea里面全局设置。 创建maven导入spring框架的时候网速慢可以在右上角project settings中facts导入,或者quickstart。 1 <mirrors> 2 <!-- 阿里云仓库 --> 3 <mirror> 4 <id>alima 阅读全文
posted @ 2020-10-18 19:28 卡卡北 阅读(74) 评论(0) 推荐(0)