07 2016 档案

摘要:1、问题 在使用slf4j+log4j时,发现输出的日志总是在DEBUG级别,而且格式非logback.xml中给出的格式。 logback.xml内容如下: <?xml version="1.0" encoding="UTF-8"?> <configuration> <!--定义日志文件的存储地址 阅读全文
posted @ 2016-07-29 15:06 hongweigg 阅读(81) 评论(0) 推荐(0)
摘要:1、问题 pom.xml中报Missing artifact 2、解决: (1) 在pom.xml中添加如下依赖: <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.2.5< 阅读全文
posted @ 2016-07-28 11:38 hongweigg 阅读(96) 评论(0) 推荐(0)
摘要:在Web应用中经常会发现碰到被编码的字符串,看起来很费劲,这里提供一个简单的编解码程序,可以方便地查看原码或转码: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk"> <title>unesc 阅读全文
posted @ 2016-07-07 19:22 hongweigg 阅读(15) 评论(0) 推荐(0)
摘要:客户端解析URL的工具函数(来自网络),用起来很不错: function parseURL(url) { var a = document.createElement('a'); a.href = url; return { source: url, protocol: a.protocol.rep 阅读全文
posted @ 2016-07-01 10:09 hongweigg 阅读(55) 评论(0) 推荐(0)