2017-10-05 9 views
1

지시 웹 루 사이트 다음 후 : 거기에이 작업의 결과로 루 참조 (https://docs.spring.io/spring-roo/docs/2.0.x/reference/html/#using-spring-roo-create-boot-app)봄 루 2 배포

에 설명 된대로

mkdir hello 
cd hello 
roo.sh 
roo> project setup --topLevelPackage com.foo 
roo> jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY 
roo> entity jpa --class ~.domain.Timer 
roo> field string --fieldName message --notNull 
roo> repository jpa --all 
roo> service --all 
roo> web mvc setup 
roo> web mvc view setup --type THYMELEAF 
roo> web mvc controller --all --responseType THYMELEAF 
roo> web mvc controller --all --pathPrefix /api 
roo> quit 

나는

mvn package 

실행 만든 두 개의 항아리입니다.

target/foo-1.0.0.BUILD-SNAPSHOT.jar 
target/foo-1.0.0.BUILD-SNAPSHOT-exec.jar 

지침 명령

java -jar target/foo-1.0.0.BUILD-SNAPSHOT.jar 

으로 실행 말한다 그리고이 모든 잘 간다. 그러나 웹 페이지에서 목록 항목을 클릭하면 예외가 발생합니다.

2017-10-05 14:48:43.940 ERROR 1514 --- [nio-8080-exec-4] org.thymeleaf.TemplateEngine    : [THYMELEAF][http-nio-8080-exec-4] Exception processing template "timers/list": Error resolving fragment: "${content}": template or fragment could not be resolved (template: "fragments/modal-confirm-delete" - line 18, col 16) 

org.thymeleaf.exceptions.TemplateInputException: Error resolving fragment: "${content}": template or fragment could not be resolved (template: "fragments/modal-confirm-delete" - line 18, col 16) 
at org.thymeleaf.standard.processor.AbstractStandardFragmentInsertionTagProcessor.doProcess(AbstractStandardFragmentInsertionTagProcessor.java:116) ~[thymeleaf-3.0.0.RELEASE.jar!/:3.0.0.RELEASE] 
at org.thymeleaf.processor.element.AbstractAttributeTagProcessor.doProcess(AbstractAttributeTagProcessor.java:74) ~[thymeleaf-3.0.0.RELEASE.jar!/:3.0.0.RELEASE] 
at org.thymeleaf.processor.element.AbstractElementTagProcessor.process(AbstractElementTagProcessor.java:95) ~[thymeleaf-3.0.0.RELEASE.jar!/:3.0.0.RELEASE] 
at org.thymeleaf.util.ProcessorConfigurationUtils$ElementTagProcessorWrapper.process(ProcessorConfigurationUtils.java:633) ~[thymeleaf-3.0.0.RELEASE.jar!/:3.0.0.RELEASE] 
at org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1304) ~[thymeleaf-3.0.0.RELEASE.jar!/:3.0.0.RELEASE] 

참고 :이 경우 응용 프로그램에서 발생하지 않습니다

mvn spring-boot:run 

어떤 생각을 사용하여 실행 내가 무엇을 잘못하고 있는가?

답변

0

모든 단계가 정확하다고 생각합니다. 이것은 spring-roo-2.0.0.RC2의 사소한 문제입니다.

제안 사항이 있습니다. Spring JIRA Issue