Java Day 34 (MVC Design Patterns)

MVC Design Patterns JSP Development Model Three-tier Architecture-MVC Exercise Student Information Management System Database preparation CREATE DATABASE stus; USE stus; CREATE TABLE stu ( sid INT PRIMARY KEY  AUTO_INCREMENT, sname VARCHAR (20), gender VARCHAR (5), phone VARCHAR (20), birthday DATE, hobby VARCHA ...

Posted by ritter on Tue, 06 Aug 2019 03:06:44 -0700

Strts2 picture upload

Strts2 picture upload Three upload schemes 1. Disadvantage of uploading to tomcat server: the storage location of uploaded pictures is too coupled with tomcat server, which is not commonly used. 2. Establishing binary fields in database tables and storing pictures in database. Disadvantage: directly ...

Posted by Tohou on Wed, 31 Jul 2019 04:26:56 -0700

MyBatis-01MVC Development Steps and Project Application of jsp+Servlet

java Naming specification Project Name: No requirement, not Chinese Package: Company Domain Name Reversal Data access layer: dao,persist,mapper Entities: entity,model,bean,javabean,pojo Business logic: service,biz Controller: controller,servlet,action,web Filter:filter Exception:exception Listener: l ...

Posted by chigley on Wed, 31 Jul 2019 02:44:41 -0700

IDEA configures and runs maven web project

I. Modification of project structure 1.1 The directory structure of the project just created in idea is not standard and needs to be changed manually. Standard directory structure: https://blog.csdn.net/nothings0o/article/details/77122646 Modify the directory structure: https://blog.csdn.net/qq_34 ...

Posted by canny on Tue, 30 Jul 2019 16:24:24 -0700

Picture upload for Struts

File upload based on previous blog Website: https://blog.csdn.net/weixin_45174537/article/details/97618636 File upload:Three upload schemes1. Upload to tomcat server The location where the uploaded pictures are stored is too coupled with the tomcat server 2. Upload to a specified file directory, add a m ...

Posted by mduran on Tue, 30 Jul 2019 11:58:05 -0700

Data processing for spring mvc in java

1. How to handle data submission from pages to Controller a) If a custom Controller is the interface that implements spring's Controller, data can be obtained through HttpServletRequest. b) If the custom Controller does not implement spring's Controller interface, you can automatically inject the HttpServletRequest into the parameter by addin ...

Posted by the7soft.com on Tue, 30 Jul 2019 10:20:03 -0700

Chapter 9. Servlet Writing Filters

Articles Catalogue About this article Thank Servlet Writing Filters Servlet filter method FilterConfig uses Servlet filter instance Servlet Filter Mapping in Web.xml Use multiple filters Application sequence of filters Description of each node in web.xml configuration About this article Underst ...

Posted by flyersman on Thu, 25 Jul 2019 20:38:20 -0700

SSM Framework (Spring + Spring MVC + MyBatis) Learn Notes, Lesson 2: Spring MVC

1. Spring MVC Workflow Diagram Configuration of Despatcher Servlet Configuration path: WebContent/WEB-INF/web.xml Configuration: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation ...

Posted by nedpwolf on Wed, 24 Jul 2019 20:29:02 -0700

Spring Integration Spring MVC

Spring Integration Spring MVC POM Add the org.spring framework: spring-webmvc dependency to the pom.xml configuration file <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.3.17.RELEASE</version&gt ...

Posted by fxb9500 on Mon, 22 Jul 2019 01:32:57 -0700

Implement an automatic code generation: Template Engine Freemarker

Catalog Preface Template Engine FreeMarker What is a template engine? What is FreeMarker? How does FreeMarker work? Join Dependency Create Configuration Instance Create a data model Get Templates Merge Templates and Data Integrate code ...

Posted by imstupid on Sun, 21 Jul 2019 09:41:25 -0700