You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to change the resources/templates folder to resources/views in a spring boot project.
However, if I change the templates folder to a different name (I use views), the Controller does not recognize the folder. When I run the project and execute the Request, the *.html file is loaded normally and displayed on the screen. However, it is inconvenient because a warning (or error) keeps appearing in the IntelliJ IDE. Please tell me how to solve it.
The resources/application.yaml file is set as follows:
callor
changed the title
I want to change the resources/templates folder to resources/views in a spring boot project.
Problem changing templates folder
Mar 19, 2025
I want to change the resources/templates folder to resources/views in a spring boot project.
However, if I change the templates folder to a different name (I use views), the Controller does not recognize the folder. When I run the project and execute the Request, the *.html file is loaded normally and displayed on the screen. However, it is inconvenient because a warning (or error) keeps appearing in the IntelliJ IDE. Please tell me how to solve it.
The
resources/application.yaml
file is set as follows:The views folder of the project is as follows:
The text was updated successfully, but these errors were encountered: