Java疑难杂症

孤人 提交于 2020-02-03 00:08:23

目录

 

1、父项目的的包依赖和plugin结构

2、SpringBoot中application.properties相关坑

3、properties文件中有中文时,需要在设置中的file encoding勾选


1、父项目的的包依赖和plugin结构

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <version>3.1.0</version>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

子项目继承

<dependencies>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
    </dependency>
</dependencies>
<build>
    <finalName>spring-Web</finalName>
    <plugins>
        <plugin>
            <artifactId>maven-clean-plugin</artifactId>
            <version>3.1.0</version>
        </plugin>
    </plugins>
</build>

2、SpringBoot中application.properties相关坑

3、properties文件中有中文时,需要在设置中的file encoding勾选

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!