Error 1
현상 | @Override public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) { configurer.enable();} 등록시 경로지정을 안해줬다는 에러발생. |
찾은것 | stackoverflow.com/questions/64822250/illegalstateexception-after-upgrading-web-app-to-spring-boot-2-4 |
결론 | 원인은 스프링에서도 component-scan 을 재지정해줌 스프링 부트 그대로 사용하기위해 xml 빈을 안만드려고 다른방법 찾아다니다. 하기 방법발견. @Bean WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> enableDefaultServlet() { return (factory) -> factory.setRegisterDefaultServlet(true); } |
Error 2
현상 | Reason: Failed to determine a suitable driver class 패키지 생성후 jdbc 설정안함. |
로그 | 2024-04-08T16:22:08.264+09:00[0;39m [31mERROR[0;39m [35m12468[0;39m [2m---[0;39m [2m[ main][0;39m [36mo.s.b.d.LoggingFailureAnalysisReporter [0;39m [2m:[0;39m *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active). |
'JAVA > spring' 카테고리의 다른 글
[1028web 이클립스, sts] (0) | 2021.07.27 |
---|---|
[1028 Springboot2] Validation Example (0) | 2021.05.09 |
[1028 JPA]에러모음 (0) | 2021.05.06 |
Runner 구현 (0) | 2021.05.03 |
[1028 from 스프링 백기선 JPA] 스프링데이터 Common _ 쿼리, 비동기, 도메인, QueryDSL (추후 추가. ) (0) | 2021.05.03 |