gagamel 4 лет назад
Родитель
Сommit
c1fae56e3d

+ 21 - 0
src/main/java/com/style24/front/support/config/TsfErrorConfig.java

@@ -0,0 +1,21 @@
+package com.style24.front.support.config;
+
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * Error Configuration
+ * 
+ * @author gagamel
+ * @since 2021. 8. 19
+ */
+@Configuration
+public class TsfErrorConfig {
+
+//	@Bean
+//	public ConfigurableServletWebServerFactory webServerFactory() {
+//		TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory();
+//		factory.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, "/error"));
+//		return factory;
+//	}
+
+}

+ 1 - 0
src/main/resources/config/application.yml

@@ -16,6 +16,7 @@ spring:
         redis:
             repositories:
                 enabled: true
+#    mvc.throw-exception-if-no-handler-found: true
 
 server.site.name: front