Introduction to the varnish foundation of WEB caching system

Previously, we talked about the cache control mechanism in http protocol and the introduction of varnish architecture components. Please refer to https://www.cnblogs.com/qiuhom-1874/p/12620538.html Today, let's talk about how to configure and use varnish; We mentioned earlier that there are two configuration files in varnish, one is / etc/varni ...

Posted by zarathu on Sat, 04 Apr 2020 17:38:21 -0700

java Web session Technology (cookie)

java Web(cookie) session Technology Set xml configuration information <!-- ************************** --> Create a select -- > < servlet name > demo05 < / servlet name > <! -- 2. Name select -- > < servlet class > come. Lanou3g. Demo05 < / servlet class > &l ...

Posted by seodevhead on Sat, 04 Apr 2020 11:11:53 -0700

session expired, intercept ajax request and jump to login page

1. Method 1: 1.1 use filter and ajax setup to intercept ajax and jump to the login page 1 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) 2 throws IOException, ServletException { 3 4 HttpServletResponse hresponse = (HttpServletResponse)response; 5 HttpServletRequest hr ...

Posted by steelaz on Fri, 03 Apr 2020 21:40:17 -0700

Installation and use of ActiveMQ

ActiveMQ installation Go to http://activemq.apache.org/ official website to download ActiveMQ Installation environment: 1. jdk required 2. Install the Linux system. The production environment is all Linux systems. Installation steps: Step 1: upload the ActiveMQ compressed package to the Linux system. Step 2: decompress. Step 3: start. Use the ...

Posted by TechXpert on Fri, 03 Apr 2020 11:28:46 -0700

(transfer) the server opens a new Multithread to use HibernateSession to prevent No session

Original link of blogger: https://blog.csdn.net/zhengwei223/article/details/30506455 The new thread needs to bind the Hibernate session to use the functions of transaction and delay loading in the new thread, otherwise no session exception will be exposed; terms of settlement: //Business method new Runnable() { @Over ...

Posted by mourisj on Fri, 03 Apr 2020 10:28:25 -0700

Hibernate association mapping

1.1 many to many relationship 1.1.1 use annotations to complete many to many configuration. To configure many to many, you only need to configure the intermediate table on one side and use mappedby on the other side to represent foreign key maintenance. A. Create PO class In the Teacher class: @Entity @Table( ...

Posted by dirtyfrenchman on Thu, 02 Apr 2020 22:47:40 -0700

Introduction to Hibernate II (add, delete, modify and check)

Hibernate's addition, deletion, modification and query increase There are many ways to add, such as save, persist, savaoroupdate and merge. The use method is as follows. The code here follows the previous section package test; import java.util.Date; import org.hibernate.Session; import org.hibernate.SessionFactory ...

Posted by L0j1k on Thu, 02 Apr 2020 15:28:25 -0700

Using graphic verification code Kaptcha in Java Web project

1, Verification code introduction The main way of generation: 1. Use Java Native mode, including the use of Servlet, AWT and ImageIO; 2. Use open source libraries, such as Jcaptcha, Kaptcha; (open source library of each graphic verification code: http://www.oschina.net/project/tag/248/captcha?lang=19) In addition, the generated code can be ...

Posted by gin on Thu, 02 Apr 2020 10:26:13 -0700

Analysis of some methods of WebUtils tool class in spring

If spring is used in your project (of course, for larger projects), the operation of session is much more convenient. If you need to take a value in the session, you can use the getSessionAttribute(HttpServletRequestrequest, String name) method of WebUtils tool (org.springframework.web.util.WebUtils) (1)getSessionAttrib ...

Posted by mlewczuk on Wed, 01 Apr 2020 23:00:18 -0700

MIT6.0001 notes, LECTURE 5:Tuples, List (aliasing, mutability, cloning details)

This blog post mainly explains the advanced features of list s, including aliasing, mutability, and cloning.These three attributes require special attention when assigning values.This note and code comes from MIT's public session, Lesson 5. <Introduction to Computer Science and Programming in Python>. aliasing For simple data t ...

Posted by Shawn Jetton on Wed, 01 Apr 2020 19:08:10 -0700