Java Description Design Patterns (19): Template Method Patterns

Source code for this article: GitHub. Click here || GitEE. Click here 1. Life Scene Usually the development process for an Internet application is as follows: business requirements, planning products, program development, test delivery.This process is now described based on the template method pattern. public class C01_InScene { public sta ...

Posted on Thu, 14 Nov 2019 20:08:44 -0500 by LacOniC

Basic configuration of spring MVC

Record the steps to build the spring MVC framework I. create a new Java Web project, springmvc1, and import the jar package in lib This project uploads GitHub, which is convenient to download jar package https://github.com/yeyangtao/springmvc 2. web.xml file under Web inf Among them, serve name's spingmvc will be used in the next step. ...

Posted on Sat, 09 Nov 2019 10:45:44 -0500 by Saeven

Two traversal methods of nested map set in java learning notes

Preface The traversal method of nested map set is still keySet and entrySet, one by one case //Define a collection to save the student ID and name of Java EE students //Define a set to save the student number and name of Ui //Define a set to save the student number and name of the web Map&l ...

Posted on Wed, 30 Oct 2019 13:07:58 -0400 by MA06

Simple configuration of spring security and detailed explanation of some tags

1. Importing dependency in pom.xml file <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>4.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springfr ...

Posted on Thu, 17 Oct 2019 14:15:55 -0400 by Stryker250

Spring cloud learning: the simplest way to build a spring cloud

References: [JavaEE] Five minutes to build Spring Cloud environment and enter the era of micro-services Thank you for leading you into the Spring cloud world. The main purpose of this blog is to record your learning of Spring cloud and to organize your knowledge. It would be better if you could help more young people. ps: This article is ma ...

Posted on Wed, 09 Oct 2019 17:20:35 -0400 by dbrown

First form (Head first servlet+Jsp) (experiment 1)

Links to the original text: http://www.cnblogs.com/zoeyqq/p/6834661.html HTML for the first form <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC " ...

Posted on Tue, 08 Oct 2019 01:31:09 -0400 by Skipjackrick

Annotations for @RequestMapping, @PathVariable in spring MVC

1. Mapping requests using @RequestMapping springmvc uses the @RequestMapping annotation to specify which URL requests can be processed for the controller Class and method definitions under control can be annotated @RequestMapping: Class Definition ...

Posted on Sat, 24 Aug 2019 03:06:49 -0400 by Altair

Specific Analysis of Java-Servlet Request Mode doXXX and service

Speaking of the way Servlet receives and processes requests, you are not unfamiliar, such as doGet, doPost, service... So how do they perform behind their backs? How does the server choose to know? Let's discuss it here.   The code of the case in this section is enclosed as follows: web.xml <?xml version="1.0" encoding="UTF-8"?> & ...

Posted on Sat, 17 Aug 2019 04:45:15 -0400 by newzub

Parsing xml files using SAX

SAX parsing using JAXP (XMLReaderFactory, XMLReader, SAXParserFactory, and SAXParser) 1. We do this through XMLReaderFactory, XMLReader, as follows 1.adopt XMLReaderFactory Establish XMLReader object XMLReader reader = XMLReaderFactory.createXMLReader(); 2. Set Event Processor Object reader.setContentHandler(new MyDefaultHandler()); ...

Posted on Sat, 13 Jul 2019 13:49:38 -0400 by hayson1991

Java Servlet workflow and source code parsing

About Servlet learning or in school, self-taught Java, that is, just to understand what Servlet is and how to use it, now slowly understand a lot of frameworks and so on are done on Servlet extensions, but also began to understand their own foundation is not good. Now let's go back and learn about Servlet. Use of Servlet Almost forgotten about ...

Posted on Tue, 09 Jul 2019 19:28:57 -0400 by cerin