Tomcat single machine multi instance
What is Tomcat?
Tomcat is a core project of the Jakarta project of the Apache Software Foundation, which is jointly developed by Apache, Sun and other companies and individuals. With Sun's participation and support, the latest Servlet and JSP specifications can always be reflected in Tomcat. Tomcat 5 ...
Added by Seol on Sun, 15 Mar 2020 14:08:40 +0200
[java framework] springmvc -- implementation of Controller by springmvc
1. Controller implementation of spring MVC
Spring MVC implements Controller mainly in the way of Controller implementation and full annotation implementation, among which full annotation implementation is a common way in current projects.
1.1. Controller implementation mode
1.1.1. Implement Controller interface
Create a class to implement the C ...
Added by badapple on Sat, 14 Mar 2020 15:44:48 +0200
Spring MVC interceptor and file upload
Spring MVC interceptor and file upload
Summary
Spring MVC's processor interceptor is similar to the Filter filter in Servlet development, which is used to preprocess and postprocess the processor. Developers can define their own interceptors to implement specific functions.
The difference between fi ...
Added by jbloom on Sat, 07 Mar 2020 13:12:24 +0200
[spring MVC] 2. A simple introduction case
Article directory
Requirements for entry procedures
1. Create webapp project and introduce jar package: pom.xml
2. Configure the core controller (configure dispatcher servlet)
3. Write the configuration file of springmvc.xml
4. Write index.jsp and HelloController controller classes
5. Create the page ...
Added by adwfun on Mon, 02 Mar 2020 08:22:03 +0200
Four methods of transferring data to page in Spring MVC
When we used Servlet + JSP to develop web applications, we usually used the four scopes of Servlet: request,session,page,application to pass values to the page. Spring MVC certainly supports the native APIs of these servlets, but it also provides us with more powerful API support. Let's discuss how spri ...
Added by cyberdwarf on Sat, 22 Feb 2020 11:46:10 +0200
Spring security permission system of Java framework
SpringSecurity
Spring Security integrates spring technology stack, provides the overall security solution of Java EE application, and provides comprehensive security services. Spring Security supports a wide range of authentication models
Module division
Core - spring-security-core.jar
Core modules: core authentication, authorization, JDBC ...
Added by angelac on Thu, 20 Feb 2020 12:01:16 +0200
Java Web notes - JSP&EL&JSTL
JSP:
1. instruction
*Function: used to configure JSP pages and import resource files
* format:
<% @ instruction name property name 1 = property value 1 property name 2 = property value 2...% >
* classification:
1. page: configure the
*contentType: equivalent to response.setContentType() ...
Added by jwadenpfuhl on Tue, 18 Feb 2020 05:12:31 +0200
Spring MVC learning notes 02
Process model data:
If data is needed for jump, VM can use the following methods
ModelAndView,ModelMap,Map,Model Data placement request Scope of action
//Example:
public String testModelMap(ModelMap mm){ //The returned ModelAndView has both data and view
Student student = new Student();
st ...
Added by conor.higgins on Fri, 14 Feb 2020 15:10:10 +0200
Analysis of the principle of Jsp in Spring Boot
The essence of jsp
The essence of jsp is servlet. You have deployed Java Web project with tomcat, and you know how to generate the corresponding servlet of jsp page in the work directory.
The essence of servlet is to encapsulate socket
jsp page
<%--
Created by IntelliJ IDEA.
User: wy
Date: ...
Added by bastien on Tue, 11 Feb 2020 18:28:24 +0200
Usage of BeanNameViewResolver of [Spring MVC] (custom View)
BeanNameViewResolver (custom View)
Bean name view resolver is a view resolver used to return customized views. As the name implies, after configuration, the controller returns the bean name of the customized view, which can return the customized view.
Custom View
package org.views;
import org.sprin ...
Added by nepeaNMedia on Tue, 11 Feb 2020 15:16:09 +0200