java:
package com.example.myapplication.basedata; public class Connent { public static String ipAddress = ""; public static String loginAddress = "";//请求数据类型 application/json;charset=utf-8 //post public static String registerAddress = "";//请求数据类型 application/json;charset=utf-8 //post public static String bannerAddress = ""; public static String newsClassAddress = ""; public static String newsContentAddress = ""; public static String serviceAddress = ""; }
这是就我上传文章时所用到的,写这个不过才几天,但是让我感觉真累
还有一个也需要用到的,可以省很多麻烦事的文件:
package com.example.myapplication.adapterAndbase; import com.example.myapplication.bean.NewsBean; import com.example.myapplication.beansdata.NewsData; import java.util.List; public class Const { public static NewsBean ClassBean; public static NewsBean NewsBean; }
点击查看新闻时可以用到
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)