摘要: @RequestMapping# 当标注在方法上的时候,代表的是此方法的请求地址 Copy @RequestMapping("/hello") public void hello(){ xxxxxx return "hellodemo"; } 此时我们访问localhost/hello 请求就可以跳 阅读全文
posted @ 2020-05-06 14:06 我是小杨 阅读(190) 评论(0) 推荐(0)
摘要: 数据输出# 将数据传输给页面 新项目的环境# 新建一个工程moudle,创建一个demo测试一下环境是否正常 web.xml Copy <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns 阅读全文
posted @ 2020-05-06 14:04 我是小杨 阅读(256) 评论(0) 推荐(0)