配置Eureka时候打不开主界面404

版权声明:@CopyRight转载请注明出处 https://blog.csdn.net/LI_AINY/article/details/87277695
  1. 访问主页面时如图
    在这里插入图片描述
  2. 解决办法
    在application.yml中添加spring.freemarker.prefer-file-system-access: false
    在这里插入图片描述
    spring.freemarker.prefer-file-system-access意为是否优先从文件系统加载template
  3. 成功访问主界面
    在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/LI_AINY/article/details/87277695