Design pattern notes: single pattern

Preface Design pattern is a simple and elegant solution to specific problems in the process of object-oriented software design. Each design pattern can solve a specific kind of problems, which is very helpful to improve the ability of programmers to solve problems. Therefore, recently, we began to sort out the design patterns. This is the first ...

Posted by ev5unleash on Sun, 24 Nov 2019 04:13:49 -0800

Overflow error: String longer than 2147483647 bytes problem

problem Sketch When using python requests to upload files, theOverflow error: String longer than 2147483647 bytes error detail Problem code data = {} with open("bigfile", "rb") as f: r = requests.post(PUBLISH_URL, data=data, files={"xxx": f}) traceback Traceback (most recent call last): File "test.py", line 52, in <module&g ...

Posted by Rupo on Fri, 22 Nov 2019 12:20:09 -0800

Notes roles strategy

Well, today we're going to learn about a wicket login and jump example, using the annotation method. Finally, the following interface is made. It's a little crude. The corresponding html page is shown below. <!DOCTYPE html> <html lang="en" xmlns:wicket="http://www.w3.org/1999/xhtml"> <head> <meta ch ...

Posted by wompas.dub on Fri, 22 Nov 2019 08:26:30 -0800

Before request and after request in Flask

Catalog 1. Premise, disadvantages of decorator 2. Before & after request 2.1 before Ou request analysis: 2.2 after request analysis: 3. Before you request application 4. Before you request application 5. Implement a simple page login with flash If one day the b ...

Posted by yarub on Fri, 22 Nov 2019 04:43:50 -0800

Mybatis Source Parsing - How does SqlSession implement database operations?

Mybatis Source Parsing (IV) - How does SqlSession implement database operations? _If you use a database request operation as a comparison, the first three articles are preparing for the request, and the real operation is what this article will tell you.As with the title, the most central point of this article is that SqlSession implements sourc ...

Posted by chiaki*misu on Thu, 21 Nov 2019 19:15:05 -0800

Spring boot integrates the Topic of activeMQ. If you don't understand it, you have to understand it

Preface Today, we share with you springboot's integration of activeMq's topic (Theme) - Publish / subscribe mode, similar to the WeChat public number. We can receive messages when we are concerned about the public. Topic needs consumers to subscribe before they can receive messages. If there is no consumer subscription, the message generated b ...

Posted by mashnote on Thu, 21 Nov 2019 13:02:43 -0800

Java essay: using java to dynamically generate random verification code pictures

Although java's graphics processing has always been a weak point, it does not prevent us from making some small things, such as our most common captcha image. Small knowledge points used: A little awt knowledge is used, but it's very simple. Basic image io output, which belongs to basic knowledge. OutputStream,ImageIO,Random ...

Posted by Castle on Wed, 20 Nov 2019 08:43:47 -0800

django sets cookie s and session s

1 set cookie s In this case, the application name is cookie Model model from django.db import models from django.db import models class UserInfo(models.Model): username = models.CharField(max_length=64) password = models.CharField(max_length=64) Database migration python manage.py makemigrations python manage.py migrate ...

Posted by BlueGemini on Tue, 19 Nov 2019 08:19:28 -0800

Django framework 5-cookie s and session s

Why do we have cookie s and session s? Browser sends http request to server, establishes session, server returns complete, session ends, browser and service disconnect Send the http request again and establish the session again. The user information will be lost. The server cannot distinguish the requested information. A login account. After t ...

Posted by NINTHTJ on Tue, 19 Nov 2019 07:26:37 -0800

191119_01 Site Integrated QQ Third Party Login

Site Integration QQ Third Party Authorized Login Author: Shao Fa Official website: http://afanihao.cn/java   This is the official accompanying document for the Java Learning Guide series. The content describes how to integrate QQ's third-party authorized login function in the website and demonstrates the project's development environment b ...

Posted by anand on Mon, 18 Nov 2019 20:58:42 -0800