用IDEA创建springboot项目遇到的问题Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found
摘要:在pom.xml文件中“spring-boot-maven-plugin” 报红了,显示not found 找不到。 在maven目录(\org\springframework\boot\spring-boot-maven-plugin\2.4.1)中,发现spring-boot-maven-plu
阅读全文
posted @
2020-12-21 18:55
wnotes
阅读(15321)
推荐(0)
JDBC连接mysql出现The server time zone value '�й���ʱ��' is unrecognized
摘要:JDBC连接mysql时出现问题: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server o
阅读全文
posted @
2020-12-16 16:32
wnotes
阅读(186)
推荐(0)
Java反射、注解
摘要:1.反射 案例: 需求:写一个“框架”,不能改变该类的任何代码的前提下,可以帮我们创建任意类的对象,并且执行其中任意方法 实现: 1.配置文件 2.反射 步骤: 1.将需要创建的对象的全类名和需要执行的方法定义在配置文件中 2.在程序中加载读取配置文件 3.使用反射技术来加载类文件进内存 4.创建对
阅读全文
posted @
2020-11-23 18:14
wnotes
阅读(129)
推荐(0)
Junit单元测试
摘要:Junit单元测试 代码部分: 结构: CalculatorJ: public class CalculatorJ { /** * 加法 * @param a * @param b * @return */ public int add (int a , int b) { return a + b
阅读全文
posted @
2020-11-23 18:12
wnotes
阅读(77)
推荐(0)
Java-线程池、匿名内部类、Lambda表达式
摘要:线程池: 代码: public class Pool { public static void main(String[] args) { ExecutorService es = Executors.newFixedThreadPool(2); es.submit(new RunnableImpl
阅读全文
posted @
2020-11-15 18:04
wnotes
阅读(306)
推荐(0)
Java-多线程
摘要:Java多线程1: 三种实现方法。 分别是继承Thread类、实现Runnable接口、实现Callable接口通过FutureTask包装器来创建Thread线程。使用ExecutorService、Callable、Future实现有返回结果的多线程用到了线程池,后面再具体介绍。 其中前两种方式
阅读全文
posted @
2020-11-14 20:18
wnotes
阅读(76)
推荐(0)