02 2013 档案
摘要:今天继续使用mybatis搭建我的网站,在sql这块有个问题在sql的mapper中如下方式<select id="countByCate" parameterType="int" resultType="int"> select count(*) from article where <if test="cate!=0"> cate = #{cate} and </if> deletetype=0; </select>接口方法 :int countByCate(in
阅读全文
摘要:今天在自己的vps上搭建服务,好久没用过tomcat了、现在公司都是用resin 的。前一阵看见oschina 是用tomcat,打算自己的这个服务也用tomcat来搞。配置完jdk和tomcat 的环境变量后,打算把自己写的测试包传上来用用,但是不想直接放在默认的webapp下。于是上网搜了搜配置方式有如下三种:1.就是tomcat的默认webapp啦,这个不多说了用过的都知道2.就是在server.xml中增加context<Context path="/app" reloadable="true" docBase="/data/pr
阅读全文

浙公网安备 33010602011771号