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.
23 lines
581 B
23 lines
581 B
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";
|
|
}
|
|
}
|
|
|