<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[g084120209的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/g084120209</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; g084120209]]></copyright><item><title><![CDATA[org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned b]]></title><link>https://blog.csdn.net/g084120209/article/details/53426906</link><guid>https://blog.csdn.net/g084120209/article/details/53426906</guid><author>g084120209</author><pubDate>Thu, 01 Dec 2016 21:28:36 +0800</pubDate><description><![CDATA[使用mybatis分组查询，sql语句是：SELECT count(*) from t_parent_select_course sps  LEFT JOIN  t_school  s  ON  sps.stu_schoolId=s.id

 WHERE  s.school_name  LIKE '%小学%'  AND  sps.flag='1' GROUP BY sps.stu_school]]></description><category></category></item><item><title><![CDATA[Column 'id' in where clause is ambiguous]]></title><link>https://blog.csdn.net/g084120209/article/details/53423019</link><guid>https://blog.csdn.net/g084120209/article/details/53423019</guid><author>g084120209</author><pubDate>Thu, 01 Dec 2016 16:24:29 +0800</pubDate><description><![CDATA[使用mabatis多表查询，发现报错： Column 'id' in where clause is ambiguous。
sql语句：select psc.* ,ssc.id as sscid,c.course_name from t_parent_select_course psc left join t_school_select_course ssc on psc.school_sel_]]></description><category></category></item><item><title><![CDATA[报错：Mapped Statements collection does not contain value for com.fzl.organation.vo.OrganizationMapping]]></title><link>https://blog.csdn.net/g084120209/article/details/53130557</link><guid>https://blog.csdn.net/g084120209/article/details/53130557</guid><author>g084120209</author><pubDate>Fri, 11 Nov 2016 17:18:05 +0800</pubDate><description><![CDATA[今天写了个mybatis的程序，配置文件和映射文件都写好了，但是报错：Mapped Statements collection does not contain value for com.fzl.organation.vo.OrganizationMapping.getCount。
  网上一查原来是映射文件没有部署到mybatis的配置文件中。]]></description><category></category></item><item><title><![CDATA[response.getWriter().write 中文乱码问题]]></title><link>https://blog.csdn.net/g084120209/article/details/50755916</link><guid>https://blog.csdn.net/g084120209/article/details/50755916</guid><author>g084120209</author><pubDate>Sat, 27 Feb 2016 16:41:27 +0800</pubDate><description><![CDATA[最近在使用response.getWriter().write()方法向页面返回中文时，页面显示乱码。代码如下： 
response.getWriter().write("myeclipse 的第一个Servlet程序。。。"); 

最后在调用response.getWriter()之前添加这句话解决问题： 
response.setContentType("text/html;char]]></description><category></category></item><item><title><![CDATA[java web 程序导入java EE 6 library]]></title><link>https://blog.csdn.net/g084120209/article/details/50754365</link><guid>https://blog.csdn.net/g084120209/article/details/50754365</guid><author>g084120209</author><pubDate>Sat, 27 Feb 2016 11:25:53 +0800</pubDate><description><![CDATA[新建一个java web 工程，创建一个servlet类继承HttpServlet ，但是出现HTTPServlet无法导包的问题，这是因为java ee 的包没有导入到项目中。




右击项目——Bulid Path——Add libraries 












导入成功。]]></description><category></category></item><item><title><![CDATA[正则表达式实例]]></title><link>https://blog.csdn.net/g084120209/article/details/50599071</link><guid>https://blog.csdn.net/g084120209/article/details/50599071</guid><author>g084120209</author><pubDate>Thu, 28 Jan 2016 10:46:54 +0800</pubDate><description><![CDATA[转载：http://www.cnblogs.com/diony/archive/2010/12/16/1908499.html
正则表达式实例


 
1.验证数字：
只能输入1个数字
 
表达式 ^\d$ 
描述 匹配一个数字 
匹配的例子 0,1,2,3 
不匹配的例子 
2.只能输入n个数字 
表达式 ^\d{n}$    例如^\d{8}$ 
描述 匹配8个数字]]></description><category></category></item><item><title><![CDATA[response.setContentType()的作用及参数]]></title><link>https://blog.csdn.net/g084120209/article/details/50586106</link><guid>https://blog.csdn.net/g084120209/article/details/50586106</guid><author>g084120209</author><pubDate>Tue, 26 Jan 2016 11:18:57 +0800</pubDate><description><![CDATA[转载：http://blog.sina.com.cn/s/blog_a03d702f010143tw.html

      
response.setContentType(MIME)的作用是使客户端浏览器，区分不同种类的数据，并根据不同的MIME调用浏览器内不同的程序嵌入模块来处理相应的数据。

例如web浏览器就是通过MIME类型来判断文件是GIF图片。通过MIME类型来处理jso]]></description><category></category></item><item><title><![CDATA[java项目打包后如何读写项目中的文件]]></title><link>https://blog.csdn.net/g084120209/article/details/50582009</link><guid>https://blog.csdn.net/g084120209/article/details/50582009</guid><author>g084120209</author><pubDate>Mon, 25 Jan 2016 18:56:10 +0800</pubDate><description><![CDATA[写了一个项目，其中放了一些配置文件，因为项目需求，要读写这些文件。在eclipse中可以正常读写操作，但是打包之后发现不能执行写操作，但是可以读取。上百度查询，都是如何读取项目中的文件，但是没有涉及到写操作，后来查到百度上有人说：
如果非要往jar里面写文本，还要重新导入被编写的jar才可以读到你修改之后的内容，很麻烦。
链接：http://zhidao.baidu.com/link?url=k]]></description><category></category></item><item><title><![CDATA[freemarker生成的word文件打不开]]></title><link>https://blog.csdn.net/g084120209/article/details/50579507</link><guid>https://blog.csdn.net/g084120209/article/details/50579507</guid><author>g084120209</author><pubDate>Mon, 25 Jan 2016 13:47:56 +0800</pubDate><description><![CDATA[用eclipse写了一个程序， 使用freemaker生成word文件，生成的word文件可以打开。但是将程序打成jar包后，运行jar包，生成的word文件就打不开了。截图：

