![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
请求
zzk_01
这个作者很懒,什么都没留下…
展开
-
JAVA后台执行接口http请求返回Json
http请求后台执行代码如下 public static String RequestJSON(String url) { // 发送http请求返回json StringBuilder json = new StringBuilder(); try { URL httpurl= new URL(url); URLConnection yc = httpurl.openConn...原创 2019-02-18 16:21:24 · 1079 阅读 · 0 评论 -
struts2 前端使用action传参
一丶url :localhost:8080/StudentSystem/role_list.action?username=kk 通过url传参数,只需要在请求的action类中添加一个相同的属性名,private String username,并且在类中定义属性的get()set()方法,在进行请求的时候会自动接收该属性。 二丶或者通过ServletActionContext获取//导入imp...原创 2019-03-08 10:01:40 · 348 阅读 · 0 评论