diff --git a/wise-webapp/src/main/java/com/wisemapping/config/mvc/MvcAppConfig.java b/wise-webapp/src/main/java/com/wisemapping/config/mvc/MvcAppConfig.java index 1e923311..6dfaaad2 100644 --- a/wise-webapp/src/main/java/com/wisemapping/config/mvc/MvcAppConfig.java +++ b/wise-webapp/src/main/java/com/wisemapping/config/mvc/MvcAppConfig.java @@ -7,6 +7,7 @@ import org.springframework.context.annotation.ImportResource; import org.springframework.web.servlet.HandlerExceptionResolver; import org.springframework.web.servlet.ViewResolver; import org.springframework.web.servlet.config.annotation.EnableWebMvc; +import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver; import org.springframework.web.servlet.view.InternalResourceViewResolver; @@ -18,12 +19,12 @@ import org.springframework.web.servlet.view.JstlView; @ImportResource(value = {"classpath:spring/wisemapping-servlet.xml"}) @ComponentScan("com.wisemapping.webmvc") public class MvcAppConfig implements WebMvcConfigurer { -// @Override -// public void addResourceHandlers(ResourceHandlerRegistry registry) { -// registry -// .addResourceHandler("/**") -// .addResourceLocations("classpath:/public/"); -// } + @Override + public void addResourceHandlers(ResourceHandlerRegistry registry) { + registry + .addResourceHandler("/**") + .addResourceLocations("classpath:/public/"); + } @Bean public ViewResolver viewResolver() { diff --git a/wise-webapp/src/main/resources/application.properties b/wise-webapp/src/main/resources/application.properties index be2684c2..6b3f60ee 100755 --- a/wise-webapp/src/main/resources/application.properties +++ b/wise-webapp/src/main/resources/application.properties @@ -181,4 +181,4 @@ spring.h2.console.enabled=true spring.h2.console.path=/h2-ui -logging.level.root=TRACE +logging.level.root=DEBUG diff --git a/wise-webapp/src/main/resources/public/static/mindplot b/wise-webapp/src/main/resources/public/static/mindplot new file mode 120000 index 00000000..61ad9a4e --- /dev/null +++ b/wise-webapp/src/main/resources/public/static/mindplot @@ -0,0 +1 @@ +../../../../../../wise-ui/target/wisemapping-mindplot/package/dist \ No newline at end of file diff --git a/wise-webapp/src/main/resources/public/static/webapp b/wise-webapp/src/main/resources/public/static/webapp new file mode 120000 index 00000000..240a1953 --- /dev/null +++ b/wise-webapp/src/main/resources/public/static/webapp @@ -0,0 +1 @@ +../../../../../../wise-ui/target/wisemapping-webapp/package/dist \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/static/mindplot b/wise-webapp/src/main/webapp/static/mindplot deleted file mode 120000 index 351e6f9d..00000000 --- a/wise-webapp/src/main/webapp/static/mindplot +++ /dev/null @@ -1 +0,0 @@ -../../../../../wise-ui/target/wisemapping-mindplot/package/dist \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/static/webapp b/wise-webapp/src/main/webapp/static/webapp deleted file mode 120000 index 7173cbf4..00000000 --- a/wise-webapp/src/main/webapp/static/webapp +++ /dev/null @@ -1 +0,0 @@ -../../../../../wise-ui/target/wisemapping-webapp/package/dist \ No newline at end of file