Design and implementation of self defined persistent layer framework

Traditional jdbc Code: package com; import java.sql.*; /** * @author liuyj * @Title: JdbcTest * @create 2020-05-27 17:31 * @ProjectName algorithm-Exercise * @Description: TODO */ public class JdbcTest { public static void main(String[] args) { Connection connection=null; PreparedStatement preparedStatement=null; ...

Posted by mraiur on Wed, 27 May 2020 04:46:12 -0700

Tomcat CAS (single sign on) version 5.2x configuration database access - yellow Tong

The 5.2 version of CAS single sign on is really a big change. I came up with it after reading a lot of data. The general steps of configuration and the steps of configuring CAS and database are as follows: 1. Copying jar package, 2. Configuring application.properties Database configuration access, 3. Establish database data Preparation be ...

Posted by alivec on Fri, 22 May 2020 09:13:14 -0700

The last packet sent successfully to the server was 1 milliseconds ago.

Weird database exception: There are mainly two abnormal sections as follows 1. Connection reset The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.Na ...

Posted by TFD3 on Fri, 22 May 2020 08:03:25 -0700

Integrating sharding JDBC to realize data desensitization in JPA project

introduction In the previous blog post, the database desensitization scenario and scheme have been completely introduced. The sharding JDBC open source project from Jingdong Digital Technology Co., Ltd. has realized this function transparently through the way of data source intermediate agent. However, although the function has been realized, ...

Posted by rocksolidsr on Mon, 18 May 2020 20:31:28 -0700

How to call SPL script in Java

[Abstract]The set solver provides JDBC driver, which is easy to embed into Java program calls. The methods are similar to executing SQL and stored procedures in Java. The structure diagram is as follows: First, deploy JDBC to Java application project. In short, put the jar package and configuration file required to load the aggregator when st ...

Posted by ronverdonk on Sun, 17 May 2020 20:27:34 -0700

java Concurrent Programming: using object waiting and notification mechanism to implement a connection pool with waiting timeout

As we all know, Java Object objects provide interfaces such as wait() and notify()/notifyAll(), which are important parts of concurrent programming. They play a very important role in the cooperation between multi threads, and there are many scenarios that can be used in the actual development. Needless to say, today we will use this mechanism ...

Posted by ZaphodQB on Sun, 17 May 2020 07:29:21 -0700

External configuration and usage records of SpringBoot

Statement: if there are any mistakes, please point out! Make a note of some of the problems encountered when using spring boot configuration, although this problem is caused by lack of knowledge. Make a note to avoid forgetting again after a period of time, just in case. If you can help the comrades who meet the same problems in your bl ...

Posted by lena_k198 on Sun, 17 May 2020 04:04:45 -0700

Spring boot Learning Series -- declarative transaction

1, Spring's transaction mechanism All data access technologies have transaction processing mechanisms, which provide API s to enable transactions, commit transactions to complete data operations, or roll back data in case of errors. Spring's transaction mechanism is to use a unified mechanism to handle transactions of different data a ...

Posted by fredi_bieging on Mon, 11 May 2020 00:00:46 -0700

Using mybatis to dynamically load external sql

background I don't know if there is such a puzzle in your company. Many departments often ask your department to provide interfaces to query some data. The interface basically has no business logic. An SQL is enough, but it takes time and effort to develop an interface for this SQL. Many people also want to solve it. For example, they often wri ...

Posted by snake310 on Sun, 03 May 2020 14:14:16 -0700

To write JAVA to Xiaobai to link MySQL database (JDBC):

As a review and summary note, I have listed several jdbc steps, followed by a simple example, in which the try block is handled by the reader /* *1. Download the driver package: com.mysql.jdbc.Driver. There are a lot of download resources on the Internet. You can find duniang yourself, which will not be provided here; * *2. Import the drive ...

Posted by tomas.srna on Thu, 30 Apr 2020 14:14:05 -0700