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
Solution to get httpsession in spring webSocket
If you don't know the basic usage of spring webSocket, please refer to: webSocket implementation of code scanning login
Handshake Interceptor: the implementation class of HttpSessionHandshakeInterceptor overrides the beforeHandshake method, as follows
@Override
public boolean beforeHandshake(ServerHttpRequest request, ServerHttpResponse res ...
Posted by ejaboneta on Wed, 01 Apr 2020 16:45:10 -0700
Oracle 11g single instance silent installation practice record (linux)
oracle 11g single instance silent installation
AURHOR: Oracle_Ran
Environmental Planning:
OS Version : Red Hat Enterprise Linux Server release 6.7 (Santiago)
Oracle Version: 11.2.0.4
Please refer to Oracle single instance installation document for operating system environment configuration
1. Upload the Oracle installation media, enter the ...
Posted by jonshutt on Wed, 01 Apr 2020 11:38:21 -0700
Integrating Spring Session with Redis
There are so many specific features of Spring Session. The specific content can be learned from the document. The author makes a summary. The features of Spring Session include but are not limited to the following:
Use GemFire to build httpSession of C/S architecture (not concerned)
Use the third-party warehouse to realize the cluster sessi ...
Posted by ron814 on Wed, 01 Apr 2020 06:13:29 -0700
Implementing Http server in Golang and parsing header parameters and form parameters
In HTTP service, header parameters and form parameters are often used. This article is mainly to practice how to parse the parameters and form parameters in the header of HTTP request in Go language. The specific code is as follows:
package server
import (
"net/http"
"strconv"
"fmt"
)
func HttpStart(port int) {
http.HandleFunc(" ...
Posted by KCAstroTech on Wed, 01 Apr 2020 05:54:39 -0700
Unit testing with JUnit in Intellij
These days, I'm groping for Intellij idea to record some small knowledge points.
First contact with Intellij and use Hibernate framework to operate mysql database. If you want to use unit test in Intellij, you know that Junit is needed, but it is not found by default.
How to solve it?
>>First, go to settings an ...
Posted by devx on Tue, 31 Mar 2020 05:54:40 -0700
Web development | hibernate - 06. Persistence class concept and operation of Hibernate
1. What is a persistence class
1. Persistence class: it is a Java class (the JavaBean we wrote), which can be a persistence class if the mapping relationship between the Java class and the table is established.
Persistence class = JavaBean + xxx.hbm.xml
2. The concept of persistent classes exists in the Hibernate framework e ...
Posted by just me and php on Sat, 28 Mar 2020 09:10:22 -0700
Spring Controller singletons and thread-safe things
Catalog
singleton scope
Prototype Scope
Does multiple HTTP requests execute serially or in parallel within the Spring Controller?
Implement singleton mode and simulate a large number of concurrent requests to verify thread security
Appendix: Spring Bean Scope
singleton scope
Each controller that adds @RestController or @Controller defaults to ...
Posted by Joshua4550 on Fri, 27 Mar 2020 21:56:23 -0700
DBMSSESSION package views the IP information of client connection in Oracle
Thank you for your reference- http://bjbsair.com/2020-03-27/tech-info/7042/
Summary
It is well known that the machine name of the client is recorded in the v$session, but there is no IP. How to record the clinet ip?
select username,machine,terminal,program,client_info,logon_time from v$session;
It can be seen that there is no IP record..
1 ...
Posted by julieb on Fri, 27 Mar 2020 03:15:36 -0700