Comments (4)
Works for me (Spring Boot configures the view resolver, and the controller in this case is not a @RestController
). You are using the code from the “complete” sample, right?
from gs-serving-web-content.
I used the complete sample, added the maven pom and then run Application. But if it occurs only for me I'll close this issue.
from gs-serving-web-content.
When you say “added the maven pom” what does that mean exactly? There is already a pom.xml in the complete sample. If you use it, I expect it will work.
from gs-serving-web-content.
I got it to work and figured out what went wrong!
I used the IntelliJ functionality VCS -> Checkout from version control -> Git to add an existing project. This does not add the pom.xml. Also the folder structure is different from the complete sample. It sets the main folder as the project root. Thymeleaf tries to search for the template under src/main/resources/templates when the template is under main/resources/templates. This caused the org.thymeleaf.exceptions.TemplateInputException
from gs-serving-web-content.
Related Issues (19)
- missing spring.thymeleaf.cache=false HOT 4
- Linkfix for thymeleaf link HOT 1
- unable to call web application from the spring boot to send params through url HOT 1
- Modify pom.xml so ./mvnw works HOT 3
- https://spring.io/guides/gs/serving-web-content/ Broken HOT 14
- javax.servlet.ServletException: Circular view path [greeting]: would dispatch back to the current handler URL [/greeting] again. HOT 11
- Files are empty, please check. HOT 2
- Make it clearer that the guide uses Thymeleaf HOT 1
- Circular view path [greeting]: would dispatch back to the current handler URL [/greeting] again. HOT 8
- Mapping logging broken HOT 1
- Broken link https://spring.io/understanding/view-templates HOT 5
- The document title should be changed as Serving Web Content with Spring Boot HOT 4
- why when i new create project with idea it appears cannot resolve MVC view but your project is ok
- ViewResolver error (Java17+springboot2.6.1~2.6.3, Java11+springboot3.6.2~3.6.3) HOT 1
- Is the content in README.adoc broken? ("`) HOT 1
- dependency versions HOT 3
- This guide sucks
- Can't upgrade to Spring Boot 1.0.0.RC3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gs-serving-web-content.