1) vuejs 增加pom.xml
2) 通过maven-resources-plugin 插件将vuejs 生成的文件 npm install ,
3)通过maven-resources-plugin 插件打包成jar;
4) Spring Boot 工程引入jar
增加配置
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler(web + "/**").addResourceLocations("classpath:/xxx”);
}