Spring62 [SPRING] ApplicationContextException : ServletWebServerFactory 빈이 없어서 ServletWebServerApplicationContext를 시작할 수 없습니다. ApplicationContextException : ServletWebServerFactory 빈이 없어서 ServletWebServerApplicationContext를 시작할 수 없습니다. 스프링 부트를 사용하여 스프링 배치 애플리케이션을 작성했습니다. 로컬 시스템에서 명령 행과 클래스 경로를 사용하여 해당 애플리케이션을 실행하려고하면 정상적으로 실행됩니다. 그러나 리눅스 서버에서 실행하려고했을 때 예외적으로 다음과 같이 표시됩니다. Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationCo.. 2020. 1. 20. 스프링부트(Spring Boot) HTTPS 구축, HTTP2, 다중 커넥터 설정 | 스프링부트(Spring Boot) HTTPS 구축 스프링부트에서 HTTPS 설정법은 다음과 같습니다. Terminal 창에 다음과 같이 커맨드를 입력하여 keystore 파일을 하나 생성합니다. keytool -genkey -alias spring -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 4000 application.properties에 위에서 설정한 정보를 입력합니다. 위 https로 설정된 스프링 부트 어플리케이션에 http://localhost:8080/ 로 요청했을 경우에는 요청을 받지 않는다는 브라우져 메세지가 뜨게 됩니다. 그렇다면 https 프로토콜로 위와 같은 요청을 했을 경우(https:.. 2020. 1. 20. [Spring-boot] Tomcat오류 org.apache.catalina.LifecycleException 아래의 오류의 경우 해결 방법은 1월 20, 2020 2:53:09 오전 org.apache.catalina.core.StandardService startInternal 정보: Starting service [Tomcat] 1월 20, 2020 2:53:09 오전 org.apache.catalina.core.StandardEngine startInternal 정보: Starting Servlet engine: [Apache Tomcat/9.0.30] 1월 20, 2020 2:53:09 오전 org.apache.catalina.core.ContainerBase startInternal 심각: A child container failed during start java.util.concurrent.Exec.. 2020. 1. 20. [Spring-boot]스프링 부트 자동 설정 @ConditionalOnMissingBean, @ConfigurationProperties | 사용자(Custom) Autoconfigure 클래스 선언의 문제점 @Configuration 어노테이션을 등록하여 Autoconfigure 스프링 부트 자동 설정을 만들었지만 여기에 문제점이 있습니다. @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication application = new SpringApplication(Application.class); application.setWebApplicationType(WebApplicationType.NONE); application.run(args); } @Bean public Saelobi saelobi(){ .. 2020. 1. 20. [Spring-boot]스프링 부트 자동 설정 만들기 : Starter, AutoConfigure 스프링 부트 자동 설정 이해 스프링 부트는 스프링 프레임워크에서 어플리케이션을 만들 때 주로 사용하는 설정들을 자동으로 설정합니다. 이 기능은 자바의 main 진입점에 @SpringBootApplication을 붙임으로서 사용할 수 있습니다. @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication application = new SpringApplication(Application.class); application.run(args); } } @Configuration @ComponentScan @EnableAutoConfiguration public class Ap.. 2020. 1. 19. SpringBoot -'url'오류 잡기 *************************** 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 data.. 2020. 1. 19. 이전 1 ··· 4 5 6 7 8 9 10 11 다음