IDEA uses IDEA to build SSM framework projects

1. New Project Create a new Maven project in IDEA using the Maven Archetype prototype: maven-archetype-webapp The new project structure is: 2. New package directory New Java Code Directory: src.main.java New hierarchical model package under src.main.java, groupId with project (for reference only) common: store global variables, public enum ...

Posted by Felex on Sat, 04 Apr 2020 10:17:31 -0700

spring boot jap+mybatis druid multi data source configuration

In fact, it is not difficult to configure spring boot jap+mybatis druid with multiple data sources The key cannot be confused. Otherwise, after the configuration is completed, the connection of the druid data source may explode some strange errors, such as connection timeout, connection unavailable, etc Reference resources: Create a DataSour ...

Posted by marcusb on Sat, 04 Apr 2020 04:01:17 -0700

Mybatis: how to use mybatis

1, Create a project (this article takes the project that Idea builds based on Maven as an example) New->Project                   I choose my local Maven and configuration here       Finally, click Finish       2, Add dependency package in configuration file Add package dependency of Mybatis, JDBC driver and log4j log management ...

Posted by piyushsharmajec on Fri, 03 Apr 2020 18:46:29 -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

Remember a packet scan error

For a long time, I was very distressed about the problem of unable to inject dependency. For similar problems, I made the following summary: 1. For distributed architecture If the prompt indicates that the dependency cannot be injected, consider which project is not referenced. For the war package, all references should be made, for example:   ...

Posted by shams on Wed, 01 Apr 2020 11:06:51 -0700

Spring boot transaction related (druid+mybatis)

springboot transaction related 1. Enable global transaction support Enable @ EnableTransactionManagement in SpringbootApplication to support @Transactional Enable APO configuration support @ EnableAspectJAutoProxy (exposeProxy = true) to support automatic transaction configuration in aop mode Where exposePorxy defaults to false and is set t ...

Posted by vipul73 on Tue, 31 Mar 2020 21:32:20 -0700

Related use of Python requests Library

Related use of requests Library More dry cargo Distributed Combat (dry goods) spring cloud combat (dry goods) mybatis combat (dry goods) spring boot combat (dry goods) React introduction actual combat (dry goods) Building a small and medium-sized Internet enterprise structure (dry goods) python learning continuous update Elast ...

Posted by aron on Tue, 31 Mar 2020 10:35:58 -0700

Spring boot (III) integration with mybatis

Preface With the release of spring boot2.0. The API interface of the project team has considered the transformation to spring boot. We always use mybatis as the underlying interface, so in this article, I specially practiced the integration of mybatis in spring boot.   1, Preparations 1,pom.xml   1 <dependencies> 2 &lt ...

Posted by ntnwwnet on Tue, 31 Mar 2020 02:57:27 -0700

Do you really change your status?

In enterprise applications, there are too many scenarios involving modifying state. For example, after an enterprise enters the network, it needs to check its qualification. After the individual receives the task, the enterprise administrator shall review the receiver. In the application management system, usually as shown in the figure below, ...

Posted by Pastulio on Mon, 23 Mar 2020 06:45:23 -0700

Pretty boy, is spring boot still in Baidu search configuration? The old driver taught you a trick!!!

Guide reading Recently, chen company is busy, in order to ensure the high quality of the article, it may take two days to change, here Chen said sorry first!!! Yesterday, a friend asked me how to integrate Redis with SpringBoot. He said that Baidu Google search is not reliable. I was shocked. So you integrated spring boot with Internet sear ...

Posted by wilburforce on Sun, 22 Mar 2020 01:17:30 -0700