Construction of the Simplest ssm Framework
1. Introduction to SSM (Baidu replication)
SSM (Spring + Spring MVC + MyBatis) framework set is composed of Spring and MyBatis open source frameworks (Spring MVC is part of Spring). It is often used as a framework for web projects with simpler data sources.
2. Construction of SSM framework
2.1 Cre ...
Posted by robh76 on Wed, 24 Jul 2019 22:16:15 -0700
[Learning Notes] Simple Use of JDBC _04
Database connection pool
Previous problems
In fact, the previous code has no problem, enough to operate the database.
But getting the connection object (driverManager.getConnection(String driverClassName, String url, String password);) is a resource-intensive step. Creating the connection object eve ...
Posted by bicho83 on Mon, 22 Jul 2019 01:50:54 -0700
Detailed explanation of SpringBoot automatic configuration
Principle of Automatic Configuration
When spring boot loads the main configuration class, it turns on the automatic configuration function @Enable AutoConfiguration
Role of Enable AutoConfiguration:
Add some components to the container using AutoConfiguration Import Selector
You can use the cont ...
Posted by zbee on Sun, 21 Jul 2019 04:01:45 -0700
Spring cloud distributed transaction Atomikos instance
Introduction to 0.JTA(Java Transaction Manager)
(1) jta and jdbc
Simply put, jta is a multi-library transaction. jdbc is a single-library transaction.
(2) XA and JTA
XA: XA is a specification or a transaction protocol. The XA protocol was first proposed by Tuxedo and handed over to the X/Open organization as the interface standard between ...
Posted by alext on Sat, 20 Jul 2019 02:44:14 -0700
Guice Concise Tutorial
Guice It's an open source dependency injection library for Google, smaller and faster than Spring IoC. Elastic search uses Guice extensively. This article briefly introduces the basic concepts and usage of Guice.
Learning objectives
Summary: Understand what Guice is and what its characteristics are.
Quick Start: Learn about Guice through examp ...
Posted by blkrt10 on Sun, 14 Jul 2019 17:09:13 -0700
Oracle Learning Day 3
1. Introduction to PLSQL
Oracle database extends SQL, and then adds some programming language features, which can control the execution process of SQL, and then realize some complex business functions.
1.1 Composition of PLSQL
Component
declare
- It's the declaration part.
begin
- yes plsql ...
Posted by Crazy Horse on Fri, 12 Jul 2019 14:12:02 -0700
Why Use Reflective Loading Database Driver
public static void main(String[] args) {
try {
Class.forName("com.mysql.jdbc.Driver");
String url="jdbc:mysql://localhost:3306/test";
String username = "root";
String password = "root";
Connection conn = DriverManager.getConnection(url, username, password);
Prepare ...
Posted by Deadmeat on Thu, 11 Jul 2019 16:16:41 -0700
Preliminary study of java SPI mechanism
Preliminary study of java SPI mechanism
1. SPI mechanism
The full name of SPI is Service Provider Interface. Most developers may not be familiar with this because it is for vendors or plug-ins. More detailed information is provided in the documentation of java.util.Service Loader. A brief summary of the idea of java spi mechanism. There are m ...
Posted by curtm on Tue, 09 Jul 2019 12:00:02 -0700
On JDBC and MyBatis
On JDBC and MyBatis
MyBatis is a Java-based, JDBC-encapsulated persistence framework.
1 JDBC
JDBC(Java Data Base Connectivity) represents a Java database connection. In the Java language, we use JDBC to operate relational databases.
1.1 Case Code
package core;
import java.sql.*;
/**
* JDBC Case class.
*
* @author Li Chengpeng
*/
public cl ...
Posted by Drewser33 on Tue, 09 Jul 2019 11:58:11 -0700
Phoenix Installation and Its Use
Introduction to Phoenix
Phoenix is an open source SQL engine for HBase. You can use the standard JDBC API instead of the HBase client API to create tables, insert data, and query your HBase data.Phoenix is an SQL engine built on HBase. You may have "Will Phoenix reduce the efficiency of HBase?" Or "Is Phoenix inefficient?" ...
Posted by n14charlie on Sun, 07 Jul 2019 13:17:47 -0700