在配置Eureka微服务的详细信息时添加的build信息需要排除static下的文件
Eureka


在父工程的pom文件添加的build的完整信息

<build>
		<finalName>CrowdFundingParentProject</finalName>
		<resources>
            <resource>
                <directory>${project.basedir}/src/main/resources</directory>
                <filtering>true</filtering>
                <excludes>
                    <exclude>static/**</exclude>
                </excludes>
            </resource>
            <resource>
                <directory>${project.basedir}/src/main/resources</directory>
                <filtering>false</filtering>
                <includes>
                    <include>static/**</include>
                </includes>
            </resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<configuration>
					<delimiters>
						<delimit>$</delimit>
					</delimiters>
				</configuration>
			</plugin>
		</plugins>
	</build>
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