摘要: 在web项目中,controller的返回值一般有两种,一种是返回对应的页面(例如html页面,jsp页面),一种是返回数据(例如json格式的数据)。 1.使用@Controller注解,返回对应的页面 @Controllerpublic class UserController { @Resou 阅读全文
posted @ 2020-05-26 15:43 奔跑中的wiggins 阅读(4842) 评论(0) 推荐(0)
摘要: 1.打开IDEA,点击 +Create New Project. 开始创建一个新项目。 2.在左侧菜单找到并点击 Spring Initializr,点击next。注意,这里idea默认使用https://start.spring.io提供的在线模板,所以需要保证网络畅通。 当然也可以选择下面的Cu 阅读全文
posted @ 2020-05-26 12:09 奔跑中的wiggins 阅读(1139) 评论(0) 推荐(0)