JavaWeb Project Programming Specification

Coding specifications in the work, which need to be written in the future. Before encoding, first write according to Alibaba's development specifications, if using idea, use its plug-ins. In the case of springmvc, the following styles are best used to define the path: @RequestMapping(value = "/upda ...

Posted by Clinger on Sun, 23 Feb 2020 19:25:16 -0800

Fourth article on concurrent programming

Fourth article on concurrent programming 4.11 More locks 4.12 Activeness hunger 4.13 ReentrantLock Sequence control of synchronization mode Alternate Output   4.11 More locks A large house has two functions: sleeping, learning and being irrelevant.Now Xiao Nan has to learn and the little girl has to sleep, but if she only uses one ro ...

Posted by greencoin on Fri, 14 Feb 2020 18:56:44 -0800

Spring-Security-Oauth2 learning notes: Custom token return format

1 Preface In the previous chapter, we built the authorization authentication server and successfully returned the token. The default format of oauth2 is as follows: { "access_token": "86d17c41-4de9-470a-a637-0acb7237099d", "token_type": "bearer", "refresh_token": "fb255411-9535-47ad-9f7e-4 ...

Posted by mattcooper on Thu, 13 Feb 2020 01:04:10 -0800

The simplest spring boot integrated Spring Data JPA tutorial

At the beginning of using the spring boot development project, the Spring Data JPA used by the ORM framework was only used intermittently for more than a year, without making some summary. Taking advantage of the current serious epidemic situation and little work, I will take a note and record the gener ...

Posted by midge1970 on Tue, 11 Feb 2020 23:53:38 -0800

Take a quick look at jdk8

You've been watching java concurrently and you've been saying a bit too much. Just relax!This time, let's briefly talk about jdk8, which has not been used for a long time and is new to us. It's interesting to look at it carefully. Let's turn our brain into an angle to write code. Because we usually write code in jdk7 now, we are all thinking ab ...

Posted by Xephon on Tue, 11 Feb 2020 10:42:17 -0800

Find out in 10 minutes How does SpringBoot gracefully read configuration files?

This article is and is included in the springboot-guide (not just SpringBoot but also Spring Key Knowledge Points), address: https://github.com/Snailclimb/springboot-guide .Make it easier for you to learn Spring!If you feel good, welcome to a Star! Many times we need to put some commonly used configuration information such as Aliyun oss confi ...

Posted by vincent30000 on Sat, 08 Feb 2020 19:56:20 -0800

DDD congestion model code example

Anemia model We generally use three-tier architecture for business development: Repository + Entity Service + BO(Business Object) Controller + VO(View Object) In the three-tier architecture business development, we often use the development mode based on the anemia model. Anemia model refers to th ...

Posted by Xproterg^vi on Thu, 06 Feb 2020 21:40:17 -0800

Alibaba Java Development Manual Codes Effective Details-An Analysis of the Grinding Null Pointer Problem

1 Leader Say nothing but read the manual guidelines first The manual has helped us summarize common problem scenarios, but we still need to dig into the null pointer problem in order to get it right. 2 What is the null pointer in the world? 2.1 Official Resolution A null is passed in when the app ...

Posted by leatherback on Wed, 05 Feb 2020 16:45:04 -0800

Alicloud OSS upload / download and SMS verification code

(1) : you must first open related services on alicloud OSS. For details, please refer to this link: https://help.aliyun.com/document_detail/31883.html?spm=5176.10695662.1996646101.searchclickresult.5ceb3ee82NzMq7&aly_as=WhUj5kPK Or for video address, please refer to this link: http://cloud.video.tao ...

Posted by stick_figure on Wed, 05 Feb 2020 03:42:59 -0800

Understanding application.properties and application.yaml

In SpringBoot, there are two different formats for configuration files, one is properties and the other is yaml. Although properties files are common, yaml is more concise and uses more scenarios than properties, and many open source projects are configured using yaml (for example, Hexo).In addition ...

Posted by martins on Tue, 04 Feb 2020 20:29:20 -0800