Do you still need to learn JDBC? How much do you need to know?
Preface
Only a bare head can make it stronger.
The text has been included in my GitHub selected articles. Welcome to Star: https://github.com/ZhongFuCheng3y/3y
I don't know if you have written JDBC in your work. I went to a small company as an intern in my junior year. JDBC is used in it, but it encapsulates several tool classes. When ...
Posted by gte806e on Sun, 05 Apr 2020 09:14:17 -0700
[Seata microservice distributed transaction] 2. Construction of Seata microservice distributed transaction project
Citation dependency
<!--seata-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-seata</artifactId>
<exclusions>
<exclusion>
<artifactId>seata-all</artifactId>
<groupId>io.seata</groupId>
< ...
Posted by paul2463 on Sat, 04 Apr 2020 03:27:30 -0700
Deep understanding of ServiceLoader class and SPI mechanism
Recently, we are reconstructing projects ourselves. In order to meet the 82 principle (I hope 80% of businesses can be fixed by exhausting, and only 20% of businesses allow special definitions), after fixing some standard processes, for example, we have enlarged the capability of atomic services. When we enlarge the capability of atomic service ...
Posted by alexinjamestown on Sat, 04 Apr 2020 01:02:54 -0700
(6) Build dubbo distributed platform maven build config configuration project
In the previous article, we introduced build dubbo distributed platform maven build ant parent project. The framework uses maven to build. According to our plan, we need to build all subprojects. Today, we focus on the construction process of ant config configuration file project.
Introduction: The purpose of independent ant config project is ...
Posted by adaykin on Fri, 03 Apr 2020 21:35:27 -0700
JDBC details of Java
JDBC
JDBC(Java Database connectivity) is a Java API for executing SQL statements
Can provide unified access to a variety of relational databases
Java database connection specification (a set of interfaces)
There are four core classes of JDBC:
DriverManager create connection
Connection connection class
S ...
Posted by skaforey on Fri, 03 Apr 2020 13:54:08 -0700
ActiveMQ and spring integration
1 producers
Step 1: reference the relevant jar package.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jms</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
</depende ...
Posted by just_nobody on Fri, 03 Apr 2020 04:43:23 -0700
Java Web database backup and restore
1. Set the relevant database connection statements in the jdbc.properties file
jdbc_url=jdbc:mysql://ip address: port / database name? Characterencoding = utf8 & zerodatetimebehavior = round
jdbc_username=User name
jdbc_password=User password
2. Read the modified properties file in applicationContext.xml
<context:pr ...
Posted by oscar2 on Fri, 03 Apr 2020 01:52:07 -0700
Introduction to using JDBC template in Spring
Spring provides a powerful template class -- JDBC template to simplify JDBC operations. The data source DataSource object and the template JDBC template object can be defined in the configuration file in the form of Bean, giving full play to the power of dependency injection.
Case: use JDBC template to query all books
1. Introduce jar package ...
Posted by Loafin on Fri, 03 Apr 2020 01:06:22 -0700
MyBatis first program: HelloWorld
1. Download the jar package required by MyBatis
Download links of Github versions of MyBatis: https://github.com/mybatis/mybatis-3/releases
Download the JDBC driven jar package of the corresponding database
2. Prepare the database to use
create database School;
use School;
create table Users
(
id int primary key,
name varcha ...
Posted by tranzparency on Thu, 02 Apr 2020 14:05:48 -0700
Spring boot auto assembly principle
SpringBootApplication annotation
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class),
@Filter(type = FilterType.CUSTOM, classes = AutoConfigu ...
Posted by theprofession on Thu, 02 Apr 2020 01:45:43 -0700