<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[wangts的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/wangts</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; wangts]]></copyright><item><title><![CDATA[excel指定行新增一列的办法]]></title><link>https://blog.csdn.net/wangts/article/details/80473863</link><guid>https://blog.csdn.net/wangts/article/details/80473863</guid><author>wangts</author><pubDate>Sun, 27 May 2018 23:03:32 +0800</pubDate><description><![CDATA[如图：    a  b  c    1  2  3    你  我  她 选定2复制，选定2插入复制，右移：    a  b  c       1  　  2  3    你  我  她    要这样的效果，而非如下效果：    a  　  b  c    1  　  2  3    你  　  我  她 ...]]></description><category></category></item><item><title><![CDATA[httpclient中文乱码问题]]></title><link>https://blog.csdn.net/wangts/article/details/51096488</link><guid>https://blog.csdn.net/wangts/article/details/51096488</guid><author>wangts</author><pubDate>Fri, 08 Apr 2016 14:28:26 +0800</pubDate><description><![CDATA[MultipartEntityBuilder builder = MultipartEntityBuilder.create();
        ContentType contentType = ContentType.create("text/plain",Charset.forName("UTF-8"));//解决中文乱码
        builder.addTextBody("project", "我看看",contentType);]]></description><category></category></item><item><title><![CDATA[android真机 usb调试 访问电脑本地web服务地址]]></title><link>https://blog.csdn.net/wangts/article/details/50618597</link><guid>https://blog.csdn.net/wangts/article/details/50618597</guid><author>wangts</author><pubDate>Mon, 01 Feb 2016 14:55:24 +0800</pubDate><description><![CDATA[真机usb连接，访问web服务器问题]]></description><category></category></item><item><title><![CDATA[eclipse cdt Program "make" not found in PATH]]></title><link>https://blog.csdn.net/wangts/article/details/12872573</link><guid>https://blog.csdn.net/wangts/article/details/12872573</guid><author>wangts</author><pubDate>Sat, 19 Oct 2013 17:19:35 +0800</pubDate><description><![CDATA[eclipse cdt插件，开发c/c++程序，编译时报错Program "make" not found in PATH
经查C:\MinGW\bin下确实无make.exe，有mingw32-make.exe，
更改名字后，可以编译、运行。
但是有个make：***错误，无错误描述。
再google
Make is UNIX utility to help building a pr]]></description><category></category></item><item><title><![CDATA[普通用户执行需要root权限的命令的方法]]></title><link>https://blog.csdn.net/wangts/article/details/8622612</link><guid>https://blog.csdn.net/wangts/article/details/8622612</guid><author>wangts</author><pubDate>Thu, 28 Feb 2013 16:33:30 +0800</pubDate><description><![CDATA[我们经常会需要让普通用户干需要root权限的活，如普通用户用date命令修改系统日期等。date命令需要root权限才能执行，解决这个问题又2个方法：
方法一：
由root用户执行chmod 4755 /bin/date
备注：也就是给date命令增加s权限位即设置setuid(4000)，这样普通用户就可以执行date命令了，缺点也是很明显的，相当于去掉了date命令的root权限限制。]]></description><category></category></item><item><title><![CDATA[google搜索结果无法打开]]></title><link>https://blog.csdn.net/wangts/article/details/8243826</link><guid>https://blog.csdn.net/wangts/article/details/8243826</guid><author>wangts</author><pubDate>Fri, 30 Nov 2012 15:39:29 +0800</pubDate><description><![CDATA[因为每次google搜索出的结果都无法打开，最近三个月都没有用google了，baidu搜索结果又很不给力，很是郁闷。
今天突然想到三个月前在google首页点了登入，后来每次使用google都会自动登录我的gmail账户，每次都是https协议。
然后恍然大悟，然后退出google账户。回归到http访问google，果然正常了。]]></description><category></category></item><item><title><![CDATA[android R.java资源文件不自动生成的原因]]></title><link>https://blog.csdn.net/wangts/article/details/7649811</link><guid>https://blog.csdn.net/wangts/article/details/7649811</guid><author>wangts</author><pubDate>Sun, 10 Jun 2012 12:57:14 +0800</pubDate><description><![CDATA[android项目 R.java资源文件不自动生成的原因有多种：
1. SDK有错误或找不到SDK
2. default.propites文件中定义的target=android-8与eclipse设置的不一致
3. 项目中有错误，xml文件错误，资源文件名不合法：有大写字符，数字开头，有空格等
其他 如AndroidManifest.xml里如果指定了
 android:minSdkV]]></description><category></category></item><item><title><![CDATA[android宽屏自适应]]></title><link>https://blog.csdn.net/wangts/article/details/7059150</link><guid>https://blog.csdn.net/wangts/article/details/7059150</guid><author>wangts</author><pubDate>Sat, 10 Dec 2011 10:42:13 +0800</pubDate><description><![CDATA[在manifest配置文件中加入
 


