본문 바로가기

카테고리 없음

nohup.out 실행시 오류

반응형
./deploy.sh: line 48: -Dspring.profiles.active=real: command not found

 

며칠을 다 해봐도 안되어 가지고 

deploy.sh 파일에 있는 Dspring.profiles.active=real 문구를 지움.

그래도 저문구 나온 후에 스프링 실행은 됨 그런데 그 후에 

- cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/w@@@

위와 같은 에러가 뜨면서 종료됨. 스프링 시큐리티를 설정하는 클래스에서 난 에러라고 한다. 
SecurityConfig.java 에가서 보니 내가 profile을 추가를 안해줬다. 일단 추가해준 후 다시 실행하니 그 오류는 없어졌다.

 

 

반응형