Why JDBC driver class loading destroys parent delegation mechanism

As you all know, the class loading mechanism of jdk is the parent delegation mechanism. When we need to load a class, for example, the following situations new an object of a class Calling static members (except for final constants) and static methods of a class Using the method of java.lang.reflect package to make reflection calls on classes ...

Posted on Sun, 17 Nov 2019 12:57:45 -0500 by markmh84

Process analysis of Sql execution by 02-MyBatis

Catalog Get Mapper A brief summary Important Classes Reference resources This blog focuses on MyBatis's Sql execution process. Details about caching and dynamic SQl generation during execution are not reflected in this blog. Write a blog analysis separately after the corresponding content. ...

Posted on Sun, 17 Nov 2019 04:47:36 -0500 by windwaker

Setting up ssm project configuration spring from scratch

This is my last one. You can click here to read it if you haven't read it https://www.jianshu.com/p/00b5633b8477 The last one is to configure web.xml. The core configuration is dispatcher servlet. The contextConfigLocation in it reads the xml configuration in the spring package of the project. <init-param> <param-n ...

Posted on Sat, 16 Nov 2019 17:02:50 -0500 by safra

Summary of problems related to Spring and mybatis integrated configuration files

Configure data sources <!-- To configure Druid data source --> <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close"> <property name="username" value="${jdbc.username}"></property> <property name="password" value="${jdbc.password}">&l ...

Posted on Sat, 16 Nov 2019 13:55:10 -0500 by badzv

Pit encountered in production butt test

background The production environment is deployed on the cloud server, and the data is stored in the cloud database. The default configuration may not be consistent with the test environment. So if you don't know the default configuration in advance and make corresponding modifications, you may encounter some pits. This is mai ...

Posted on Sat, 16 Nov 2019 13:06:03 -0500 by jemrys

DataGrid 2019.1.2 x64 connection MySQL error resolution

Reference example: How to avoid the trap of mysql url time zone The error code is as follows: java.lang.RuntimeException: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ser ...

Posted on Sat, 16 Nov 2019 10:28:19 -0500 by MikeTyler

Flume flume custom Interceptors implementation

Source address Two more articles. Flume(6) flume custom Sources implementation Flume(7) flume custom sink implementation , we summarize the flow of custom source and sink. This time, we implement an interceptor to clean and filter the data Implementation description of custom interceptor 1. Implement the interceptor interf ...

Posted on Fri, 15 Nov 2019 13:24:48 -0500 by t.bo

Java web development idea ssm development

Create project Create a new blank project Create parent project Check Maven do not check any frame - > com.zf.edu common parent  Delete src and add some codes  Create model subproject   Create a new model Write the field first, and then press and hold the shortcut key to generate the method (command+n select setting all to confirm)  ...

Posted on Fri, 15 Nov 2019 10:14:09 -0500 by l053r

Java SPI mechanism of component framework design

Document 11 / 12 has been completely updated! [Alibaba P7] advanced course for mobile Internet architects + BAT interview questions, click the following link to collect:[Alibaba P7] advanced course for mobile Internet architect + BAT interview questionThis article will introduce the design of component-based framework from the deep understandin ...

Posted on Thu, 14 Nov 2019 04:38:24 -0500 by goleztrol

JDBC connects MySQL database and realizes simple functions

1. Create a table in the database Briefly talk about MySQL: a database software, in essence, is a database management system (not accurate expression), whose function is to create n databases and N tables in each database use test;//Using the test database create table user_info(//Create a table named user? Info in the test da ...

Posted on Wed, 13 Nov 2019 11:25:57 -0500 by Cleanselol