摘要:        
意思是说此方法已过时,过时的原因就是有新的API的类替代了次方法。 这个被划去的方法仍然是可以正常使用的,就是一个提示而已。 Java内在的File类中有如下方法 @Deprecated public URL toURL() throws MalformedURLException { return    阅读全文
posted @ 2018-09-05 15:41
萧韶九成
阅读(1046)
评论(0)
推荐(1)
        
            
        
        
摘要:        
conn.setAutoCommit(false);设置事物手动提交 参数: autoCommit --》为 true表示启用自动提交模式;为 false表示禁用该模式 默认的话为自动提交,每当执行一个update ,delete或者insert的时候都会自动提交到数据库,无法回滚事务。 使用举例(    阅读全文
posted @ 2018-09-05 15:39
萧韶九成
阅读(143)
评论(0)
推荐(0)
        
            
        
        
摘要:        
解决方案一: 参考代码 http://10.100.0.8/Basis/rest/menu/getMenuAuthTree?userId=admin 思路简述:查询出所有节点,判断其是否有父节点(父ID是否为空),如果有父节点,将数据添加到对应的父节点下方 解决方案二: 参考代码:menu/getM    阅读全文
posted @ 2018-09-05 15:39
萧韶九成
阅读(443)
评论(0)
推荐(0)
        
            
        
        
摘要:        
在类中: import org.springframework.jdbc.core.JdbcTemplate; public JdbcTemplate jdbcTemplate; public void setJdbcTemplate(JdbcTemplate jdbcTemplate) { thi    阅读全文
posted @ 2018-09-05 15:38
萧韶九成
阅读(396)
评论(0)
推荐(0)
        
            
        
        
摘要:        
String video[] = {"mp4", "avi", "mov", "wmv", "asf", "navi", "3gp", "mkv", "f4v", "rmvb", "webm"};//视频的基本类型 String img[] = {"bmp", "jpg", "jpeg", "png    阅读全文
posted @ 2018-09-05 15:36
萧韶九成
阅读(308)
评论(0)
推荐(0)
        
            
        
        
摘要:        
URL url = null; String inputLine = null; HttpURLConnection httpurlconnection = null; try { //取上级电警平台的url url = new URL(ConfigManager.getInstance().get    阅读全文
posted @ 2018-09-05 15:34
萧韶九成
阅读(357)
评论(0)
推荐(0)
        
            
        
        
摘要:        
/** * * 方法说明:移植执行linux命令 * * @param cmdStr 需要执行的linux命令 * @return 执行命令后的输出(如果是启动一个进程,则可能一直无法返回) * @throws IOException * @作者及日期:liuhengheng 2014-4-8 *     阅读全文
posted @ 2018-09-05 15:34
萧韶九成
阅读(474)
评论(0)
推荐(0)
        
            
        
        
摘要:        
log import org.slf4j.Logger; import org.slf4j.LoggerFactory; private static final Logger log = LoggerFactory.getLogger(CLS_BO_OBJ.class);    阅读全文
posted @ 2018-09-05 15:33
萧韶九成
阅读(102)
评论(0)
推荐(0)
        
            
        
        
摘要:        
TD - 取配置文件的值 封装好的类:ConfigManager private static final String LOCALFJM = ConfigManager.getInstance().getConfigItem("nativeCourtCode", "");    阅读全文
posted @ 2018-09-05 15:33
萧韶九成
阅读(110)
评论(0)
推荐(0)
        
            
        
        
摘要:        
退出for循环 break用于完全结束一个循环,跳出循环体执行循环后面的语句 可以理解为continue是跳过当次循环中剩下的语句,执行下一次循环 while while( 布尔表达式 ) { //循环内容 } 只要布尔表达式为 true,循环体会一直执行下去。 do - while do { //    阅读全文
posted @ 2018-09-05 15:29
萧韶九成
阅读(235)
评论(0)
推荐(0)
        
            
        
        
摘要:        
/** * 方法说明:这个方法是干什么的 * * @param 方法参数的说明 * @return 对方法返回值的说明 * @throws 方法抛出异常的说明 * @version 模块的版本号 * @author 作者 * @see 参考方向 * @deprecated 标记是否过时 */ /**    阅读全文
posted @ 2018-09-05 15:27
萧韶九成
阅读(357)
评论(0)
推荐(0)
        
            
        
        
摘要:        
/** * * * 方法说明: 递归创建文件夹 * * @param file 文件 * @作者及日期:liurui04274 2017-12-15 * @修改人及日期: * @修改描述: * @其他: */ public static void mkDir(File file) { if (fil    阅读全文
posted @ 2018-09-05 15:26
萧韶九成
阅读(227)
评论(0)
推荐(0)
        
            
        
        
摘要:        
显示效果 Font mf = new Font(String 字体,int 风格,int 字号);字体:TimesRoman, Courier, Arial等风格:三个常量 lFont.PLAIN, Font.BOLD, Font.ITALIC字号:字的大小(磅数)设置组件当前使用的字体:setFo    阅读全文
posted @ 2018-09-05 15:25
萧韶九成
阅读(2806)
评论(0)
推荐(0)
        
            
        
        
摘要:        
合成两张大小一样的图片 //读取第一张图片 File fileOne = new File(startPath); BufferedImage ImageOne = ImageIO.read(fileOne); int width = ImageOne.getWidth();//图片宽度 int h    阅读全文
posted @ 2018-09-05 15:25
萧韶九成
阅读(172)
评论(0)
推荐(0)
        
            
        
        
摘要:        
import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * @author Gerrard */ public class TestGetWeek { public static    阅读全文
posted @ 2018-09-05 15:24
萧韶九成
阅读(495)
评论(0)
推荐(0)
        
            
        
        
摘要:        
linux乱码 可能是因为jre中没有这种字体 从文件夹中考取 C:\Windows\ 然后将考出来的文件放入/jdk/jre/lib/fonts    阅读全文
posted @ 2018-09-05 15:22
萧韶九成
阅读(121)
评论(0)
推荐(0)
        
            
        
        
摘要:        
java转换编码格式 String s2 = new String(s1.getBytes("ISO-8859-1"),"GBK"); String b1 = new String(str.getBytes("iso-8859-1","utf-8"));    阅读全文
posted @ 2018-09-05 15:22
萧韶九成
阅读(98)
评论(0)
推荐(0)
        
            
        
        
摘要:        
问题描述 org.apache.jasper.JasperException: Unable to compile class for JSP 问题原因 tomcat6不支持jdk1.8版本    阅读全文
posted @ 2018-09-05 11:19
萧韶九成
阅读(946)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号