You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
551 B

4 months ago
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";
}
}