💕 build SSM from 0 👉🏽👉🏽 distributed micro service.
Java Shell
Clone or download

README.md



中文简介

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-SECONDS-KILL                           // seckill module
│   ├── ├──SSM-SECONDS-KILL-API                // seckill open api
│   ├── ├──SSM-SECONDS-KILL-ORDER-CONSUMER     // Kafka consumer module
│   ├── ├──SSM-SECONDS-KILL-SERVICE            // service module
│   ├── ├──SSM-SECONDS-KILL-WEB                // web module
├── 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


Quick Start

  1. Import SQL Script

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

Q&A

Does the reliance or code that begins with crossoverJie do not exist?

This is because I have a dependency on my jar package in the project, which is not published to the maven central factory library.

Because there is dependence:

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

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

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

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

Contact Author