[오류일지]Error creating bean with name 에러 해결 PropertySourcesPlaceholderConfigurer
문제 : PropertySourcesPlaceholderConfigurer
svn에서 import한 프로젝트를 셋팅하는 과정에서 톰캣을 실행하니 아래와 같은 오류가 발생했다.
Error creating bean with name ‘org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0’: Cannot resolve reference to bean ‘properties’ while setting bean property ‘properties’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘properties’ available at
원인과 해결
properties를 찾지못해서 bean을 생성하지 못한 경우로 톰캣서버에 연결해줘서 환경별 설정이 가능하도록 해주면 된다.
- 톰캣서버를 더블클릭한 후 General Information 에서 아래 이미지처럼
Open launch configuration을 클릭한다
- Arguments 탭에서 아래 부분을 복붙하여 넣어준 뒤 Apply하고 OK하면 끝!
1 | -Dspring.profiles.active=local |
해결!
![[OS/WINDOW]배포후 서버재시작에 batch와 윈도우 스케줄러 활용하기](https://cdn.pixabay.com/photo/2012/03/04/00/50/board-22098_960_720.jpg)
![[블로그]헥소테마에서 댓글기능 facebook에서 utterances로 변경하기](https://miro.medium.com/max/1600/1*aOv6h3h_v9PQWa03zGACnw.png)