Use IDEA to create Maven project, integrate spring MVC and MyBatis framework, and complete a simple check-in program

catalogue Environment construction database Create Maven project Configuration item Write project Create package structure Writing back-end code pojo package util package   service package serviceimpl package controller package Create front-end display page Possible problems Tomcat startup failed. Garbled code problem We ...

Posted by davidjam on Sat, 09 Oct 2021 03:00:56 -0700

IDEA remote deployment debugging Java application

IDEA remote deployment debugging Java application Basic overview In our work, we may encounter that we cannot connect to the development environment database and other resources locally, but we want to develop and debug directly locally. At this time, it can be realized through the Run on... Function of IDEA. The principle is to connect ...

Posted by zaneosak on Sun, 03 Oct 2021 10:38:53 -0700

Mybatis01 - first program

1. Introduction Environmental description: jdk 8 + MySQL 5.7.19 maven-3.6.1 IDEA Before learning, you need to master: JDBC MySQL Java Foundation Maven Junit What is MyBatis MyBatis is an excellent persistence layer framework MyBatis avoids almost all JDBC code and the process of manually setting parameters and obtaining result set ...

Posted by drummer101 on Thu, 23 Sep 2021 00:43:25 -0700

Spring learning - IOC container

2.IOC container 1.IOC container 1. What is IOC (control reversal) (1) leave the object creation and the calling process between objects to Spring for management (2) purpose of using IOC: to reduce the coupling degree (3) People's case is IOC implementation 2.IOC underlying principle xml parsing, factory schema, reflection (1) .xml parsin ...

Posted by Natty_Dreadlock on Mon, 20 Sep 2021 10:21:19 -0700

Spring dependency injection XML based DI

DI: assign values to attributes spring calls the parameterless construction method of the class to create an object. Assign a value to the property after the object is created. To assign a value to an attribute, you can use: Tags and attributes in xml configuration filesUsing annotations DI classification: Set injection is also called set ...

Posted by fatmart on Wed, 08 Sep 2021 15:01:00 -0700