I. What is mock? The role of mock
mock is a test tool that achieves its desired results by simulating uncontrollable or complex request results (such as third party requests) and controlling request parameters. Popularly speaking, it is the &quo ...
Posted on Mon, 19 Aug 2019 01:52:30 -0700 by northk
Bean s are often used to configure relevant information or to rely on injection to prevent hard coding and better unit testing.
Bean management is done by Spring. When a Bean object is needed, Spring intercepts your request and returns the existing Bean object to you instead of creating a new object ...
Posted on Fri, 09 Aug 2019 02:20:56 -0700 by vietnamese
1. Common Notes and Functions
Declare that the current class is a configuration class (equivalent to an xml file for a Spring configuration)
Automatically scan and register all classes using @Service,@Component,@Controller,@Repository under the specified package ...
Posted on Thu, 08 Aug 2019 18:46:04 -0700 by grungefreak
I. General Thought of SQL Monitoring
In Java, SQL monitoring is generally implemented through proxy mode, as follows:
On the right is the JDBC interface class.
On the left is the proxy class, which needs to implement the JDBC interface and hold object instances of the interface class.
The database connection factory used to get the JDBC inte ...
Posted on Sun, 04 Aug 2019 04:13:50 -0700 by Simply Me
Write login.html login page
Using Druid database connection pool technology to manipulate user tables in mysql database
Encapsulation of JDBC using JdbcTemplate Technology
Log in successfully jumped to Success Servlet display: Log in successfully! User name, welcome to you
Logon Failure Jump to ...
Posted on Wed, 31 Jul 2019 01:43:03 -0700 by big_al
The project contains code, required jar packages and sql files
I. Introduction to MyBatis
MyBatis, like Hibernate, is an orm persistence framework. Native jdbc operations have a lot of repetitive code (such as registration driver, connection creation, statement creation, result set ...
Posted on Tue, 30 Jul 2019 06:58:52 -0700 by dimxasnewfrozen
Vert.x provides an API for asynchronous access to the database. Database operations are time-consuming and can easily block threads using the traditional synchronization model, resulting in overall performance degradation. Therefore, we need to use the asynchronous API provided by Vert.x for database operations.
Vert.x provides a very low leve ...
Posted on Thu, 25 Jul 2019 12:44:04 -0700 by cfgcjm
The development environment ide, mysql database, Spring+SpringMVC+Mybatis, Tomcat 8.5, and jdk use version 1.7.
Step 1: Import the jar package
AOP federation+weave+c3p0 database connection pool+MySQL connection driver+jstl
Links: https://pan.baidu.com/s/1B_JN... Extraction Code: ...
Posted on Mon, 22 Jul 2019 18:11:50 -0700 by tadapapaya
SpringBook Data Source Configuration
SpringBook Data Source Configuration (mysql as an example)
About properties and yml File Configuration
Data Source Other Configurations - Require a corresponding configuration file (Integrable ...
Posted on Fri, 19 Jul 2019 03:52:56 -0700 by don_s
1. Installing Apache a. Installation, and set to boot start yum install httpd httpd-devel
service httpd start
chkconfig httpd on b. Change port to 80 vi /etc/httpd/conf/httpd.conf
Posted on Tue, 16 Jul 2019 15:28:36 -0700 by ianr