<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[chen1218chen的专栏]]></title><description><![CDATA[个人主页，http://chen1218chen.github.io/，欢迎大家交流]]></description><link>https://blog.youkuaiyun.com/chen1218chen</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; chen1218chen]]></copyright><item><title><![CDATA[hql不支持关键字on]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/80496502</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/80496502</guid><author>chen1218chen</author><pubDate>Tue, 29 May 2018 15:02:20 +0800</pubDate><description><![CDATA[使用hql语句进行联合查询，结果报错

from BreakCase b left join b.item t on b.item=t.id



  org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1,


原因是因为HQL不支持ON这个字符，如果要做关联关系就必须将On改为where

fro...]]></description><category></category></item><item><title><![CDATA[SpringBoot集成MyBatis Generator代码生成器]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/79282119</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/79282119</guid><author>chen1218chen</author><pubDate>Wed, 07 Feb 2018 17:07:15 +0800</pubDate><description><![CDATA[在原有SpringBoot+gradle构建的项目上（项目地址chen1218chen/Springboot-Mybatis-Gradle）继续集成MyBatis Generator来自动生成model层、dao层代码，以实现快速开发。



修改build.gradle文件

首先，在gradle的配置文件中添加依赖：

compile group: 'org.mybatis.generator]]></description><category></category></item><item><title><![CDATA[No Dialect mapping for JDBC type: -1]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/79238441</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/79238441</guid><author>chen1218chen</author><pubDate>Fri, 02 Feb 2018 14:06:20 +0800</pubDate><description><![CDATA[hibernate中使用sql语句进行查询，后台报错 
No Dialect mapping for JDBC type: -1; nested exception is org.hibernate.MappingException: No Dialect mapping for JDBC type: -1 
查询了一下说是查询的数据中使用了hibernate不支持的数据类型，就是说hiberna]]></description><category></category></item><item><title><![CDATA[hibernate中Criteria实现复合条件查询]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/79238379</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/79238379</guid><author>chen1218chen</author><pubDate>Fri, 02 Feb 2018 14:01:48 +0800</pubDate><description><![CDATA[分页查询+多条件查询

分页查询+多条件查询，使用Criteria查询，逻辑清楚而且方便，避免了过多的if else 语句。以下代码中因为查询结果要进行分页，多以将每页数据和查询总数封装到map中传到前台，以供前台bootstrap-table插件使用

public Map dataByPageItem(int pageNow, int pageSize, String searchText,]]></description><category></category></item><item><title><![CDATA[图片等比压缩]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/78468145</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/78468145</guid><author>chen1218chen</author><pubDate>Tue, 07 Nov 2017 15:05:55 +0800</pubDate><description><![CDATA[图片处理工具类 图像压缩 等比压缩]]></description><category></category></item><item><title><![CDATA[ecplise之SpringBoot热部署]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/77099528</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/77099528</guid><author>chen1218chen</author><pubDate>Fri, 11 Aug 2017 16:16:39 +0800</pubDate><description><![CDATA[越来越体会到SpringBoot的强大好用，热部署是一个开发过程中必须要用到的功能，eclipse集成JRebel实现SpringMVC工程的热部署费了我九牛二虎之力才好,这次竟然能这么easy就设置成功例如，真是出乎意料啊，ღ( ´･ᴗ･` )。 
Gradle项目中，首先安装配置依赖dependencies {
    compile group: 'org.springframework',]]></description><category></category></item><item><title><![CDATA[Gradle构建SpringBoot+Mybatis集成分页插件PageHelper]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/77099445</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/77099445</guid><author>chen1218chen</author><pubDate>Fri, 11 Aug 2017 16:11:09 +0800</pubDate><description><![CDATA[可点击此处下载完整项目哦：Springboot-Mybatis-Gradle使用Gradle构建SpringBoot项目，使用Mybatis来持久化，尝试集成PageHelper分页插件，依然顺利都令到我吃惊，so easy! 
首先，build.gradle中配置依赖dependencies {
    compile group: 'com.github.pagehelper', name: ']]></description><category></category></item><item><title><![CDATA[vue-cli实现多页面多路由]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/74373491</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/74373491</guid><author>chen1218chen</author><pubDate>Wed, 05 Jul 2017 09:28:52 +0800</pubDate><description><![CDATA[项目下载地址 vue-cli多页面多路由项目示例 
 vue+webpack+vue-router+vuex+mock+axiosUsageThis is a project template for vue-cli.github上找到某大神的一个基于vue-cli模板的vueAdmin后台管理的模板，根据项目需求改成一个多页面多路由的vue项目。 
PC端：后台管理页面，单独的页面入口，单独的路由]]></description><category></category></item><item><title><![CDATA[Spring集成Log4j和Slf4j]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73604504</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73604504</guid><author>chen1218chen</author><pubDate>Thu, 22 Jun 2017 15:10:30 +0800</pubDate><description><![CDATA[Log4j的集成
Slf4j的集成
Log4j的集成Spring项目中集成Log4j 
 1. 下载好log4j的jar包（例如：log4j-1.2.11.jar） 
 2. web.xml<!--log4j配置文件加载-->  
<context-param>      
   <param-name>log4jConfigLocation</param-name>      
   <param]]></description><category></category></item><item><title><![CDATA[structs2之Action与ActionContext]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73604492</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73604492</guid><author>chen1218chen</author><pubDate>Thu, 22 Jun 2017 15:09:54 +0800</pubDate><description><![CDATA[Action
Action原型
ActionContext
ServletActionContext
线程安全
servlet和Structs2
servlet分析
structs2分析
Actionstructs2的核心功能就是action，主要是编写一个个action来处理逻辑。 
action类通常都要实现com.opensymphony.xwork2.Action接口，并实现该接口中的exe]]></description><category></category></item><item><title><![CDATA[org.springframework.beans.factory.BeanDefinitionStoreException]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73604469</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73604469</guid><author>chen1218chen</author><pubDate>Thu, 22 Jun 2017 15:08:29 +0800</pubDate><description><![CDATA[org.springframework.beans.factory.BeanDefinitionStoreException[ERROR] [10:30:28] org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanDefi]]></description><category></category></item><item><title><![CDATA[Struts2之ModelDriven接口实现登陆及退出]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73604383</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73604383</guid><author>chen1218chen</author><pubDate>Thu, 22 Jun 2017 14:59:20 +0800</pubDate><description><![CDATA[当用POST方式提交表单，提交的数据量大时，action中定义各种数据，并实现get/set请求就显得过于臃肿，改用Struts2的ModelDriven接口来获取用户提交的HTTP请求，只需要定义相应的Model，Struts2框架会自动将用户提交的HTTP信息赋给相应的Model。 
对项目中的LoginAction进行修改，采用ModelDriven方式。LoginModel首先，系统采用电话]]></description><category></category></item><item><title><![CDATA[tomcat发布后访问路径问题]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73604351</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73604351</guid><author>chen1218chen</author><pubDate>Thu, 22 Jun 2017 14:57:24 +0800</pubDate><description><![CDATA[近来一直发现一个问题，tomcat工程发布后路径不对，用http://localhost:8080/Urban/login.jsp报404，无法访问。
  这是tomcat的server.xml文件配置
<Context docBase="chengguanfuwuqi" path="/Urban" reloadable="false" source="org.eclipse.jst.jee.ser]]></description><category></category></item><item><title><![CDATA[URL路径含中文]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73604340</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73604340</guid><author>chen1218chen</author><pubDate>Thu, 22 Jun 2017 14:55:49 +0800</pubDate><description><![CDATA[项目最近碰到了一个以前从来没有注意到的问题，就是URL路径包含中文的问题，虽说不建议路径名中包含中文，但有的时候也不可避免的出现这种问题，找到一个管用的方法，修改tomcat的server.xml文件，添加 URIEncoding="UTF-8"属性。如下所示：<Connector acceptCount="500" connectionTimeout="20000" enableLookups="]]></description><category></category></item><item><title><![CDATA[CommonJS,AMD模块化规范]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73480418</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73480418</guid><author>chen1218chen</author><pubDate>Tue, 20 Jun 2017 09:40:45 +0800</pubDate><description><![CDATA[模块化规范
CommonJS
AMDCMD
SeaJS和 RequireJS中的define
SeaJS和 RequireJS中的require
三种编写模块的模式
模块化管理器
bower
Grunt
browserify
模块化开发依然成为前端开发的主流，我们需要做的就是将不同的模块组织起来。最有名的前端模块管理器即requireJS，采用AMD标准。除此之外的其他模块管理器各有特色。模块化规范]]></description><category></category></item><item><title><![CDATA[RequireJS模块化开发百度地图]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73480393</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73480393</guid><author>chen1218chen</author><pubDate>Tue, 20 Jun 2017 09:38:15 +0800</pubDate><description><![CDATA[个人主页，技术杂谈 
原文地址，欢迎转载，请注明出处哦
加载百度地图
安装async插件
分析
加载百度地图因为百度地图只能CDN加载，所以paths中直接配置CDN路径安装async插件requirejs-plugins中包含async，点击这里进行下载可通过bower安装bower install requirejs-plugins --saverequire.config({
    path]]></description><category></category></item><item><title><![CDATA[shiro之roles实现or关系的角色过滤]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73480330</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73480330</guid><author>chen1218chen</author><pubDate>Tue, 20 Jun 2017 09:32:57 +0800</pubDate><description><![CDATA[个人主页，欢迎来访原文链接roles参数可以写多个，多个时必须加上引号，并且参数之间用逗号分割，当有多个参数时，每个参数通过才算通过，相当于hasAllRoles()方法。shiro的角色过滤是and的关系。而最近根据项目需求，要求订阅号管理模块，多个角色都可以进行管理，角色的过滤非and关系而是or的关系，applicationContext.xml中roles[“管理员”，”订阅号”]不能实现或]]></description><category></category></item><item><title><![CDATA[shiro实现SSL登陆]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/73480284</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/73480284</guid><author>chen1218chen</author><pubDate>Tue, 20 Jun 2017 09:28:45 +0800</pubDate><description><![CDATA[个人主页，技术杂谈原文链接考虑项目安全需求，将http请求转为https，项目中已集成的shiro框架已实现SSL登陆，来看下具体实现吧。tomcat的server.xml文件配置。将http的8080端口调转到https的8443端口<Connector acceptCount="500" connectionTimeout="20000" enableLookups="false" maxThr]]></description><category></category></item><item><title><![CDATA[XML文档解读]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/53894002</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/53894002</guid><author>chen1218chen</author><pubDate>Tue, 27 Dec 2016 11:18:32 +0800</pubDate><description><![CDATA[xmlns
xmlns和xmlnsxsi有什么不同
xsischemaLocation
关于XML文档的xmlns、xmlns:xsi和xsi:schemaLocation 
参见Spring的配置文件xmlnsxmlns其实是XML Namespace的缩写, XML命名空间。
  为什么需要xmlns
考虑这样两个XML文档：表示HTML表格元素的table<table>
  <tr>]]></description><category></category></item><item><title><![CDATA[angular用户注册及密码一致性验证]]></title><link>https://blog.youkuaiyun.com/chen1218chen/article/details/52514469</link><guid>https://blog.youkuaiyun.com/chen1218chen/article/details/52514469</guid><author>chen1218chen</author><pubDate>Mon, 12 Sep 2016 16:16:24 +0800</pubDate><description><![CDATA[注册表单初学习angular，用一个简单的用户注册页面来练练手，mark一下，以后需要就直接Ctrl+c了。<form action="" class="form-horizontal" name="regForm"  ng-controller="regController" 
 ng-submit="submitForm()" novalidate>
    <div class="form-g]]></description><category></category></item></channel></rss>