/SSM

不定期分享JavaWeb方向的技术,长期更新。欢迎发起讨论 Issues

Primary LanguageJavaGNU General Public License v2.0GPL-2.0



中文简介

I'll update some skills in actual development aperiodically.There are no complicated operation flows or xxx system,just some practical shares about skills.

Directory Structure

├── SSM-API                                    // common API  
│   ├── src/main
│   ├── ├──java/com/crossoverJie               // specific code。  
│   ├── ├──resources
├── SSM-BOOT                                   // Available for internal use of dubbo dependencies 
│   ├── ├──resources/spring                    // dubbo consumer configuration
├── SSM-SERVICE                                // The service implementation of the dubbo application 
│   ├── src/main
│   ├── ├──java/com/crossoverJie/api           // specific code
│   ├── ├──├──controller                       // Heartbeat detection interface
│   ├── ├──├──dubbo                            // Dubbo related code
│   ├── ├──├──├──dao                           // dao package
│   ├── ├──├──├──pojo                          // pojo package
│   ├── ├──├──├──service                       // service package
│   ├── ├──├──├──util                          // Toolkit
│   ├── ├──├──impl                             // implement dubbo API
│   ├── ├──resources                           // configuration file
│   ├── ├──├──mapping                          // *.mapper configuration file
│   ├── ├──├──spring                           // Spring related configuration file
├── SSM-WEB                                    // web application
│   ├── src/main
│   ├── ├──java/com/crossoverJie               // specific code
│   ├── ├──├──controller                       // controller package
│   ├── ├──├──cxf                              // CXF related code
│   ├── ├──├──dao                              // dao package
│   ├── ├──├──enums                            // enum package
│   ├── ├──├──intercept                        // Interceptor
│   ├── ├──├──kafka                            // Kafka
│   ├── ├──├──├──official                      // Official consumption
│   ├── ├──├──├──optimization                  // Multi-threaded consumption
│   ├── ├──├──lucene                           // Lucene related code
│   ├── ├──├──pojo                             // pojo package
│   ├── ├──├──req                              // request package
│   ├── ├──├──res                              // response package
│   ├── ├──├──service                          // service pachage
│   ├── ├──├──shiro                            // shiro related code
│   ├── ├──├──util                             // Toolkit
│   ├── ├──├──vo                               // vo package
│   ├── ├──resources
│   ├── ├──├──mapping                          // *.mapper configuration file
│   ├── ├──webapp                              // front code
├── doc
│   ├──lucene                                  // lucene related code
│   ├──sql                                     // sql scripts
├── .gitignore                                 // gitignore 
├── pom.xml                                    // parent pom
├── LICENSE               
├── README.md               

TODO LIST


Special Note

On the project,SSM-SERVICE SSM-WEB module is only used to demonstrate the use of normal circumstances will only appear a service or web module.

Quick Start

  1. Import SQL Script

https://github.com/crossoverJie/SSM/tree/master/doc/sql

Q&A

ClassNotFoundException: CheckReqNo

Because there is dependence:

https://github.com/crossoverJie/SSM-REQUEST-CHECK

https://github.com/crossoverJie/SSM-DUBBO-HTTP

jar。

solution:

  • if you do not need them, please remove it.
  • if you need,flow:

https://github.com/crossoverJie/SSM-REQUEST-CHECK

https://github.com/crossoverJie/SSM-DUBBO-HTTP

and Installed locally。


Partial Screenshots

封面.jpg

dubbo-http封面.jpg

2.jpg

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"}

More Information

使用springBoot+SpringCloud构建微服务项目

Contact Author

weixinchat.jpg