首先将打包好的dist文件夹放到resources下
在这里插入图片描述
然后在yml文件中配置

spring:
  web:
    resources:
      static-locations: "classpath:/dist"

运行程序然后访问lip:port/index.htm即可

Logo

前往低代码交流专区

更多推荐