Spring Boot add HTML and JavaScript

后端 未结 7 793
天命终不由人
天命终不由人 2020-12-24 08:50

I\'m trying to run Spring boot app with some HTML5 and JavaScript and I have a problem.

I have project structure like this:

My Spring MVC Controller

7条回答
  •  有刺的猬
    2020-12-24 09:30

    I think you need to move the js directory (and contents) into the static directory (rather than having it in templates).

提交回复
热议问题