1. JSP overview
1.1. What is jsp? (what)
JSP page is essentially a Servlet program. When visiting JSP page for the first time (after running Tomcat server, enter the path in the browser address bar), Tomcat server will translate this JSP page into a Java source file and compile it into class bytecode file. *So jsp is a java class in a ...
Added by visitor on Mon, 07 Mar 2022 20:58:33 +0200
Spring MVC requests and responses
1, Response of spring MVC
The data response methods of spring MVC are as follows:
Return string directlyReturn via ModelAndView object Write back data
Return string directlyReturns an object or collection
1. Page Jump
1.1. Directly return string
In the code for getting ...
Added by robin339 on Fri, 04 Mar 2022 15:45:35 +0200
The so-called dependency injection (DI) actually means that when a bean instance references another bean instance, the spring container helps us create a dependent bean instance and inject (pass) it into another bean.
Dependency: the creation of a Bean object depends on the container, and the Bean object depends on resourcesInj ...
Added by nikneven on Wed, 02 Mar 2022 00:06:47 +0200
Mybatis Learn Notes
I. Understanding Mybatis
MyBatis is an excellent persistence framework. It supports custom SQL, stored procedures, and advanced mappings. MyBatis eliminates almost all JDBC code and setting parameters and getting result sets. MyBatis can configure and map raw types, interfaces, and Java POJO s (Plain Old Java Objects, ...
Added by Chrisww on Wed, 23 Feb 2022 19:19:45 +0200
This article is mainly to build some structures of the project, complete the necessary packages, resources and configuration files, and configure the server to see if there is a problem. Now let's study together!1. Use maven to build the projectAdd the dependencies we need in the pom file, including spring MVC, spring and mybatis, jackson depen ...
Added by robb73 on Tue, 22 Feb 2022 10:49:24 +0200
We only look at payment here. We don't look at other things that have nothing to do with payment
1, Prepare page
There are three main pages
1. The first page is the ticket purchase page
2. Second page, payment details page
The three purple ones are related to our payment
3. The third page, payment success jump page
2, Prepare Q ...
Introduction to Spring framework
Overview of Spring framework
Spring is an open source design level framework, which solves the loose coupling problem between business logic layer and other layers. Therefore, it runs through the whole system application with the idea of interface oriented programming.
Spring is a lightweight java develo ...
What is IOC? IOC(Inverse of Control) is a design principle in object-oriented programming, which can be used to reduce the coupling between computer codes. Reverse the creation power of objects to the Spring framework!
In java, if a class wants to use the method of another class, it must create the object of this class in this class. ...
Added by veluit06 on Sat, 19 Feb 2022 19:25:17 +0200
IDEAMySQL 5.7.31Tomcat 8.5.64Maven 3.6.3
This is my environment. Don't make a big difference in the version.
CREATE DATABASE `ssmtest`;
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user`(
`userid` INT(10) NOT NULL AUTO_INCREMENT COMMENT 'user ID',
Added by unify34 on Sat, 19 Feb 2022 15:27:02 +0200
ssm: mybatis + Spring + spring MVC MVC three-tier architecture
JavaSE: study hard and get started quickly
JavaWeb: study hard, teachers lead, and get started quickly
SSM framework: study official documents, exercise self-study ability, exercise note taking ability and exercise project ability
SpringMVC + SpringBoot + Spring ...
Added by Deltran on Sat, 19 Feb 2022 06:57:49 +0200