掘金主页: https://gold.xitu.io/user/576d4aaf7db2a20054ea4544
使用Idea搭建的Maven项目,会不定期更新一些在实际开发中使用的技巧(ps:目前不是很忙基本上一周一更)。 没有复杂的业务流程,更不是XXXX系统,只有一些技术的分享。想要学习XX系统的:
有任何问题和欢迎Issues
觉得不错的朋友可以点下star
,fork
最近好几位朋友咨询我关于项目Clone下来之后找不到CheckReqNo.java
之类的问题
这是由于我再项目中有依赖 https://github.com/crossoverJie/SSM-REQUEST-CHECK 去重插件。 以及 https://github.com/crossoverJie/SSM-DUBBO-HTTP 这个dubbo日志拓展插件。
解决方案:
- 如果不需要这两个插件再
pom
依赖中去掉相关依赖即可。 - 如果需要则按照 https://github.com/crossoverJie/SSM-REQUEST-CHECK , https://github.com/crossoverJie/SSM-DUBBO-HTTP
install
到本地即可。 - 不要clone
master
分支,使用https://github.com/crossoverJie/SSM/releases/tag/2.1.0 或之前的tag即可。
博客地址:SSM(十四) 基于annotation的http防重插件
掘金地址:https://juejin.im/post/59255a2ca22b9d0058aaba4a
插件地址:https://github.com/crossoverJie/SSM-REQUEST-CHECK
效果实例:
掘金地址:https://juejin.im/post/5908a811da2f60005d188aee
效果实例:
掘金地址:[https://juejin.im/post/58ff1ab861ff4b006678f9c5)
效果实例:
2017-04-25 15:15:38,968 DEBUG [com.alibaba.dubbo.remoting.transport.DecodeHandler] - [DUBBO] Decode decodeable message com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation, dubbo version: 2.5.3, current host: 127.0.0.1
2017-04-25 15:15:39,484 DEBUG [com.crossoverJie.dubbo.filter.DubboTraceFilter] - dubbo请求数据:{"args":[1],"interfaceName":"com.crossoverJie.api.UserInfoApi","methodName":"getUserInfo"}
2017-04-25 15:15:39,484 INFO [com.crossoverJie.api.impl.UserInfoApiImpl] - 用户查询Id=1
2017-04-25 15:15:39,505 DEBUG [org.mybatis.spring.SqlSessionUtils] - Creating a new SqlSession
2017-04-25 15:15:39,525 DEBUG [org.mybatis.spring.SqlSessionUtils] - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6f56b29] was not registered for synchronization because synchronization is not active
2017-04-25 15:15:39,549 DEBUG [org.mybatis.spring.transaction.SpringManagedTransaction] - JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@778b3121] will not be managed by Spring
2017-04-25 15:15:39,555 DEBUG [com.crossoverJie.api.dubbo.dao.T_userDao.selectByPrimaryKey] - ==> Preparing: select id, username, password,roleId from t_user where id = ?
2017-04-25 15:15:39,591 DEBUG [com.crossoverJie.api.dubbo.dao.T_userDao.selectByPrimaryKey] - ==> Parameters: 1(Integer)
2017-04-25 15:15:39,616 DEBUG [com.crossoverJie.api.dubbo.dao.T_userDao.selectByPrimaryKey] - <== Total: 1
2017-04-25 15:15:39,616 DEBUG [com.alibaba.druid.pool.PreparedStatementPool] - {conn-10003, pstmt-20000} enter cache
2017-04-25 15:15:39,617 DEBUG [org.mybatis.spring.SqlSessionUtils] - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6f56b29]
2017-04-25 15:15:45,473 INFO [com.crossoverJie.dubbo.filter.DubboTraceFilter] - dubbo执行成功
2017-04-25 15:15:45,476 DEBUG [com.crossoverJie.dubbo.filter.DubboTraceFilter] - dubbo返回数据{"args":[{"id":1,"password":"123456","roleId":1,"userName":"crossoverJie"}],"interfaceName":"com.crossoverJie.api.UserInfoApi","methodName":"getUserInfo"}
掘金地址:https://juejin.im/post/58e674ec44d904006d35af5c
效果实例:
博客地址:SSM(十) 项目重构-互联网项目的Maven结构
掘金地址:https://gold.xitu.io/post/58b98ab01b69e6006b12ab83
效果实例:
简书地址:http://www.jianshu.com/p/5a23ff31204f
效果实例:
@Test
public void insertSelective2() throws Exception {
Content content = new Content();
content.setContent("你好");
content.setContentname("1");
content.setCreatedate("2016-09-23");
contentService.insertSelective(content);
ContentLog log = new ContentLog();
CommonUtil.setLogValueModelToModel(content, log);
contentLogService.insertSelective(log);
}
博客地址:SSM(八)动态切换数据源
简书地址:http://www.jianshu.com/p/9d3d92b37c0a
简书地址:http://www.jianshu.com/p/77cd4ae50c8b
博客地址:SSM(六)跨域传输 简书地址:http://www.jianshu.com/p/3e3d9a89fafc 效果实例:
博客地址:SSM(五)基于webSocket的聊天室 简书地址:http://www.jianshu.com/p/79faa8af6455 效果实例:
博客地址:SSM(四)WebService入门详解 简书地址:http://www.jianshu.com/p/5c2b01aaa7ac 效果实例:
博客地址:SSM(三)Shiro使用详解 简书地址:http://www.jianshu.com/p/6786ddf54582 效果实例:
博客地址:SSM(二)Lucene全文检索 效果实例:
博客地址:SSM(一)框架的整合