Several ways to manipulate databases in java

History is a mirror Looking back on my own development and witnessing the history of times, let me talk about how java connects to databases 0 native jdbc Get started with jdbc, so people who are afraid of new entrants will already be immersed in packaging libraries and frameworks without even using native jdbc. Java database connecti ...

Posted by Rederick on Mon, 20 Apr 2020 18:57:26 -0700

MyBatis+Oracle in the execution of insert time and space value error reporting: source code to find solutions

To facilitate the test, the Demo code is given first: mybatis-oracle-config.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" 3 "http://mybatis.org/dtd/mybatis-3-config.dtd"> 4 5 <configuration> 6 <properties> 7 <property nam ...

Posted by SirChick on Wed, 15 Apr 2020 08:12:25 -0700

Source code analysis of Mybatis+Oracle with insert null error reporting

In order to facilitate SEO search, first of all, post the error content Different versions of Oracle drivers will report different errors 1 <dependency> 2 <groupId>com.oracle</groupId> 3 <artifactId>ojdbc6</artifactId> 4 <version>1.0</version> 5 </dependency> The error is reported as ...

Posted by cliffboss on Tue, 14 Apr 2020 11:36:29 -0700

SpringBoot series Mybatis integrated full detailed version

SpringBoot series (five) Mybatis integration Catalog About mybatis Project creation entity dao service serviceImpl mapper controller 1. About mybatis   MyBatis is an excellent persistence framework that supports customized SQL, stored procedures, and advanced mapping. MyBatis avoids almost all JDBC code and manual setting of parameters ...

Posted by pkellum on Tue, 14 Apr 2020 00:48:17 -0700

Spring Boot 2.X practice -- Spring Security login and registration

>Author: Xiao Xian > >Source code warehouse: https://github.com/zhshuixian/learn-spring-boot-2 For the Web system, it is necessary to control the access rights of pages and API interfaces. For example, it is necessary to block the access rights of non system users and control the access rights of different pages or interfaces. In Java ...

Posted by DonnieDarko on Sat, 11 Apr 2020 19:38:44 -0700

Spring Boot 2.X: SQL database (MyBatis)

I am Xiaoxian, a non slash youth who focuses on big data and distributed technology. I love Coding, reading, photography and life more! Source code warehouse: https://github.com/zhshuixian/learn-spring-boot-2 In the previous section Spring Data JPA In, it mainly introduces how Spring Data JPA connects to the database, and how to add, delete, ...

Posted by peDey on Sat, 11 Apr 2020 19:13:05 -0700

Spring Boot 2.x actual combat -- SQL database (Spring Data JPA)

I am Xiaoxian, a non slash youth who focuses on big data and distributed technology. I love Coding, reading, photography and life more! Source code warehouse: https://github.com/zhshuixian/learn-spring-boot-2 The previous section mainly introduces Spring Boot integrating Log4j2 and Slf4j to print and output logs to files. In the application d ...

Posted by Sam on Sat, 11 Apr 2020 19:05:16 -0700

Knowledge point ③: druid configuration and use in Spring Boot

Spring Boot druid configuration rely on Add druid dependency to Spring Boot project <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>${druid.version}</version> </dependency> To configure spring.datasource.url= spring.datasource.username= spring.datasour ...

Posted by madd_maxx on Sun, 05 Apr 2020 18:53:31 -0700

SpringBoot learning notes-014

Integrate Mybatis <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.2</version> </dependency> Steps: 1) . configure data source related properties (see Druid in the previous section) 2) . creating tables for data ...

Posted by Mhz2020 on Sun, 05 Apr 2020 03:41:40 -0700

How can the code for dao and entity be generated automatically in actual development?A tool for you

01 Focusing on your "Ape Story" friends, you know that previous articles have advocated rejection of CRUD. What is CRUD?Today let's talk about how the Java sisters and apes interact with the old database man.   Product Xiao Wang Tiao said forcefully: Ape classmates, let's launch a pop-up product in the near future, you first achieve ...

Posted by Vebut on Sat, 04 Apr 2020 22:52:17 -0700