[springboot development monomer web shop] 5. User login and homepage display

User login and front end display User login In the previous article, we implemented the function of user registration and authentication, and then we continued to implement its login, as well as the information to be displayed on the page after successful login. Next, let's write the code. Implement service Add user login method in com.liferu ...

Posted on Mon, 11 Nov 2019 08:54:55 -0500 by fragger

Spring Data Jpa best practices

Preface The goal of the Spring Data Jpa framework is to significantly reduce the amount of boilerplate code required to implement the data access layers of various persistent stores. The central interface in the Spring Data Jpa Repository abstraction is Repository. It needs domain entity class and domain entity ID type as type parameters for ma ...

Posted on Mon, 11 Nov 2019 07:54:44 -0500 by raman

Extend the design pattern to solve practical problems: the logic of decoupling parameters changing and the formula relatively stable.

In the process of numerical simulation programming, there is a problem: some parameters or physical values are obtained through various operations by other parameters or variables. If the values of these parameters and variables are constants, we will not change them once they are initialized, so the problem becomes very simple, for example: co ...

Posted on Mon, 11 Nov 2019 04:23:48 -0500 by phpr0ck5

Organize | Spring AOP Dry Goods article, with rich illustrations and AOP samples~

Spring AOP is a must for Java interviews. We need to understand the basic concepts and principles of AOP.So what is Spring AOP and why do interviewers like to ask it so much?This article first introduces the basic concepts of AOP, and then according to the principles of AOP, implements a small example of how an interface returns to a uniform fo ...

Posted on Mon, 11 Nov 2019 01:12:23 -0500 by hanwei

SpringBoot configures HTTPS and implements automatic HTTPS access to HTTPS

nginx is recommended for configuring https No further replies will be given to any questions raised in this article. Here's why I wrote this article, because I'm also a beginner in SpringBoot. I encountered some pits when configuring https. According to the way I configure it on the Internet, I found some classes are obsolete. Here's just a r ...

Posted on Sun, 10 Nov 2019 20:07:59 -0500 by depojones

java instance understands the concept of blockchain

The core of blockchain is decentralized storage. Traditional database solutions, including relational database and non relational database, belong to centralized storage. Decentralized storage means that there is no data center, and each data node contains the information of the previous data node. An example is given to understan ...

Posted on Sun, 10 Nov 2019 16:38:52 -0500 by karan23424

golang smooth restart

Background: To update the configuration file, update the server program, etc., you need to restart the server. When you restart the server, the server will not stop running and the request will not be lost Principle: The principle of hot restart involves many details such as some system calls and the transfer of file handles betwee ...

Posted on Sun, 10 Nov 2019 16:30:02 -0500 by cloudhybrid

Using sentry in hyperf

sentry document: https://docs.sentry.io/ After being familiar with the exception catching mechanism of the hyperf architecture, I think sentry can be used in the exception catching mechanism in a very reasonable way. First install sentry: composer require sentry/sdk:2.0.3 Add in the hyperf.php file after installation Sentry\init(\['dsn' => ' ...

Posted on Sun, 10 Nov 2019 14:03:04 -0500 by homchz

Go is fun, 5.20 make a diagram with go / let the words dance

Today, I'd like to introduce an interesting codeThe picture is generated into a pattern of text. Have you seen the GIF of dancing sister composed of those words in station B? With this code you can do it yourself. GIF, I'm too lazy to do it. As a back-end programmer, I'm not very patient with frame by frame screenshots. You can see the effect o ...

Posted on Sun, 10 Nov 2019 11:26:31 -0500 by digitalecartoons

What is java serialization? When is serialization required?

Serialization: the process of converting Java objects into byte streams. Deserialization: the process of converting a byte stream to a Java object.   Java objects need to be serialized when they need to be transferred on the network or stored in a file for persistence. Implementation of serialization: the class implements the Serializable i ...

Posted on Sun, 10 Nov 2019 10:07:23 -0500 by dirkadirka