diff --git a/src/main/java/com/lq/cms/service/AdminBaseService.java b/src/main/java/com/lq/cms/service/AdminBaseService.java index c71c138..9710b4c 100755 --- a/src/main/java/com/lq/cms/service/AdminBaseService.java +++ b/src/main/java/com/lq/cms/service/AdminBaseService.java @@ -5,6 +5,11 @@ import com.lq.code.service.BaseService; import java.util.List; +/** + * @author qi + * @param + * @param + */ public interface AdminBaseService extends BaseService{ /** diff --git a/src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java b/src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java index e94df97..bc2db78 100755 --- a/src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java +++ b/src/main/java/com/lq/cms/service/impl/AdminBaseServiceImpl.java @@ -11,6 +11,11 @@ import java.lang.reflect.ParameterizedType; import java.util.Date; import java.util.List; +/** + * @author qi + * @param + * @param + */ public abstract class AdminBaseServiceImpl implements AdminBaseService{ abstract AdminBaseDao getAdminBaseDao(); diff --git a/src/main/java/com/lq/cms/vo/AdminBaseVo.java b/src/main/java/com/lq/cms/vo/AdminBaseVo.java index 4784b93..d8987c3 100755 --- a/src/main/java/com/lq/cms/vo/AdminBaseVo.java +++ b/src/main/java/com/lq/cms/vo/AdminBaseVo.java @@ -2,6 +2,9 @@ package com.lq.cms.vo; import java.util.Date; +/** + * @author qi + */ public class AdminBaseVo extends BasePageVo { private Long id; diff --git a/src/main/java/com/lq/cms/web/BaseAdminController.java b/src/main/java/com/lq/cms/web/BaseAdminController.java index 0b4dc52..fa47ff8 100755 --- a/src/main/java/com/lq/cms/web/BaseAdminController.java +++ b/src/main/java/com/lq/cms/web/BaseAdminController.java @@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.ResponseBody; /** * 管理后台 父类 * 强封装,缺少扩展,不建议采用 + * @author qi */ public abstract class BaseAdminController { diff --git a/src/main/java/com/lq/code/util/email/emailUtil.java b/src/main/java/com/lq/code/util/email/emailUtil.java index 0d4ac18..376b9df 100755 --- a/src/main/java/com/lq/code/util/email/emailUtil.java +++ b/src/main/java/com/lq/code/util/email/emailUtil.java @@ -27,7 +27,6 @@ public class emailUtil { props.put("mail.smtp.starttls.enable","true");//使用 STARTTLS安全连接 props.put("mail.smtp.port", "25"); //google使用465或587端口 props.put("mail.smtp.auth", "true"); // 使用验证 - //props.put("mail.debug", "true"); Session mailSession = Session.getInstance(props,new MyAuthenticator(from,fromUserPassword)); // 第二步:编写消息 @@ -54,6 +53,10 @@ public class emailUtil { System.out.println("message yes"); } + public void copy(){ + + } + public static void main(String[] args) { try { sendMessage("smtp.163.com", "qi_liang_gz@163.com", "a970209468", "wx_qi_liang@163.com", "test", "你好,旧时光", "test"); diff --git a/src/main/java/com/lq/code/util/jdbc/BeanHander.java b/src/main/java/com/lq/code/util/jdbc/BeanHander.java index fdb5f1d..252675c 100755 --- a/src/main/java/com/lq/code/util/jdbc/BeanHander.java +++ b/src/main/java/com/lq/code/util/jdbc/BeanHander.java @@ -22,20 +22,7 @@ public class BeanHander implements ResultSetHandler { Object bean = clazz.newInstance(); ResultSetMetaData metadata = rs.getMetaData(); int coulumnCount = metadata.getColumnCount(); - /** for (int i = 0; i < coulumnCount; i++) { - String coulmnName = metadata.getColumnLabel(i + 1); - Object coulmnData = rs.getObject(i + 1); - String fieldName = SqlUtil.humpToCase(coulmnName); - Field f = null; - try { - f = clazz.getDeclaredField(fieldName); - }catch (NoSuchFieldException e){ - continue; - } - f.setAccessible(true); - f.set(bean, coulmnData); - } - **/ + Field [] fields = clazz.getDeclaredFields(); for (Field f:fields){ String fieldName = f.getName(); diff --git a/src/main/java/com/lq/code/util/mybatisPlus/xml/SelectMappserXmlDtl.java b/src/main/java/com/lq/code/util/mybatisPlus/xml/SelectMappserXmlDtl.java index 271b24d..511d8d2 100755 --- a/src/main/java/com/lq/code/util/mybatisPlus/xml/SelectMappserXmlDtl.java +++ b/src/main/java/com/lq/code/util/mybatisPlus/xml/SelectMappserXmlDtl.java @@ -4,6 +4,9 @@ import com.lq.code.util.mybatisPlus.xml.converter.SelectMappserXmlDtlConverter; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamConverter; +/** + * @author qi + */ @XStreamAlias("select") @XStreamConverter(SelectMappserXmlDtlConverter.class) public class SelectMappserXmlDtl { diff --git a/src/main/java/com/lq/code/util/os/CpuUtil.java b/src/main/java/com/lq/code/util/os/CpuUtil.java index 0643091..371a435 100755 --- a/src/main/java/com/lq/code/util/os/CpuUtil.java +++ b/src/main/java/com/lq/code/util/os/CpuUtil.java @@ -10,6 +10,5 @@ public class CpuUtil { public static void getcpu(){ Sigar sigar = new Sigar(); - } } diff --git a/src/main/java/com/lq/code/util/sql/MysqlBuilder.java b/src/main/java/com/lq/code/util/sql/MysqlBuilder.java index a97b771..b2b5e08 100755 --- a/src/main/java/com/lq/code/util/sql/MysqlBuilder.java +++ b/src/main/java/com/lq/code/util/sql/MysqlBuilder.java @@ -61,7 +61,6 @@ public class MysqlBuilder extends AbstractDbBuiler { clazzMap.remove(column.getColumnName()); columnIterator.remove(); } - } columnIterator = columnList.iterator(); while (columnIterator.hasNext()) { diff --git a/src/main/java/com/lq/code/web/BaseController.java b/src/main/java/com/lq/code/web/BaseController.java index 8b60df7..520f9e7 100755 --- a/src/main/java/com/lq/code/web/BaseController.java +++ b/src/main/java/com/lq/code/web/BaseController.java @@ -5,7 +5,9 @@ import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ResponseBody; /** - * Created by qi on 2017/7/16. + * + * @author qi + * @date 2017/7/16 */ public class BaseController { diff --git a/src/main/java/com/lq/wechat/util/ConstantSet.java b/src/main/java/com/lq/wechat/util/ConstantSet.java index 14e834d..74d507c 100755 --- a/src/main/java/com/lq/wechat/util/ConstantSet.java +++ b/src/main/java/com/lq/wechat/util/ConstantSet.java @@ -2,6 +2,7 @@ package com.lq.wechat.util; /** * 微信公众号相关常量 + * @author qi */ public class ConstantSet { diff --git a/src/main/java/com/lq/wechat/web/WechatController.java b/src/main/java/com/lq/wechat/web/WechatController.java index c52f901..35167f7 100755 --- a/src/main/java/com/lq/wechat/web/WechatController.java +++ b/src/main/java/com/lq/wechat/web/WechatController.java @@ -147,15 +147,11 @@ public class WechatController extends BaseController { case ConstantSet.EVENT_TYPE_CLICK: //自定义菜单点击事件KEY值 String eventKey = map.get(ConstantSet.EVENT_CLICK_KEY); - - ; break; default: break; } - break; - default: text.setContent("您发送的消息是:" + "无法理解"); baseMessage = text; @@ -163,11 +159,9 @@ public class WechatController extends BaseController { } message = MessageUtil.MessageToXml(baseMessage); } - } catch (Exception e) { e.printStackTrace(); } return message; } - }