hibernate Series Notes (1) - - hibernate Addition, Deletion and Amendment

Hibernate additions, deletions and modifications 1. First, we need to know what Hibernate is. Hibernate is a lightweight ORMapping object. Mainly used to achieve the mapping between Java and database tables, in addition to providing data query and data acquisition methods. It can greatly reduce the time of manual use of SQL and JDBC to process ...

Posted by Lamez on Mon, 08 Apr 2019 10:36:34 -0700

SQL Alemchy Performance Test

Recently, a project is being perfected. Because the display interface uses django, but wants to decouple. The backstage and display interface do not directly use django's ORM, so we use SQL Alemchy to do the database interface of back-end data collection. But the performance of SQL Alemchy is not good. Today, we want to test the bottleneck of ...

Posted by prowley on Sun, 07 Apr 2019 22:39:30 -0700

Java implements image upload to server and reads the uploaded image

Many websites can upload avatars, you can choose your favorite pictures as avatars, upload from the local, the next time you log in, you can directly display the uploaded avatars, so how to achieve this?   Here's my implementation process (just personal implementation ideas, how the actual website is not clear) Ideas for realization: Tools: ...

Posted by Dustin013 on Sun, 07 Apr 2019 18:42:30 -0700

Stateless session

One, What? When a user accesses a system, it is "nonexistent" session, which disconnects and connects the system at the first visit. In this case, it is generally necessary to control in the background to maintain the relationship between the user and the system. Since Tomcat server can't do it, we can consider redis. Two, Why? Benefi ...

Posted by SieRobin on Sun, 07 Apr 2019 13:48:30 -0700

Basic configuration of nginx

Preface Memory is not good, the relevant nginx problems and solutions will be expanded on the above, if there are any problems, please leave a message. Catalog Install nginx Managing nginx Configure nginx.conf nginx advantages Debug nginx Reference resources Install nginx Install gcc g + + development library environment ubunto ...

Posted by eezmo on Sat, 06 Apr 2019 19:39:30 -0700

Linux Create daemon

1. Create daemon steps: To become a daemon, a program needs to complete the following steps: Execute a fork(), then the parent process exits and the child process continues to execute. (As a result, daemon becomes a child of the init process.) The reason for this step is the following two reasons: Assuming that daemon is started from the ...

Posted by francisexpress on Fri, 05 Apr 2019 23:12:30 -0700

MVC - Single Sign-on Middleware

This chapter will share with you a single sign-on middleware. The middleware sounds profound. In fact, this middleware just encapsulates the logic and processing flow used in single sign-on into several methods. The default support uses redis service to save sessions. It can also use parameter Func<> method to customize session storage op ...

Posted by keystroke on Wed, 03 Apr 2019 17:45:31 -0700

Classical Crawler Learning-Traditional request Module Implements Three Different Ways to Simulate Landing on Renren Network (Elite)

This case simulates the landing of Renren in three different ways. It is a classic case of traditional simulated landing. Readers are invited to consult it carefully. Setting session to simulate login Include cookies in headers for simulated Login Simulate login by specifying cookies separately 1. The method of setting ses ...

Posted by Telemachus on Wed, 03 Apr 2019 16:45:29 -0700

Android Direct Response Notification

Android Direct Response Notification Direct response to notification Android N/7.0 Android Direct Response Notification Preface Create notification Create notification objects Add an Action Add a Broadcast Receiving Action Event Add Direct Response Input Box Send the contents of the direct reply to the broadcasting receiver Br ...

Posted by jovankau on Wed, 03 Apr 2019 12:00:29 -0700

springboot landing page image validation code simple web project

Written in front Some time ago, we all said that the environment is not good recently. Many companies are laying off employees. If they change jobs, they don't recommend easy naked words. But what I want to say is that my company has abuses, there are business needs that can't be done, and there are people who can't be recruited. Recently, I ha ...

Posted by Buyocat on Tue, 02 Apr 2019 15:21:29 -0700