[Spring] Pure java for Spring-hibernate integration

First import the corresponding jar package for Spring-hibernate Then prepare the file for the database connectionHibernate.propertiesAlsoJdbc.properties Hibernate.propertiesFile: Configure the hibernate dialect and automatic table building hibernate.dialect=org.hibernate.dialect.H2Dialect hibernate.hbm2ddl.auto=create Jdbc.propertiesFi ...

Posted by mjgdunne on Wed, 08 Jul 2020 07:43:57 -0700

Login case (black horse) - simple login case using druid database connection pool, JdbcTemplate technology and Servlet

catalog User login case requirements Development steps: 1. Create project, configuration file and import jar package. 2. Write logged in login.html Page. 3. Create the database userlogin and the table user. 4. Create a package com.qgl . 'domain'. Create an entity class user. The entity class user c ...

Posted by irish21 on Sun, 28 Jun 2020 17:55:56 -0700

SpringBoot take off - integrate spring security (Mybatis, JDBC, memory)

Interested friends can go to understand the first five articles, your praise is my greatest support, thank you! (1) SpringBoot take off - HelloWorld (2) The way to take off of SpringBoot: an analysis of the entry principle (3) SpringBoot take off road - YAML configuration summary (must know before gett ...

Posted by tsinka on Sat, 27 Jun 2020 21:54:52 -0700

362. Java intermediate 17 - [JDBC] June 27, 2020

0. Directory 1,JDBC 2. Import the jar package of MySQL JDBC for the project 3. Initialize driver 4. Establish a connection to the database 5. Create Statement 6. Execute SQL statement 7. Close connection 8. Use try with resource to automatically close the connection 9. Reference link 1,JDBC JDBC ...

Posted by han2754 on Sat, 27 Jun 2020 02:34:49 -0700

Beauty of mybatis source code: 2.8. Parse the objectFactory element and configure the object creation factory of mybatis

Parse the objectFactory element and configure the object creation factory of mybatis In Mybatis, there are many operations to instantiate objects through reflection, such as converting JDBC operation results to specific instance objects based on reflection. For example, the following data are available: MYSQL data: Name Sex (sex) Age panda ...

Posted by gazoo on Fri, 26 Jun 2020 20:48:57 -0700

Spring Boot 2.x basic tutorial: MyBatis multi data source configuration

Two days ago, we introduced Multi data source configuration of JdbcTemplate as well as Multi data source configuration of Spring Data JPA , let's talk about how to configure the multi data source scenario when using MyBatis. Add configuration for multiple data sources First, in the configuration file of ...

Posted by osti on Thu, 25 Jun 2020 19:19:18 -0700

How to use Jdbc and Servlet to operate Mysql database and write Android login server?

How to use Jdbc and Servlet to operate Mysql database and write Android login server? 1. Download and install Tomcat server 2. Open eclipse and choose Java EE mode 3. Configure Servers 1. Click on the blue word in the bottom configuration box (2) Select the corresponding versions of Apache and Tomcat in the server type (3) ...

Posted by itsgood on Thu, 25 Jun 2020 09:13:51 -0700

Source code analysis of DAO execution process in Mybatis

Article catalog 1. Query source code analysis of all methods 2. Source code analysis of insertion, update and deletion methods 3. Source code analysis of aggregate function getCount 1. Query source code analysis of all methods The implementation class of DAO interface calls SqlSession.selectLis ...

Posted by PerfecTiion on Tue, 23 Jun 2020 00:59:04 -0700

Mainstream Framework Learning - mybatis (java review day21)

I. mybatis Foundation 1. Analysis of Starter Case Design Mode public static void main(String[] args) throws Exception{ //Read Configuration File InputStream in = Resources.getResourceAsStream("SqlMapConfig.xml"); //Create SqlSessionFactory Factory /* Creating factory mybatis uses build ...

Posted by son.of.the.morning on Sat, 20 Jun 2020 19:15:42 -0700

Storage of real-time data, Spark+TDengine application in China Telecom Power Dynamometer System Monitoring Platform

Small T guide: the monitoring platform of electric power dynamometer system is designed and developed based on the equipment data acquisition and equipment Bank V2.0 application of China Telecom Shanghai ideal information industry (Group) Co., Ltd. The real-time data of the collected devices are stored in TDengine. Application background The p ...

Posted by ainoy31 on Thu, 18 Jun 2020 20:14:38 -0700