no message

main
이범준 6 months ago
parent 6894099896
commit 177d8aaca6

@ -50,7 +50,13 @@
<finalName>${project.artifactId}-${project.version}</finalName> <finalName>${project.artifactId}-${project.version}</finalName>
<resources> <resources>
<resource><directory>${basedir}/src/main/resources</directory></resource> <resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${basedir}/src/main/webapp/resources</directory>
<targetPath>META-INF/resources/webjars/resources</targetPath>
</resource>
</resources> </resources>
<testResources> <testResources>
@ -60,6 +66,14 @@
<pluginManagement> <pluginManagement>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<includeEmptyDirs>true</includeEmptyDirs>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
@ -91,6 +105,7 @@
<configuration> <configuration>
<includes> <includes>
<include>**/*.class</include> <include>**/*.class</include>
<include>META-INF/resources/webjars/resources/**</include>
</includes> </includes>
</configuration> </configuration>
</plugin> </plugin>

@ -0,0 +1,17 @@
package cokr.xit.applib;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class WebjarsConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**")
.addResourceLocations("/webjars/resources/");
}
}
Loading…
Cancel
Save