Day58 Java Web Framework phase - SSM framework exercise (user data background management, login interceptor)
SSM practice
Today's source code and materials:
Links: https://pan.baidu.com/s/19XDTuRre1A3JFlKhm2Aqbw
Extraction code: ls63
Demand:
1. Role list display and add / delete operation
2. User list display and add / delete operation
3. Delete user and role operations
4. User login operation
5. Configure ...
Posted by chombone on Thu, 27 Feb 2020 01:37:52 -0800
Notes configuration and principle of spring MVC
Spring MVC configuration and underlying principles
Import spring MVC jar package
Configure the total (front-end) controller web.xml
Add spring MVC configuration file src/appContext.xml
Write Controller and handle connection and method
The imitation of the underlying principle of spring MVC ...
Posted by nayone on Wed, 26 Feb 2020 20:29:28 -0800
Spring MVC notes method parameters and handling ajax
Forwarding and redirection of spring MVC
Configuring the view parser in spring-mvc.xml
<!-- Try parser springMVC Managerial jsp File location should be in /WEB-INF/meto/ -->
<bean id="jspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<prop ...
Posted by ayampanggang on Wed, 26 Feb 2020 20:29:22 -0800
Java Servlet and MVC programming mode
Servlet
Servlet is the foundation of JSP (Java Servlet Pages), which is essentially a Java class running on the server side, receiving requests from clients and responding.
Tomcat's containers are divided into four levels: Container, Engine, Host and Servlet. The relationship is as follows
The s ...
Posted by BoukeBuffel on Wed, 19 Feb 2020 22:40:41 -0800
66 Linux Tomcat nginx reverse agent
Experimental catalogue
Please be sure to check the basic environment settings of the previous blog
nginx reverse proxy
Dynamic and static separation based on nginx reverse agent
httpd reverse proxy tomcat
Using ajp protocol to reverse proxy tomcat in httpd
Jump to the end of the article
Please ...
Posted by boyakasha on Thu, 13 Feb 2020 06:32:54 -0800
Spring boot remove embedded tomcat and package to run in tomcat
Remove embedded tomcat and add jsp dependency
Remove embedded tomcat
Removing embedded tomcat from spring boot dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!-- Remove embedded to ...
Posted by j0sh on Wed, 12 Feb 2020 08:42:55 -0800
Quick learning - comprehensive case restull CRUD
Chapter 7 comprehensive case
7.1 restrl? Crud? Requirements
7.1.1 display all employee information
URI: emps
Request method: GET
Display effect
7.1.2 add operation - go to add page
Show add page:
URI: emp
Request method: GET
Display effect
7.1.3 add operation - add employee
Add employee ...
Posted by saunders1989 on Wed, 12 Feb 2020 04:39:42 -0800
Reflection of Java Foundation
Java reflection mechanism is a very powerful function, which can be seen in many large projects such as spring and mybatis. Through the reflection mechanism, we can get the type information of the object during running. With this feature, we can implement design patterns such as factory pattern and agen ...
Posted by les48 on Sun, 09 Feb 2020 03:53:45 -0800
User registration and login based on struts 2
After these days of learning, I have learned some basic knowledge about Struts. Here, I use Struts 2 to realize user registration and login, which helps us to better understand some working mechanisms of Struts.
First of all, import the necessary jar package of Struts2 and add configuration information in the web.xml configura ...
Posted by doobster on Fri, 31 Jan 2020 14:27:40 -0800
SpringMVC Annotation Configuration
Configuring spring mvc with annotations
(1) configuration file for spring mvc
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="htt ...
Posted by pwes24 on Thu, 30 Jan 2020 17:43:35 -0800