android:normalScreens="true" 
android:largeScreens="true"
android:anyDensity="false">]]></description><category></category></item><item><title><![CDATA[下载jar包，当不知道一个类属于哪个jar包时]]></title><link>https://blog.csdn.net/wangts/article/details/6198261</link><guid>https://blog.csdn.net/wangts/article/details/6198261</guid><author>wangts</author><pubDate>Mon, 21 Feb 2011 18:01:00 +0800</pubDate><description><![CDATA[<br />http://www.jarvana.com/jarvana/<br />输入需要下载jar包的类，查找jar包，下载]]></description><category></category></item><item><title><![CDATA[java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI(xxx) needs 2.1 API]]></title><link>https://blog.csdn.net/wangts/article/details/6116371</link><guid>https://blog.csdn.net/wangts/article/details/6116371</guid><author>wangts</author><pubDate>Tue, 04 Jan 2011 20:58:00 +0800</pubDate><description><![CDATA[<br />在使用webservice,mule esb等需要jaxb的项目里经常会出现 JAXB 2.0 API is being loaded from the bootstrap classloader这个错误，按照打出的信息Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/stan]]></description><category></category></item><item><title><![CDATA[如何知道一个类在运行时是哪个jar包里的类]]></title><link>https://blog.csdn.net/wangts/article/details/6104985</link><guid>https://blog.csdn.net/wangts/article/details/6104985</guid><author>wangts</author><pubDate>Wed, 29 Dec 2010 14:37:00 +0800</pubDate><description><![CDATA[<br />当项目中有多个jar包，且有多个jar里包含同一个类时，有时需要知道运行时是用的哪个jar里的类，方法如下：<br />System.out.println(MyClass.class.getProtectionDomain());<br />如<br />System.out.println(org.codehaus.spice.jndikit.NamingProvider.class.getProtectionDomain());]]></description><category></category></item><item><title><![CDATA[org.hibernate.hql.ast.QuerySyntaxException: unexpected token 的解决]]></title><link>https://blog.csdn.net/wangts/article/details/5785572</link><guid>https://blog.csdn.net/wangts/article/details/5785572</guid><author>wangts</author><pubDate>Tue, 03 Aug 2010 16:19:00 +0800</pubDate><description><![CDATA[今天使用hibernate，

String sql = "select count(obj.id) from " + className+" obj";出现org.hibernate.hql.ast.QuerySyntaxException: unexpected token异常，google 一阵子没效果。

后来把实体类所在的object包改成其他名字如ot，问题解决，莫非使用hibernate，实体类不能放在object包
]]></description><category></category></item><item><title><![CDATA[struts带参数跳转]]></title><link>https://blog.csdn.net/wangts/article/details/5746633</link><guid>https://blog.csdn.net/wangts/article/details/5746633</guid><author>wangts</author><pubDate>Mon, 19 Jul 2010 15:47:00 +0800</pubDate><description><![CDATA[ActionForward forward = new ActionForward(mapping.findForward("success").getPath()+"?id="+idStr);
]]></description><category></category></item><item><title><![CDATA[ajax提交参数乱码问题]]></title><link>https://blog.csdn.net/wangts/article/details/5719182</link><guid>https://blog.csdn.net/wangts/article/details/5719182</guid><author>wangts</author><pubDate>Wed, 07 Jul 2010 17:37:00 +0800</pubDate><description><![CDATA[ajax提交的数据在后台出现乱码。

