摘要: spring: # mvc: # static-path-pattern: /res/** web: resources: static-locations: [classpath: /haha] - applicaiton.ymlspring-web-resources-static-locati 阅读全文
posted @ 2022-04-02 15:17 lvySharkereee 阅读(420) 评论(0) 推荐(0)
摘要: Test set: MVCTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.923 sec <<< FAILURE! testPage(MVCTest) Time elapsed: 0.005 sec <<< 阅读全文
posted @ 2022-03-28 17:40 lvySharkereee 阅读(89) 评论(0) 推荐(0)
摘要: 点击 Edit Configurations 设置 Tomcat 的位置。 阅读全文
posted @ 2022-03-21 10:25 lvySharkereee 阅读(486) 评论(0) 推荐(0)
摘要: 1 old pom.xml <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.3.16</version> </de 阅读全文
posted @ 2022-03-18 10:06 lvySharkereee 阅读(1679) 评论(0) 推荐(0)
摘要: 1 bean2.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSch 阅读全文
posted @ 2022-03-09 19:43 lvySharkereee 阅读(404) 评论(0) 推荐(0)
摘要: 此 bug 说明输入流找不到文件路径。 在此工程中创建一个与 src 文件夹相同位置的文件夹名为 resources。再把需要的文件放入其中即可。 此为 JDBC 获取数据库连接的例子,为了找到 jdbc.properties 文件,按照上述方法操作即可: // 获取数据库的连接 public st 阅读全文
posted @ 2022-02-15 09:10 lvySharkereee 阅读(503) 评论(0) 推荐(0)
摘要: 字节输入输出流 字节输入流抽象类 -- InputStream 字节输出流抽象类 -- OutputStream 文件字节输入 / 输出流 (FileInputStream / FileOutputStream) 字符输入输出流 Reader类 Writer类 FileReader FileWrit 阅读全文
posted @ 2022-02-05 08:56 lvySharkereee 阅读(30) 评论(0) 推荐(0)
摘要: 插入三个 jar 包 将它们整合到 lib 包中去。 导入 Logback.xml 配置文件 创建日志对象 e.g. public static final Logger LOGGER = LoggerFactory.getLogger("Test.class"); 日志级别(默认为 DEBUG): 阅读全文
posted @ 2022-02-03 20:04 lvySharkereee 阅读(33) 评论(0) 推荐(0)
摘要: 不可变集合(Immutable Collection) -- of() 方法 List<Double> lists = List.of(569.5, 700.5, 523.0, 570.5); // lists.add(689.0); // Immutable object is modified 阅读全文
posted @ 2022-02-03 20:00 lvySharkereee 阅读(100) 评论(0) 推荐(0)