Design of Java motan gateway
@TOC Insert code slice here Recently joined a company that built it from scratch. The rpc framework is motan. The reason why motan is used is mainly because the company is divided into two teams: java and php. motan can realize cross language call and is relatively lightweight, so motan is selected.
Since rpc is used for communication between ...
Added by Xajel on Fri, 04 Mar 2022 17:12:54 +0200
Mybatis source code - Mapper implementation class
Mybatis mapper implementation class
abstract
Speaking of Mybatis, we all know that it is a persistence layer framework for interacting with the database. It can provide a customizable database query interface and encapsulate the query details. It is an excellent framework for us to focus on business development.
But when it comes to dyna ...
Added by kuliksco on Fri, 28 Jan 2022 13:47:07 +0200
SSM framework integration record
SSM framework integration
1. Create database tables
CREATE DATABASE `ssmbuild`;
USE `ssmbuild`;
DROP TABLE IF EXISTS `books`;
CREATE TABLE `books` (
`bookID` INT(10) NOT NULL AUTO_INCREMENT COMMENT 'book id',
`bookName` VARCHAR(100) NOT NULL COMMENT 'title',
`bookCounts` INT(11) NOT NULL COMMENT 'quantity',
`detail` VARCHAR(200) NOT NU ...
Added by mecha_godzilla on Fri, 14 Jan 2022 03:08:26 +0200
Java Spring framework -- Introduction
catalogue
1. What is spring
2. Why use Spring?
3. Environmental construction
3.1. Create a java project and import the corresponding jar package
3.2. Create configuration file
3.3. Add corresponding modules
3.4. Hand over bean instantiation to Spring
3.5 testing
4. Injection by construction method
5. General attribute injection
6,sco ...
Added by h123z on Tue, 21 Dec 2021 02:41:46 +0200
Java basic custom control layer framework
Custom control layer framework core file
The core file of the control layer framework is xml file, and almost all frameworks use xml file as configuration file. web. As the core file of Java Web, xml will parse the web when the server tomcat starts xml file, read the information of servlet and servlet mapping node, store it in a map set to ...
Added by jeevan_y21 on Fri, 10 Dec 2021 13:49:46 +0200
Upload and download spring MVC files
File upload is one of the most common functions in project development. Spring MVC can well support file upload, but MultipartResolver is not installed in the spring MVC context by default, so it cannot handle file upload by default. If you want to use spring's file upload function, you need to configure MultipartResolver in the context.
Front ...
Added by cleary1981 on Wed, 24 Nov 2021 07:11:07 +0200
Detailed description and use of springboot maven plug-in
1. Introduction
Spring Boot Maven plug-in In Apache Maven Spring Boot support is provided. It allows you to package executable jar or war files, run Spring Boot applications, generate build information, and start your Spring Boot applications before running integration tests.
2. Getting started
To use the Spring Boot Maven plug-in, include t ...
Added by shuka79 on Thu, 18 Nov 2021 07:37:32 +0200
Getting started with MyBatis framework
catalogue
1. Framework overview
1.1 three tier architecture
1.2 framework
2. Overview of mybatis framework
2.1 JDBC defects
2.2 overview of mybatis framework
3. Introduction case of mybatis
4. Introduction to main classes in mybatis
4.1 Resources class
4.2 SqlSessionFactoryBuilder class
4.3 SqlSessionFactory interface
4.4 SqlSession ...
Added by rockyracoon on Tue, 26 Oct 2021 10:51:26 +0300