Giter Club home page Giter Club logo

Comments (4)

dsyer avatar dsyer commented on June 11, 2024 2

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.

CarloAtDexels avatar CarloAtDexels commented on June 11, 2024

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.

dsyer avatar dsyer commented on June 11, 2024

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.

CarloAtDexels avatar CarloAtDexels commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.