package com.kelp.business; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; /** * 前端访问地址 */ @Controller public class IndexController { private final String prefix = "business"; /** * 主页 */ @RequestMapping({"/" + prefix, "/" + prefix +"/index"}) public String index(Model model) { model.addAttribute("prefix", "/" + prefix); return prefix + "/index"; } }