The Maven project created by IDEA uses the Mybatis framework to simply add, delete, modify and query a single table

Build environment Build database table MySQL database is used. Create a new database named task and a new table named student in the task database. Add data to the table as appropriate. The SQL statements for creating tables and adding data are as follows. SET FOREIGN_KEY_CHECKS=0; --Create table DROP TABLE IF EXISTS `student`; CREATE TABLE ...

Added by Desdinova on Fri, 17 Sep 2021 17:00:56 +0300

Getting started with MyBatis for Java

First, you know what a framework is:          Framework is the reusable design of the whole or part of the system, which is expressed as a group of abstract components and the method of interaction between component instances; Another definition holds that a framework is an application skeleton that can ...

Added by scross on Wed, 15 Sep 2021 02:23:51 +0300

Dependency management and automatic configuration of spring boot

Dependency management Create a springboot project according to the official springboot documentation We import the parent project <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.4</version> </parent&g ...

Added by mwilson2 on Mon, 13 Sep 2021 06:33:58 +0300

Maven pom.xml file details

POM stands for Project Object Model. It is an XML representation of a Maven project, stored in a file named pom.XML. A project contains not only a collection of files containing code, but also configuration files, as well as the roles of the developers involved and their roles, defect tracking systems, organizations and licenses, and where the ...

Added by john8675309 on Sat, 11 Sep 2021 01:49:19 +0300

Maven Nexus Private Library Setup with idea Development Configuration

1. Set up Nexus private server Environment preparation: OS:        [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) JDK Installation Download address:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html        tar -xzf jdk1.8.0_121.tar.gz mkdir /usr/j ...

Added by alonso on Wed, 15 Jul 2020 19:21:43 +0300

Spring source code interpretation of "IOC container 2-Bean loading process"

In the last article, we implemented a simple IOC container. In this article, we will introduce the implementation of Spring IOC container. 1. Preparation In order to learn the source code implementation of Spring, we need to prepare the source code environment of Spring. At this time, we generally ...

Added by djg_uk on Tue, 30 Jun 2020 09:33:14 +0300

Fundamentals of Java EasyExcel - Reading

preface Always believe that good things are about to happen background Some time ago, I encountered such a problem when crawling the website data. There is a data source. Because of the large amount of data, it is not displayed on the page, only a download button is provided. Now it is necessar ...

Added by pipe_girl on Thu, 25 Jun 2020 13:20:40 +0300

ActiveMQ encoding implementation

1. ActiveMq coding implementation Create a new maven project corresponding to pom.xml Some contents of the file are as follows. jdk is 1.8 and other configurations are generated automatically. <dependencies> <dependency> <groupId>junit</groupId> <artifactI ...

Added by IcedEarth on Wed, 24 Jun 2020 08:20:44 +0300

Explosion series: in depth exploration of automatic construction technology of Gradle

0 preface   Obviously, Gradle is a powerful build tool, and many articles only treat it as a tool. However, Gradle is not only a powerful build tool, it looks more like a programming framework. The composition of Gradle can be divided into the following three aspects:   1) , groovy core syntax: including groovy basic syntax, closure, dat ...

Added by datoshway on Wed, 24 Jun 2020 04:54:07 +0300

Authentication and authorization of spring security oauth2.0

In addition to oauth and shiro, we learn oauth 2.0 here 1.1 Authentication and authorization are two basic concepts to solve software system security. Authentication is to verify whether the user's identity is legal, and authorization is to verify whether the user has the authority to operate resou ...

Added by phpnwx on Sun, 21 Jun 2020 13:26:10 +0300