나는이 가이드 다음 Heroku가에 Spring Boot 응용 프로그램을 배포하려고 시도하고있다 : http://codingricky.com/booting-spring-boot-into-heroku/ (감사 리키 임)봄 부팅
그것은 꽤 똑바로 앞으로 보이지만, 내 응용 프로그램이 필요로 integration.xml
을 포함
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-messaging</artifactId>
</dependency>
, 내가 Spring Integration
를 사용하지 않는 단지/STOMP 메시지 WebSocket을 다음 spring-messaging
의존성에 의해. 그래서 의존성이 필요합니다. 앱에서 부팅을 시도 할 때
Caused by: java.io.FileNotFoundException: class path resource [integration.xml] cannot be opened because it does not exist
로컬 integration.xml
은 /src/main/resource
디렉토리에 미세한 위치하는 경우 I 이클립스에서 run as -> spring boot
. 내가 그렇게 앱이 /resource
디렉토리 때 이러한 파일을 찾을 수 변경해야 할 무엇 https://spring.io/guides/gs/messaging-stomp-websocket/
:
또한 여기에 가이드와 같은 HTML의 한 페이지 및 디버그 WebSocket을 일부 자바 스크립트 파일/STOMP 메시지가 항아리로 전개 되었습니까?
사이드 노트 : 블로그의'main()'메소드는'application.properties'의'server.port = $ {PORT : 8080}'으로 대체 될 수 있습니다. –