반응형
1. 찾아보면 IntelliJ에서만 나타난다고 한다..
Error running 'Application': Command line is too long.
Shorten command line for Application or also for Spring Boot default configuration.
더보기
1-1. 위 빨간색 에러에서 파란색 부분을 눌러서 진입한다.
1-2. 저걸 놓쳤다면 실행시키면 생기는 프로젝트 Run 되고 있는거 확인 할 수 있는 곳?(메뉴에서 들어가는건 찾지 못했다.) 에서
Edit Configurations 를 눌러서 진입한다.
2. run할 프로젝트를 선택 후
Shorten command line 을
classpath file 로 선택해준다.
apply
그럼 잘 실행된다.
2. driverclassname error
본론만 말하자면 properties 파일에서 무엇인가 문제가 있었던 것이다.
properties를 좀 더 잘 보자 오타.. 안습..
2020-01-14 16:26:52.727 ERROR 28420 --- [ main] com.zaxxer.hikari.HikariConfig : Failed to load driver class org.postgresql.Driver from HikariConfig class classloader java.net.URLClassLoader@27f8302d
2020-01-14 16:26:52.731 WARN 28420 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource
2020-01-14 16:26:52.850 INFO 28420 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2020-01-14 16:26:52.865 INFO 28420 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-01-14 16:26:52.874 ERROR 28420 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
Property: driverclassname
Value: org.postgresql.Driver
Origin: "driverClassName" from property source "source"
Reason: Failed to load driver class org.postgresql.Driver in either of HikariConfig class loader or Thread context classloader
Action:
Update your application's configuration
Process finished with exit code 1
반응형
'프로젝트 설정' 카테고리의 다른 글
[REDIS] Redis 설치 (for Windows 64bit) (0) | 2021.04.19 |
---|---|
[ubuntu] 프로젝트 배포 및 운영(python/aws/linux/git) (0) | 2021.04.14 |
Chrome 80 Samesite 쿠키 정책 (2020.2.4) (0) | 2020.03.16 |
node-gyp rebuild error (window) (0) | 2020.01.13 |
python 2.7 install (window) 왕초보 주인용 (0) | 2020.01.13 |