Unprecedented enterprise architecture sharing--SSM Portfolio +springmvc+mybatis+shiro+restful+bootstrap

Source: Internet
Author: User
Tags zookeeper

1. Basic Concepts

1.1. Spring

Spring is an open source framework, and Spring is a lightweight Java development framework that emerged in 2003 by Rod Johnson in his Expert one-on-one, development and Design. Some of the concepts and prototypes derived from the above. It is created to address the complexities of enterprise application development. Spring uses basic JavaBean to accomplish things that were previously only possible by EJBS. However, the use of Spring is not limited to server-side development. From the standpoint of simplicity, testability, and loose coupling, any Java application can benefit from Spring. In short, Spring is a lightweight control inversion (IoC) and aspect-oriented (AOP) container framework.

1.2, SPRINGMVC

Spring MVC is a follow-on product of springframework and has been integrated into spring Web Flow. Spring MVC separates the roles of controllers, model objects, dispatchers, and handler objects, and this separation makes them easier to customize.

1.3, MyBatis

MyBatis is an open source project for Apache Ibatis, which was migrated to Google code by the Apache Software Foundation in 2010 and renamed MyBatis. MyBatis is a Java-based persistence layer framework. The persistence layer framework provided by IBATIS includes SQL Maps and Data Access Objects (DAO) MyBatis eliminates the manual setting of almost all JDBC code and parameters and the retrieval of result sets. MyBatis uses simple XML or annotations for configuration and raw mapping, mapping interfaces and Java POJOs (Plain old Java Objects, ordinary Java objects) to records in a database.

Willing to understand the framework of technology or source of friends directly Add (Penguin) 2042849237

4. SSM Integration

The following is mainly about the integration of the three frameworks, as for the construction of the environment and the creation of projects, see the above blog post. This integration I divided 2 configuration files, Spring-mybatis.xml, including spring and mybatis configuration files, there is a SPRING-MVC configuration file, in addition, there are 2 resource files: Jdbc.propertis and lo G4j.properties. The full directory structure is as follows:


4.2. Integration of Spring and MyBatis

All of the required JAR packages are introduced, first with the integration of Spring and MyBatis, then the JUnit test, first look at a project map:


Driven project Build-up

Built-in efficient and reliable code generator

Support a variety of data models, based on database tables to generate regular repetitive code, so that research and development engineers focus on the implementation of business logic code, greatly improve their work efficiency, free of repetitive work


OPEN CI

Open source Standardization Project management solution, realize the software pipelining production, guarantee the correctness, the reliability

Guided creation, import of projects, integrated version control (GIT/SVN), project Management (trac/redmine), Code quality (Sonar), continuous integration (Jenkins)

Private deployment, unified management, for developers

Willing to understand the framework of technology or source of friends directly Add (Penguin) 2042849237

Distributed

Distributed services: Dubbo+zookeeper+proxy+restful

Distributed message Middleware: Kafka+flume+zookeeper

Distributed cache: Redis Distributed files: Fastdfs

Load balancing: Keepalived+nginx+proxy (triple load)

Welcome to study the relevant technology to learn about the framework of technology or the source of friends directly add to seek (Penguin): 2042849237

Some of the distributed solutions, the friends who are willing to know can find our team to discuss


More detailed source code reference: Http://minglisoft.cn/technology

SSM three big frame integration Spring+springmvc+mybatis,spring,springmvc,redis,zookeeper,dubbo,springmvc+mybatis

Unprecedented enterprise architecture sharing--SSM Portfolio +springmvc+mybatis+shiro+restful+bootstrap

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.