Spring boot: configure it to find the webapp folder

后端 未结 2 1959
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 15:55

By default, Spring Boot looks in my src/main/webapp folder to find my html files. Where can I change the settings for Spring Boot if I use another folder to put the html fil

2条回答
  •  Happy的楠姐
    2020-12-08 16:05

    AS mentioned above, jar packaging ignores webapp content. If you still want to include the contents inside webapp folder, you need to specify this explicitly in maven POM.xml configuration as below -

    
            
                
                    src/main/webapp
                
                
                    src/main/resources
                
             ...
    

提交回复
热议问题