解决办法：用escape或 encodeURIComponent函数编码中文数据，后台不需要解码
]]></description><category></category></item><item><title><![CDATA[window.close()自动关闭窗口时提示的解决]]></title><link>https://blog.csdn.net/wangts/article/details/5613487</link><guid>https://blog.csdn.net/wangts/article/details/5613487</guid><author>wangts</author><pubDate>Fri, 21 May 2010 11:05:00 +0800</pubDate><description><![CDATA[1.window.close()自动关闭窗口时，会出现‘试图关闭’的提示，在window.close()前加上window.open(,_self)就不再有提示啦2.window.opener=null可以解决打开新窗口后，旧窗口进度栏一直显示进度的问题。]]></description><category></category></item><item><title><![CDATA[浏览器打开页面失败的处理]]></title><link>https://blog.csdn.net/wangts/article/details/4428246</link><guid>https://blog.csdn.net/wangts/article/details/4428246</guid><author>wangts</author><pubDate>Sun, 09 Aug 2009 17:44:00 +0800</pubDate><description><![CDATA[用浏览器打开页面，有时会出现打开失败的情况，原因不明。据我的经验，把http://www.w3.org/1999/xhtml">改成，即去掉命名空间后问题不再出现。]]></description><category></category></item><item><title><![CDATA[hibernate 模糊查询中查询条件包含单引号的问题]]></title><link>https://blog.csdn.net/wangts/article/details/4418555</link><guid>https://blog.csdn.net/wangts/article/details/4418555</guid><author>wangts</author><pubDate>Thu, 06 Aug 2009 14:55:00 +0800</pubDate><description><![CDATA[使用hibernate进行模糊查询时，比如 colname like %keyword%，如果keyword包含单引号，很明显有语法错误，但进行转义后执行仍然是错误的。通过Google，baidu终于查到把一个但引号替换成两个单引号就可以正常运行： colname like %its a dog%  改成 colname like %its a dog%  ，]]></description><category></category></item><item><title><![CDATA[JFreeChart图片里的中文在linux下显示为方块的解决办法]]></title><link>https://blog.csdn.net/wangts/article/details/4370171</link><guid>https://blog.csdn.net/wangts/article/details/4370171</guid><author>wangts</author><pubDate>Wed, 22 Jul 2009 13:24:00 +0800</pubDate><description><![CDATA[google了N多资料，终于找到了一篇能解决问题的文章：http://ferreousbox.javaeye.com/blog/395176 两个步骤：1. 把windows系统下的WINDOWS/Fonts路里的宋体字库文件 simsun.ttc 拷贝到linux系统的java_home/jre/lib/fonts/下。 2. 修改项目里生成图片的代码：在ChartU]]></description><category></category></item><item><title><![CDATA[通过hibernate session.connection()获得数据库连接时,导致的查询缓慢甚至假死机问题]]></title><link>https://blog.csdn.net/wangts/article/details/4332029</link><guid>https://blog.csdn.net/wangts/article/details/4332029</guid><author>wangts</author><pubDate>Wed, 08 Jul 2009 17:51:00 +0800</pubDate><description><![CDATA[在使用hibernate的应用中，如果需要直接使用java.sql.Connection,一般我们是通过hibernate的session.connection()获得的，然后session.close(),但connection是不需要close的。操作一段时间后，查询会很慢，好像死机了一样。原因是查询时，session无法从连接池里获取连接，因为连接已经达到配置的最大值。解决办法：]]></description><category></category></item><item><title><![CDATA[mysql备份与恢复]]></title><link>https://blog.csdn.net/wangts/article/details/4236049</link><guid>https://blog.csdn.net/wangts/article/details/4236049</guid><author>wangts</author><pubDate>Tue, 02 Jun 2009 15:04:00 +0800</pubDate><description><![CDATA[逻辑备份:1.mysqldump(数据导出工具)  mysqldump options db_name[table_name]//备份单个数据库  mysqldump 选项 --database database-name1 [databases-name2]....//备份指定的数据库一个或者多个  mysqldump 选项 --all-database //备份所有的数据库  链接选项:  -]]></description><category></category></item></channel></rss>