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

Spring MVC self study log 04 (Controller and RestFul style)

Controller Controller complex provides the behavior of accessing application program, which is usually realized by two methods of interface definition or annotation definition. The controller is responsible for parsing the user's request and converting it into a model. In Spring MVC, a controller cla ...

Posted by googlehunter on Wed, 29 Jan 2020 19:19:03 -0800

Use of JSP~~JSTL~~Core Label Library~~out/set Labels

Set Label The set tag is used to set values within a range (request, session, or application) or to set property values for an object. The set tag is used in the following format: (1) Use the value attribute to specify the value of a variable within a specific range in the following format: <c ...

Posted by svivian on Tue, 28 Jan 2020 19:28:32 -0800

ssm background processing for uploading photos on wechat applet

The effect of wechat applet 1: Wechat code (2)wxxml <view class="container-body container-gray" style="display:{{showfootertab==0?'block':'none'}}"> <form bindsubmit="evaSubmit"> <view class="group"> <view class="group-header">Problem description</view> <vie ...

Posted by MrPotatoes on Tue, 28 Jan 2020 07:49:47 -0800

Generation of random verification code for jsp login page

Generation of random verification code for jsp login page There is a very strange and especially puzzling problem here, that is, ajax return value, json parsing has always been garbled, what req.responseText gets has always been garbled, which has been done for a long time, but can't be found out. W ...

Posted by jerryroy on Mon, 27 Jan 2020 07:21:00 -0800