然后我用Editplus打开生成的word文件，发现里面是乱码，截图：

考虑是不是乱码的问题，在程序里面创建一个Configuration实例 的后面给这个对象设置编码为utf-8：
 cfg = new C]]></description><category></category></item><item><title><![CDATA[JAVA中获取项目文件路径[转载的一篇关于 相对路径 的文章]]]></title><link>https://blog.csdn.net/g084120209/article/details/50579427</link><guid>https://blog.csdn.net/g084120209/article/details/50579427</guid><author>g084120209</author><pubDate>Mon, 25 Jan 2016 13:21:49 +0800</pubDate><description><![CDATA[转载:http://blog.sina.com.cn/s/blog_54cd1aa30100qezr.html

  在java中获得文件的路径在我们做上传文件操作时是不可避免的。
web 上运行
1:
this.getClass().getClassLoader().getResource("/").getPath();
this.getClass().getClassLoader(]]></description><category></category></item><item><title><![CDATA[[Java基础] 深入jar包：从jar包中读取资源文件]]></title><link>https://blog.csdn.net/g084120209/article/details/50564366</link><guid>https://blog.csdn.net/g084120209/article/details/50564366</guid><author>g084120209</author><pubDate>Fri, 22 Jan 2016 21:27:02 +0800</pubDate><description><![CDATA[转载：http://www.cnblogs.com/0616--ataozhijia/p/4094952.html

转载：http://hxraid.iteye.com/blog/483115?page=3#comments

我们常常在代码中读取一些资源文件(比如图片，音乐，文本等等)。在单独运行的时候这些简单的处理当然不会有问题。但是，如果我们把代码打成一个jar包以后，即使将资源文]]></description><category></category></item><item><title><![CDATA[tomcat启动时间的设置]]></title><link>https://blog.csdn.net/g084120209/article/details/50536608</link><guid>https://blog.csdn.net/g084120209/article/details/50536608</guid><author>g084120209</author><pubDate>Mon, 18 Jan 2016 14:40:47 +0800</pubDate><description><![CDATA[今天在eclipse中启动tomcat，报错：
Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds
    错误截图：
      
     上网查询原来是我们限定了部署的时间导致的错误。
   
解决方法：
                修改 workspace\.metada]]></description><category></category></item><item><title><![CDATA[eclipse复制项目遇到的问题]]></title><link>https://blog.csdn.net/g084120209/article/details/50527131</link><guid>https://blog.csdn.net/g084120209/article/details/50527131</guid><author>g084120209</author><pubDate>Sat, 16 Jan 2016 10:44:09 +0800</pubDate><description><![CDATA[今天用eclipse复制了一个web的小项目，修改了名字后，将项目添加到tomcat中，启动tomcat服务器，报错。
 错误截图：
  
然后我修改了web.xml文件，重新测试，还是不行。没办法了，问度娘，有的人说：不能那样复制，应该先建一个新项目，然后把你想用的别的项目里的文件粘贴进去，直接rename会出问题滴。恩，说的有道理，不过我感觉应该有解决的办法。果然，在csdn论坛中找到了]]></description><category></category></item><item><title><![CDATA[cookie中存储中文的处理问题]]></title><link>https://blog.csdn.net/g084120209/article/details/50523058</link><guid>https://blog.csdn.net/g084120209/article/details/50523058</guid><author>g084120209</author><pubDate>Fri, 15 Jan 2016 13:16:15 +0800</pubDate><description><![CDATA[解决cookie存储中文的问题。]]></description><category></category></item><item><title><![CDATA[Server Tomcat v7.0 Server at localhost failed to start.]]></title><link>https://blog.csdn.net/g084120209/article/details/50520995</link><guid>https://blog.csdn.net/g084120209/article/details/50520995</guid><author>g084120209</author><pubDate>Fri, 15 Jan 2016 00:00:09 +0800</pubDate><description><![CDATA[Server Tomcat v7.0 Server at localhost failed to start.问题的解决]]></description><category></category></item><item><title><![CDATA[JSP报错：The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path]]></title><link>https://blog.csdn.net/g084120209/article/details/50513480</link><guid>https://blog.csdn.net/g084120209/article/details/50513480</guid><author>g084120209</author><pubDate>Wed, 13 Jan 2016 21:50:21 +0800</pubDate><description><![CDATA[本文讲述如何解决问题：The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。并列出了详细的步骤。]]></description><category></category></item><item><title><![CDATA[转 Eclipse中启动tomcat 浏览器无法访问8080端口]]></title><link>https://blog.csdn.net/g084120209/article/details/50488109</link><guid>https://blog.csdn.net/g084120209/article/details/50488109</guid><author>g084120209</author><pubDate>Sat, 09 Jan 2016 15:27:15 +0800</pubDate><description><![CDATA[最近将tomcat安装到eclipse中，测试的时候发现eclipse启动了tomcat，但是在浏览器中访问http://localhost:8080/不能访问，可项目文件可以访问，访问http://localhost:8080/JavaWeb01能正常访问项目页面。然后在度娘，终于找到一篇文章完美的解决了问题，现在和大家一起分享。
原文网址：http://my.oschina.net/u/14]]></description><category></category></item></channel></rss>