[SSM] framework integration of SSM: integration ideas

1, Create a web project 1. Add the required jar package in the lib folder:2. Delete the original src directory of the project and create the following four source folders:3. Create the following package structure in "src/main/java". The package name is customized, but the innermost package n ...

Posted on Mon, 24 Feb 2020 09:54:38 -0500 by Getran

MyBatis quick start: MyBatis one-to-one association query

MyBatis one-to-one association query In the previous article, it was said that the relationship between user and account is one to many. In turn, the relationship between account and user is actually one to one. Because an account can only belong to one user, the user table and account table are still ...

Posted on Mon, 24 Feb 2020 07:29:54 -0500 by Gonwee

spring source code interpretation (excerpt)

From: https://javaloop.com/post/spring-ioc The two most important aspects of IOC One is to create a bean container One is the initialization bean An example of starting a spring container: public static void main(String[] args){ ApplicationContext context = new ClassPathXmlApplicationContext("classpat ...

Posted on Mon, 24 Feb 2020 06:22:42 -0500 by jenni

Spring and Mybatis integration

Spring and MyBatis integration 1. Environment construction 2. Development and integration of traditional DAO 3. Development and integration of mapper interface 3.1 MapperFactoryBean based integration 3.2 MapperScannerConfigurer based integration 1. Environment construction Required jar packa ...

Posted on Mon, 24 Feb 2020 04:14:08 -0500 by netpumber

On AJAX&JSON

##Today's content 1. AJAX: concept, implementation mode (JS implementation mode, JQ implementation mode) 2. JSON: concept, basic rules, access to data, mutual transformation between JSON data and Java objects, cases # AJAX: 1. Concept: ASynchronous JavaScript And XML 1. Asynchronous and synchronous ...

Posted on Sun, 23 Feb 2020 04:18:42 -0500 by ThatGuyBob

MyBatis MyBatis Plug-in Principle

MyBatis Plugin Principle MyBatis is very developer-friendly and provides plug-in mechanisms that allow us to enhance MyBatis's functionality to suit our needs.At the bottom is the use of agent mode + responsibility chain mode MyBatis Official https://mybatis.org/mybatis-3/zh/configuration.html#plug ...

Posted on Sat, 22 Feb 2020 21:54:30 -0500 by bloo

axis2 document method call

Advantages: it is cumbersome and flexible to use ducument. It's used more now. Because it really gets rid of the coupling we don't want Code: public void addValidation(ServiceClient serviceClient, String tns , String token_str) {         //Because of your different requirements, you can refer to the figure at the bottom to correspond to the sp ...

Posted on Sat, 22 Feb 2020 10:53:42 -0500 by srini_r_r

SpringBoot - realize image upload | alicloud OSS

Preparation Prepare a virtual machine. The virtual machine doesn't have to use Alibaba cloud, but during the recent outbreak, Alibaba cloud has activities, and students can use it for six months free. I set an alarm clock at 7:50 this morning and then I got up to rob the free virtual machine Openi ...

Posted on Sat, 22 Feb 2020 10:48:49 -0500 by robpoe

SpringBoot learning seckill II. jsr303 calibrator

Form verification is an indispensable link when we submit a form. The common verification method is to judge each parameter separately, but this is not only troublesome, but also if we write too many if parameters, the code will be bloated and the readability will be poor. Take login as an example, supp ...

Posted on Sat, 22 Feb 2020 09:33:57 -0500 by plazz2000

Analysis of manipulating objects by using association relationship in Hibernate 5 -- one-to-one association relationship

One to one relationship There are two ways to implement one-to-one association in Hibernate 5: primary key Association and foreign key Association. 1. Primary key Association Key point of primary key Association: two associated tables share a primary key value. For example, if a company is registered ...

Posted on Sat, 22 Feb 2020 07:43:52 -0500 by arpowers