文章列表
引用struts2、hibernate、spring所需jar包
struts-core-2.x.x.jar ----struts核心包
xwork-core-2.x.x.jar -----struts构建
ognl-2.6.x.jar ----对象导航语言
freemarker-2.3.x.jar ------struts2的ui标签的模板使用
commons-fileupload-1.2.x.jar ----文件上传组件 2.1.6版本后需加入此文件
struts-spring-plugin-2.x.x.jar ---用于struts2继承spring的插件
...
jdom学习:读取xml文件
- 博客分类:
- xml文档解析
用 JDOM读取XML文件需先用org.jdom.input.SAXBuilder对象的build()方法创建Document对象,然后用 Document类、Element类等的方法读取所需的内容。
<?xml version="1.0" encoding="UTF-8"?>
<HD>
<disk name="C">
<capacity>8G</capacity>
<directories>200</director ...
MySQL命令行出现乱码解决
- 博客分类:
- 数据库
问题:使用命令行查询数据库里的数据出现乱码。
解决:
[sql]
set names utf8;
--则等同于
www.2cto.com
set character_set_client=utf8;
set character_set_results=utf8;
set character_set_connection=utf8;
如果仍出现乱码
执行set names gbk;或者set names gb2312;