Skip to content
/ SSM Public
forked from crossoverJie/SSM

๐Ÿ’• Build SSM from 0 ๐Ÿ‘‰๐Ÿฝ๐Ÿ‘‰๐Ÿฝ Distributed micro service.

License

Notifications You must be signed in to change notification settings

yangjm20/SSM

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation



ไธญๆ–‡็ฎ€ไป‹

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

About

๐Ÿ’• Build SSM from 0 ๐Ÿ‘‰๐Ÿฝ๐Ÿ‘‰๐Ÿฝ Distributed micro service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%