Transaction control configuration based on xml file

Configure transaction manager <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver"></property> <property name="url" value="jdbc:mysql://localhost:3306/myword"></property> <property name="username" ...

Added by blt2589 on Tue, 21 Apr 2020 06:49:54 +0300

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 ...

Added by fifin04 on Wed, 15 Apr 2020 18:10:12 +0300

JDBC of database

JDBC JDBC(Java Database Connectivity) Java database connection specification (a set of interfaces) provided by Sun company JDBC core class DriverManager create connection Connection connection class Statement execute sql statement ResultSet result set JDBC connection steps 1. Registration driver 2. ...

Added by thinguy on Sat, 04 Apr 2020 18:04:51 +0300

Spring integrates spring MVC and hibernate

The previous article used maven to build a web environment, which records how to use spring to integrate spring MVC and hibernate, that is, spring + spring MVC + Hibernate framework integration.   Step 1: configure spring first Configure the spring configuration file applicationContext.xmls 1 <?xml version="1.0" encoding="UTF-8"?> 2 & ...

Added by HHawk on Fri, 03 Apr 2020 22:00:59 +0300

How does Java implement its own SPI mechanism?JDK Source

Note: The source analysis corresponds to JDK version 1.8 1 Introduction This is the first article on JDK Source Interpretation in Source Notes. In this article, we will explore the source code related to Java's SPI mechanism. 2 What is SPI mechanism So, what is the SPI mechanism? SPI is short for Service Provider Interface, which means Service ...

Added by cyball on Sun, 29 Mar 2020 05:05:48 +0300

BoneCP Connection Pool Reconnection Mechanism Analysis

1. Background BoneCP used by friend company Mysql connection pool, the application accesses Mysql as domain name, which is configured as follows:   jdbc:mysql://order.mysql.xx.cn:3306/order?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true All middleware access is through th ...

Added by navtheace on Sun, 15 Mar 2020 04:17:09 +0200

Mybatis generator automatically generates code and integrates swaggerui

Introduce dependency: <!-- MyBatis generator --> <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.3.7</version> </dependency> <!--Mysql Database driven--> <depend ...

Added by JamesyBHOY on Sat, 14 Mar 2020 16:25:58 +0200

MyBatis entry instance (select)

Development environment: Idea2018 Database: mysql 8.0.16 Purpose: to learn Mybatis Database preparation This instance uses mysql 8.0.16, user name root and password 123456 To create a database and create a test form: /*Create database*/ CREATE DATABASE tms default character set utf8; /*Create data ...

Added by skope on Sat, 29 Feb 2020 06:12:48 +0200

spring+atomikos+mysql8.0 completes distributed transactions

What is business? A group of sql operations related to the same data source are either completed or failed. What are the characteristics of transactions? Atomicity: success or failure Consistency: offset each other (e.g. seller + 200, buyer-200) Isolation: no interference between two parallel trans ...

Added by charliepage on Fri, 28 Feb 2020 11:14:46 +0200

Q sister brings you to earn extra money: a wave of high-quality welfare problems hit

Hello, everyone. I'm yours Must ask Sister Q. What interesting and challenging topics did sister Q find today? Let's have a look. Q1: How can Scrapy get the browser's temporary cookie s? Problem Description: How does the script get the same temporary cookie s as the browser? For example, lv's offici ...

Added by bluegray on Thu, 27 Feb 2020 11:14:06 +0200