no message

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

@ -50,7 +50,13 @@
<finalName>${project.artifactId}-${project.version}</finalName>
<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>
<testResources>
@ -60,6 +66,14 @@
<pluginManagement>
<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>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@ -91,6 +105,7 @@
<configuration>
<includes>
<include>**/*.class</include>
<include>META-INF/resources/webjars/resources/**</include>
</includes>
</configuration>
</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