- 博客(9)
- 收藏
- 关注
翻译 springmvc 如何读写properties文件
1、在spring.xml里加上这个配置<bean id="propertyPlaceHolderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="systemPropertiesModeName" ...
2018-05-08 15:05:10 4693 1
转载 spring mvc获取到的参数附带特殊符号,接收后被转义的处理方法
WEB开发时,在前端通过get / post 方法传递参数的时候 如果实参附带特殊符号,后端接收到的值中特殊符号就会被转义例如该请求: http://localhost:10001/demo/index.do?name=张三(1)注:中文()不会出现此种情况 后台就收到的实际 name 值为: 张三&#40;1&#41;&#40;其实为html中 ( 符...
2018-05-08 10:03:32 18336 2
原创 JAVA解析百度天气JSON字符串
以解析百度天气为例public static void main(String[] args) throws IOException { //回复天气信息 String ak = "自己的AK"; String getURL = "http://api.map.baidu.com/telematics/v3/weather?output=json
2015-12-03 10:31:30 525
原创 JAVA 进行https传输中文乱码解决
以百度天气接口测试public static void main(String[] args) throws IOException { String ak = "自己的AK"; String getURL = "http://api.map.baidu.com/telematics/v3/weather?output=json&location=西安&ak="
2015-12-03 10:26:56 2329
原创 jsp动态生成table
function generate(){ var line = document.getElementById("line").value;//获取行数 var row = document.getElementById("row").value;//获取列数 var div = document.getElementById("tab");//获取到存放生成ta
2014-07-22 17:22:07 4418
原创 利用监听器实现网站在线人数统计
ServletContextListenerImpl.java代码public class ServletContextListenerImpl implements ServletContextListener {public void contextDestroyed(ServletContextEvent event) {ServletContext application =
2014-07-22 16:15:14 1204
原创 在servlet通过xml文件访问properties文件
public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {response.setContentType("text/html");PrintWriter out = response.getWriter();
2014-07-21 17:11:02 480
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人