这个其实不用解决,已经是正常启动了,自己写个Controller类测试一下便知
package com.xicheng.rpcdemo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class TestController {
@RequestMapping("/hello")
@ResponseBody
public String testHello() {
return "hello";
}
}
访问127.0.0.1:8080/hello即可看到打印内容