调用图
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/8f8b4734c7ee4a792d6aac91bd4c78f3.png)
映射
@Configuration
public class MyMvcConfig implements WebMvcConfigurer {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/lyear_ui_other.html").setViewName("/lyear_ui_other.html");
}
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
}
Controller
@RestController
@RequestMapping("/saleManage")
public class SalesManagementController {
@GetMapping("/customer.html")
public ModelAndView customer(Model model) {
model.addAttribute("title", "客户管理");
return new ModelAndView("/saleManage/customer");
}
}