Strts2 Result View and Action Type

Result View 1. Result View Concept The return value of action method is String type. It returns the name of the corresponding result view. In action class, return keyword is used to express it. In corresponding struts.xml file, tag is used to express it.2. Result View Properties <result name="succe ...

Posted on Sun, 04 Aug 2019 00:15:57 -0700 by first_lady_the_queen

1. The Creation of Containers

By quickly building a spring-based web application with idea, we can start with the spring listener in web.xml 1.1 context Creation When tomcat starts a webapp application, it uses multithreading to call the start method of StandardContext, and when StandarContext starts, it calls the listener that im ...

Posted on Sat, 03 Aug 2019 23:57:08 -0700 by acidglitter

[Start class javaEE 190802 per day] Basic overview of mybatis and first program

Introduction to mybatis What is mybatis MyBatis is an excellent persistence layer framework and is a semi-automated ORM framework It encapsulates the process of using JDBC to manipulate the database so that developers only need to focus on the SQL itself rather than on the complex process code of jdbc, such as registering drivers, creating con ...

Posted on Fri, 02 Aug 2019 17:50:38 -0700 by cody44

Mule Learning (6. Controlling the Flow of Messages - Data Routing)

Links to the original text: https://www.cnblogs.com/enjoyingsoft/p/10262223.html 1. Use scenarios Let's look at a common application scenario. Our integrated application can receive requests from clients to submit orders. There are many ...

Posted on Fri, 02 Aug 2019 00:39:30 -0700 by postmanager

Parsing xml files with dom4j and encapsulating them in an entity class by reflection

Links to the original text: https://www.cnblogs.com/baiqiantao/p/7478523.html First, build a maven project to introduce the corresponding dom4j Maven dependencies into pom.xml <dependency> <groupId>org.dom4j</groupId> ...

Posted on Thu, 01 Aug 2019 03:06:41 -0700 by LordMerlin

Java-SSM Framework Building-Spring MVC Framework Building

Spring MVC is responsible for the presentation layer that interacts with the page, so in addition to configuring its own spring mvc. xml, it also needs to configure the front-end controller in web.xml. Following is the construction of Spring MVC framework Configure web.xml: Configure the front-end cont ...

Posted on Wed, 31 Jul 2019 05:54:02 -0700 by joebWI

Spring Framework Learning Notes

I. Introduction to Spring Framework and Official Compressed Packet Directory Purpose of Spring Framework Without reinventing technology, the original technology will be more convenient to use. Core functions IoC/DI Control Inversion/Dependency Injection AOP Face-Oriented Programming Declarat ...

Posted on Wed, 31 Jul 2019 05:30:57 -0700 by corporateboy

struts--CRUD optimization (picture upload)

1. Upload Method Upload to the specified file directory, adding a mapping relationship between the server and the real directory to decouple the relationship between the uploaded file and tomcat) File Server 2.web Code Optimization 1 package com.yuan.crud.web; 2 3 import java.io.BufferedInputStream; 4 import java.io.BufferedOut ...

Posted on Tue, 30 Jul 2019 11:50:24 -0700 by FUNKAM35

helloworld of spring mvc in java

This article focuses on the basic use of springmvc, taking the helloworld project as an example. Directory structure: 1. New web project: springmvc_helloworld 2. Import the jar package under WebRoot\WEB-INF\lib commons-logging-1.1.1.jar spring-beans-4.1.6.RELEASE.jar spring-context-4.1.6.RELEASE.jar spring-core-4.1.6.RELEASE.jar s ...

Posted on Tue, 30 Jul 2019 10:19:40 -0700 by raan79

MyBatis Learning Records

Project Download The project contains code, required jar packages and sql files I. Introduction to MyBatis MyBatis, like Hibernate, is an orm persistence framework. Native jdbc operations have a lot of repetitive code (such as registration driver, connection creation, statement creation, result set ...

Posted on Tue, 30 Jul 2019 06:58:52 -0700 by dimxasnewfrozen