我的SpringBoot控制器工作得很好,只是我不能为home目录创建映射。我试过了:public class MyController { public ModelAndView searchPageModelAndView model = new ModelAndView(); return model;
贝娄我正在尝试创建一个简单的groovy文件,该文件将公开一个简单的服务,并通过实现来处理404错误(为了避免白带错误页面,我可以注入一个HttpServletRequest并检索状态,但这不是我现在要考虑的问题package org.test
@Grab("spring-boot-autoconfigure-processor")
@RestControllerpublic class He
我在尝试基于文档的假客户端退路时遇到了问题。@FeignClient(name = "myFeign", fallback = MyFeignClientFallback.class) @PostMapping(“/test")}@Component
public class MyFeignClient
web正确显示静态内容index.html,但是每当我试图路由到/greeting url (由我的控制器指定)时,我就会得到404错误,如下所示但是,我的代码结构如下并配置了applicaiton.properties;
public class GreetingController { <artifactId&g
我正在尝试运行springboot应用程序,但是得到了404not found错误。;
public class HomeController {
public String getHome() {:spring-boot-gradle-plugin:${springBootVersion}")}
apply plugin: 'java