- 博客(9)
- 收藏
- 关注
原创 针对兼容https和http发送请求公共util封装
package com.yang.aiqiqi.util;import java.io.BufferedReader;import java.io.InputStream;import java.io.InputStreamReader;import java.io.OutputStream;import java.net.HttpURLConnection;import java....
2020-03-31 09:17:20 376
原创 关于weblogic虚拟路径和tomcat虚拟路径问题
一、weblogic的虚拟路径配置以及注意事项: 1、WEB-INF/weblogic.xml中的配置信息 <!--虚拟路径映射:带项目名--> <context-root>/</context-root><!--虚拟路径映射:不带项目名--> <context-root>/pr...
2018-08-13 17:22:30 769
原创 数字和罗马数字的的转换
package com.hd.web;/** * 数字和罗马数字的的转换 * @author yang * */public class yang { public static void main(String[] args) { System.out.println(intToRoman(99)); } public static String intToRoman(int num)...
2018-05-07 10:19:57 542
原创 斐波那契数列 -递归算法
/** * 返回斐波那契数第n个值,n从0开始 * 实现方式,基于递归实现 * @param n * @return * @author mhy2011@163.com * @since 2015年8月18日上午9:41:30 */ public static int getFib(int n){ ...
2018-05-07 10:18:45 167
原创 关于java对象转xml格式的util类
package com.xd;import java.io.StringWriter;import javax.xml.bind.JAXBContext;import javax.xml.bind.JAXBException;import javax.xml.bind.Marshaller;import javax.xml.bind.Unmarshaller;import org.w3c.dom....
2018-05-07 08:39:15 186
原创 jsp生成校验码
pageEncoding="UTF-8"%> int width = 80; int height = 32; //create the image BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
2017-09-01 10:49:53 283
原创 java中一些有关乱码问题
常见的乱码问题及解决方案产生乱码的根本原因:浏览器的使用的编码与服务器使用的编码。1.请求request时乱码: Post请求时: //1.1post应用默认 request.setCharacterEncoding("utf-8");Get请求时: //1.2get方
2016-11-08 11:54:17 184
原创 web中的path问题
路径问题: A: 客户端路径:那个斜杠("/")表示服务器的根(tomcat的webapps目录) 重定向 html中的form的action的值 html中的a标签的href的值 link标签的href的值 img中的src的值 javascript中的src的值B:服务器端路径:那个斜杠("/")
2016-11-08 11:46:48 544
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人