Auto configuration data source of Springboot2.x

DataSourceAutoConfiguration @Configuration(proxyBeanMethods = false) @ConditionalOnClass({ DataSource.class, EmbeddedDatabaseType.class }) @EnableConfigurationProperties(DataSourceProperties.class) @Import({ DataSourcePoolMetadataProvidersConfiguration.class, DataSourceInitializationConfiguration.clas ...

Posted by jrobles on Sun, 23 Feb 2020 03:04:52 -0800

Spring takes notes the next day

Spring Learning Notes 1. Implementation of AOP based on aspect annotations Step 1, Create Bean s for Objects <!-- create object --> <bean id="book" class="com.itcast.aop.Book"></bean> <bean id="myBook" class="com.itcast.aop.MyBook"></bean> Step 2: Open AOP operations ...

Posted by Smruthi on Mon, 17 Feb 2020 17:35:45 -0800

Spring annotation driven learning notes declarative transaction

Environment building 1. Import dependent Data source, database driver, spring JDBC module <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version> ...

Posted by bdbush on Sun, 16 Feb 2020 21:53:56 -0800

MyBatis is that simple

0. Introduction to MyBatis 1) MyBatis is an open source Apache project iBatis, which was migrated to Google Code by Apache Software Foundation in June 2010. As the development team moved to Google Code, iBatis 3.x was officially renamed MyBatis and the code was migrated to Github in November 2013 2) The term iBatis comes from a combination of ...

Posted by nsantos on Fri, 14 Feb 2020 10:12:52 -0800

Spring framework - Part 2

Chapter 1: Spring's IOC implementation of CRUD 1.1 - Requirements and technical requirements Requirement: realize CRUD operation of account Technology: Using spring's IoC to manage objects Using dbutils as a persistence layer solution Using c3p0 data source 1.2 - environment construction 1.2.1-Maven project import dependency <dependen ...

Posted by davinci on Thu, 13 Feb 2020 23:29:13 -0800

General mapper learning notes

General Mapper notes Build development environment (spring boot) Database tableImport dependency <dependency> <groupId>tk.mybatis</groupId> <artifactId>mapper</artifactId> <version>4.0.4</version> </dependency> To configure server: port: ...

Posted by LightningSt on Wed, 12 Feb 2020 22:45:27 -0800

The book management system of Java practice (swing version) - other interfaces and function realization

Summary of this section This section mainly realizes the final function of the software and some summary of the project.   About the function of software The function of the software is to pop up a dialog box, tell the user some information about the software, and use the JDialog of swing to comp ...

Posted by opalelement on Tue, 11 Feb 2020 09:50:28 -0800

Simple login case

preparation: Import the required jar package, import it into the lib package under the web directory and WEB-INF directory, and add it into the module The following picture:Configuration database file druid.properties driverClassName=com.mysql.cj.jdbc.Driver url=jdbc:mysql:///Day14 you can create your o ...

Posted by Lukey on Sun, 09 Feb 2020 07:52:08 -0800

JDBC operation database and difference among statement, preparedStatement and callableStatement

The database can be operated easily by Java using JDBC API. In java8 and later, JDBC ODBC bridge connections have been dropped. For different databases, download the driver to the corresponding official website. Here are three common database driver names, driver class and corresponding connection strin ...

Posted by spiceweasel on Fri, 07 Feb 2020 01:45:48 -0800

Including source code analysis, in-depth Java thread pool principle

From the pool technology to the bottom layer implementation, an article takes you through the thread pool technology. 1. Introduction to pool technology In the process of system development, we often use pooling technology to reduce system consumption and improve system performance. In the field of prog ...

Posted by adren on Thu, 06 Feb 2020 23:46:43 -0800