mybatis handles enumeration types
MyBatis supports persistent enum type properties. Suppose that there is a column of gender type varchar2(10) in the t Uuser table, which stores two values: MALE or FEMALE. In addition, the User object has a gender attribute of enum type, as follows:
public enum Gender {
MALE,FEMALE;
}
By default, MyBatis uses EnumTypeHandler to han ...
Added by DevilsAdvocate on Thu, 17 Oct 2019 01:37:01 +0300
File upload into library MySQL and download
Demand:
Excel files need to be parsed, uploaded to a table in the database and downloaded.
Technology:
ElementUI for front-end vue, spring boot for back-end, mybatis
Achieving results:
Upload implementation:
1) Field type selection
The field type used to store files in the database is BLO ...
Added by Dlex on Fri, 11 Oct 2019 23:38:20 +0300
5. springboot is simple and elegant to realize mail service
Preface
Sprboot's project has not been updated for half a month since it was put down. Finally, I can write happily when I am free.
Before we configure mybatis with multiple data sources, we need to do an email service. For example, when you register, you need to enter a validation code to verify. This validation code can be sent by mail. Of co ...
Added by Pjack125 on Fri, 11 Oct 2019 13:41:06 +0300
mybatis integration spring in java
This article explains the integration of spring+mybatis.
Directory structure:
First method of integrating spring
1. New java project: spring_mybatis
2. Import the jar package -- the spring and mybatis package, and then build
aopalliance.jar
aspectjweaver.jar
commons-logging.jar
mybatis-3.2.7.jar
mybatis-spring-1.2.3.jar
mysql-conn ...
Added by kingconnections on Thu, 10 Oct 2019 19:47:53 +0300
Spring Boot 2.X: Developing web Applications Using Spring MVC + MyBatis + Thymeleaf
Preface
Spring MVC is a native framework built on the Servlet API and included in the Spring framework from the beginning. This paper mainly describes the architecture and analysis of Spring MVC, and uses Spring Boot + Spring MVC + MyBatis (SSM) + Thymeleaf (Template Engine) framework to build a Web project simply and quickly.
Web MVC Architec ...
Added by omidh on Thu, 10 Oct 2019 11:27:40 +0300
Mybatis in-depth and shallow learning three (dynamic sql sentence analysis of Mybatis)
The basic syntax for splicing Mybatis dynamic sql depends on < if > tags and < Where > tags.
The < foreach > tag is used in traversal
Demand one
Query object is wrapped by wrapping class, and sql statement is stitched dynamically according to the attribute of object.
Packaging cla ...
Added by lisa3711 on Sat, 05 Oct 2019 17:46:58 +0300
MyBatis -- Addition, deletion and modification of tables (annotation-based implementation)
Links to the original text: https://my.oschina.net/u/1781072/blog/542610
1. MyBatis adds/deletes/alters/checks database tables
The previous article uses XML-based approach to add/dele ...
Added by tryin_to_learn on Thu, 03 Oct 2019 02:13:21 +0300
Learning Notes spring and mybatis Integrate Dynamic Agent Knowledge Point Arrangement
1.mybatis multi-table query one-to-one
One-to-one (one containing another instance)
<!-- One-to-one Association query-resultMap -->
<resultMap type="order" id="order_user_map">
<!-- id Tags are used to bind primary keys -->
<id property="id" column="id"/>
<!-- Use re ...
Added by project168 on Tue, 01 Oct 2019 19:47:02 +0300
How to write Java code more normalized
How to write Java code more normalized
Many of the happiest people are those who own the least. But are we really so happy with our IPhones, our big houses, our fancy cars?
Forget Chuan Rusi, people who have everything are more afraid of losing.
Background: There is no need to say how to write Java code more regularly, the most importa ...
Added by 2paulm on Thu, 26 Sep 2019 19:42:34 +0300
SSM Integration - spring Integration spring MVC and Mymatis
thinking
First, test whether Spring MVC and Mysteries are available, whether the environment is correct, and then use Spring integration.
Build an integrated environment first
2) Build Spring configuration environment
3) Spring integrates Spring MVC framework
4) Spring integrates Mybatis frameworkReq ...
Added by domineaux on Wed, 25 Sep 2019 06:20:42 +0300