摘要: <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </i 阅读全文
posted @ 2021-03-14 15:58 做给谁听 阅读(131) 评论(0) 推荐(0)
摘要: 注意修改 localRepository <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001 阅读全文
posted @ 2021-03-14 12:29 做给谁听 阅读(115) 评论(0) 推荐(0)
摘要: java 代码块加载顺序 静态代码块 匿名代码块 public class BlockTest { { System.out.println("匿名代码块"); } static { System.out.println("静态代码块"); } public BlockTest() { System 阅读全文
posted @ 2021-03-02 22:54 做给谁听 阅读(72) 评论(0) 推荐(0)
摘要: 接口中方法、常量的定义 接口中方法的默认为 public 接口中的属性默认修饰为 public static final。在idea开发工具中可以看到有 Remove unnecessary 'public static final' public interface InterfaceTest { 阅读全文
posted @ 2021-03-02 22:45 做给谁听 阅读(289) 评论(0) 推荐(0)
摘要: JAVA 构造方式注意事项 构造方法中的super()或this()构造方法必须放置于方法体中的第一行。如 public class Student extends Person{ public Student() { super();//如果置于 System.out.println后面,则报错 阅读全文
posted @ 2021-03-02 22:03 做给谁听 阅读(61) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { int num1 = 10_0000_0000; int rate = 20; long total = num1 * rate; System.out.println(total);// 输出为-1474836480 阅读全文
posted @ 2021-02-28 21:01 做给谁听 阅读(58) 评论(0) 推荐(0)
摘要: 标题 # + 标题名称 二级标题 ## + 标题名称 三级标题 ### + 标题名称 其余以此类推 字体 加粗 HelloWordl! **HelloWorld!** 斜体 HelloWorld! *HelloWorld!* 斜体加加粗 HelloWorld! ***HelloWorld!*** 删 阅读全文
posted @ 2021-02-28 14:32 做给谁听 阅读(54) 评论(0) 推荐(0)