@Override
    public void addViewControllers(ViewControllerRegistry registry) {
    //qzf 打包为lib 访问不到 改为 EmptyController
    //registry.addViewController(“/“).setViewName(“forward:/web/home/shopIndex”);
    _registry.setOrder(Ordered.**_HIGHEST_PRECEDENCE**);
    //registry.addViewController(“/error/404”).setViewName(“/admin/page_error/error_404.html”);
    }

    public class MVCConfiguration implements WebMvcConfigurer
    @RestController
    public class EmptyController {
    @RequestMapping(value=“/“,name=“”)
    public ModelAndView empty() {
    ModelAndView mv = new ModelAndView(“redirect:web/home/shopIndex”);
    return mv;
    }
    }
    }