web
氡佴
这个作者很懒,什么都没留下…
展开
-
多模块构建
第一步: 父项目jar改pom 第二步 新建子项目 new->Module->Maven->Next-finsh 第三步修改pom 3.1父模块的module有子模块 <modules> <module>server</module> </modules> <packaging>pom</packaging> //去除build,父模块不构建 3.2子模块的parent指向父模块 <art原创 2021-06-04 16:24:43 · 146 阅读 · 0 评论 -
springboot读取配置文件
1.读取jar包中的资源文件,可以通过Class类的getResourceAsStream()方法,即通过流的方式来获取 : 注意: 1.fileName不能带/ 2.只能读取jar包内部的资源文件 private static final String PLATFORM_PROPS_FILE_NAME = "platform.properties"; PlatformConf.class.getClassLoader().getResourceAsStream(fileName) ...原创 2021-05-10 16:23:05 · 69 阅读 · 0 评论 -
Maven 构建项目
1.构建项目排除配置文件 <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.4.4</version> </plugin原创 2021-05-10 16:20:16 · 59 阅读 · 0 评论