
Java
嘉瓦
Java 软件工程师
展开
-
枚举报错 No enum constant XX 处理方法
枚举报错 No enum constant XX 处理方法原创 2022-03-17 21:15:03 · 18097 阅读 · 2 评论 -
聚合项目中读取文件 FileNotFoundException 异常
聚合项目中读取文件要添加子项目模块名称 否则读取不到 例如:在 foodie-common 中子模块中读取该模块 resources 下的文件File configFile = new File("src/main/resources/mybatis/generatorConfig.xml");上面的写法会找不到文件 抛出FileNotFoundException 异常正确写法要带上子模块 名称File configFile = new File("foodie-common/s..原创 2021-03-12 19:03:55 · 208 阅读 · 0 评论 -
在子工程中禁用的父工程的 maven 插件 | maven disable plugin in child module
以mybatis-generator-maven-plugin 插件为例在父工程中添加了mybatis-generator-maven-plugin 插件想要在子工程禁用 则在对应子工程 pom 中添加 如下内容:<build> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybat...原创 2021-03-10 21:20:40 · 960 阅读 · 0 评论 -
Spring applicationContext.xml 空白模板
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www...原创 2018-05-16 09:03:56 · 1174 阅读 · 0 评论