java websocket message push

1. maven introduces dependency <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.3</version> </dependency> <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</art ...

Posted by studio805 on Tue, 05 May 2020 15:34:33 +0200

Making and verifying the verification code of Jsp+Servlet (1)

Method 1: BufferedImage+Graphics to make verification code 1. Make JSP page (as shown in the figure)         The code is as follows: 1 <body> 2 <form action="<%=request.getContextPath()%>/servlet/LoginServlet" method="get" /> 3 Verification Code:<input type="text" name="checkcode"/> 4 <img alt="Verification Cod ...

Posted by ilikephp on Sat, 02 May 2020 20:35:42 +0200

[authority] [interceptor for checking authority]

Environmental preparation The employee has logged in Store the permission expression set corresponding to the employee into the session, (Exps _in Check permission blocker Release conditions: The Action can be accessed without permission (the accessed method is not annotated) The employee is a super administrator ...

Posted by crusty76 on Sat, 02 May 2020 10:52:44 +0200

Basic part of flash in python framework (3) ------ operation of template

1.flask specific variables and functions: Variables: g, session, request, config Functions: URL for(), get flashed messages(), please pay attention to this function. Remember that it is a function. Don't forget to write brackets!!!!!!!!! I don't need to talk much nonsense. I'll go straight to the code to experience it: First, explain a bug. Whe ...

Posted by keith73 on Fri, 01 May 2020 11:01:27 +0200

Using SQLAlchemy in flask

In flask, many people prefer to operate the database through SQLAlchemy. In this case, it is recommended to use package instead of module to split the data model into a separate module. Such an approach is not necessary, but more reasonable. Flask-SQLAlchemy Extension Because SQLAlchemy is a general database abstracti ...

Posted by rahulephp on Fri, 01 May 2020 09:57:19 +0200

hibernate -- HQL query summary

hibernate -- HQL query summary HQL overview: Simple query of HQL Alias query for HQL: HQL polymorphic query: Sort query for HQL: Paging query for HQL: HQL retrieves a single object: Condition query of HQL: HQL uses aggregate functions: HQL group statistics: Projection query of HQL: HQL ...

Posted by JakeJ on Sun, 26 Apr 2020 16:09:42 +0200

Talk about my SqlConnection of canal

order This paper focuses on my SQL connection of canal ErosaConnection canal-1.1.4/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/ErosaConnection.java public interface ErosaConnection { public void connect() throws IOException; public void reconnect() throws IOException; public void disconnect() throws IOException; ...

Posted by DuFF on Sat, 25 Apr 2020 16:47:49 +0200

Nginx practice course nginx Solving session consistency

session viscosity Each request is allocated according to the hash result of the access ip, so that each visitor accesses a back-end server, which can solve the session problem. upstream backserver { ip_hash; server 192.168.0.14:88; server 192.168.0.15:80; } But there are disadvantages. There is a single risk. If I have logged in on port 192.1 ...

Posted by Rayne on Sun, 19 Apr 2020 15:02:31 +0200

iOS Automated Exploration Automated Test Framework pytest - Installation and Use

Automated Test Framework - pytest pytest is one of Python's most popular unit testing frameworks that helps you write test scripts more easily and supports a variety of complex test scenarios that can be used for app testing as well as function testing Official documents: https://docs.pytest.org/en/latest/   pytest has the following advant ...

Posted by Jason28 on Fri, 17 Apr 2020 19:04:01 +0200

Integration of MINA Framework with tomcat

In the previous article, we mainly discussed how the mina framework is used in the main function, but in practice, many web projects are started through tomcat, so it is necessary to integrate the mina framework into tomcat.This article focuses on how mina can be started in tomcat. The framework used by the web is the S ...

Posted by Pioden on Thu, 16 Apr 2020 18:05:14 +0200