Spring Boot add HTML and JavaScript

后端 未结 7 862
天命终不由人
天命终不由人 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:40

    just for anyone to find this page with the same issue. The way I resolved the 'script is not executed' problem was pretty simple.

    Simply replaced :

    
    

    (Test is located in 'static/js/src') Hopefully this is helpful to anyone but me :)

    cheers

提交回复
热议问题