SpringBoot02_构建rest工程完成第一个controller类

1.新建一个package包并在此包中新建java类,如下图

2.在浏览器中输入url地址查看结果:

原文地址:https://www.cnblogs.com/imlvbu/p/7873019.html