摘要: 通过URL传递参数与上面的URL不同,上面的URL中均需写明参数名和对应参数值,这里的URL传递参数,仅需要在地址栏输入参数值,然后后台自动匹配到对应的参数名。 springMVC通过使用处理器映射和@PathVariable注解的组合来获取URL参数。 首先通过处理器映射可以定位参数的位置和名称, 阅读全文
posted @ 2021-07-31 19:09 小白龙白龙马 阅读(183) 评论(0) 推荐(0)
摘要: 控制器: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPar 阅读全文
posted @ 2021-07-31 18:05 小白龙白龙马 阅读(216) 评论(0) 推荐(0)
摘要: 控制器: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPar 阅读全文
posted @ 2021-07-31 17:59 小白龙白龙马 阅读(406) 评论(0) 推荐(0)
摘要: 控制器: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPar 阅读全文
posted @ 2021-07-31 17:15 小白龙白龙马 阅读(233) 评论(0) 推荐(0)
摘要: 控制器: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestPar 阅读全文
posted @ 2021-07-31 16:40 小白龙白龙马 阅读(110) 评论(0) 推荐(0)
摘要: 控制器页面: package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Response 阅读全文
posted @ 2021-07-31 16:15 小白龙白龙马 阅读(89) 评论(0) 推荐(0)
摘要: 控制器——控制页面访问 package com.awaimai.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Res 阅读全文
posted @ 2021-07-31 15:53 小白龙白龙马 阅读(50) 评论(0) 推荐(0)
摘要: python服务器: from flask import Flask,request,make_response app = Flask(__name__) @app.route('/') def index(): resp = make_response("123456abc") resp.set 阅读全文
posted @ 2021-07-31 13:33 小白龙白龙马 阅读(135) 评论(0) 推荐(0)
摘要: python服务器: from flask import Flask,request,make_response app = Flask(__name__) @app.route('/') def index(): resp = make_response("123456abc") resp.hea 阅读全文
posted @ 2021-07-31 13:09 小白龙白龙马 阅读(852) 评论(0) 推荐(0)