2017-10-05 1 views
1

Nachdem im Anschluss an die Anweisungen Web-Roo Website:Frühling Roo 2 Bereitstellung

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 

Ich betreibe

mvn package 

wie in Roo Referenz beschrieben (https://docs.spring.io/spring-roo/docs/2.0.x/reference/html/#using-spring-roo-create-boot-app)

Als Ergebnis dieser dort Aktion sind zwei Gläser erstellt.

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

Anleitung sagt es mit dem Befehl

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

Und das alles gut geht, zu laufen. Aber nachdem ich auf den Listeneintrag auf der Webseite geklickt habe, bekomme ich eine Ausnahme.

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] 

HINWEIS: dies bei Anwendung tritt nicht ausgeführt mit

mvn spring-boot:run 

Jede Idee, was ich falsch mache?

Antwort

0

Ich denke, dass alle Ihre Schritte korrekt waren. Dies ist ein kleines Problem von spring-roo-2.0.0.RC2.

Ich habe einen Vorschlag in der Spring JIRA Issue

Verwandte Themen