Web development static resource processing

7. Web development static resource processing 7.1 static resource processing We need to introduce front-end resources. There are many static resources in the project, such as css, js and other files. How is this SpringBoot handled? If we are a web application, there will be a webapp under our main. We used to import all the pages here! But our ...

Added by vinnier on Tue, 07 Dec 2021 21:12:42 +0200

Page internationalization

6. Page internationalization Sometimes, our website will involve the switching between Chinese and English or even multiple languages. At this time, we need to internationalize the page design. 6.1 preparation Uniformly set the encoding format of properties in IDEA 6.2 preparation of configuration files Write an internationalization configurat ...

Added by premiso on Tue, 07 Dec 2021 20:35:03 +0200

rabbitMq implements delay queue

Business scenario: 1. If the order is not paid for 30 minutes, it will be automatically cancelled. How can we achieve this? 2. Send a text message to the user 60 seconds after the order is generated 1 install rabbitMq windows installer Installed in ubuntu 2 add maven dependency <!-- https://mvnrepository.com/artifact/org.sprin ...

Added by badre on Tue, 07 Dec 2021 12:00:42 +0200

Spring Boot + Redis implements interface idempotency. It's great to read this article

introduce The concept of idempotency is that the impact of any multiple executions is the same as that of one execution. According to this meaning, the final explanation is that the impact on the database can only be one-time and cannot be processed repeatedly. The means are as follows Create a unique index of the databasetoken mechanismPessi ...

Added by mits on Mon, 06 Dec 2021 22:31:13 +0200

Activiti7 workflow integration SpringBoot hands on how to play activiti7 workflow

preface Due to work reasons, I have been studying Activiti7 recently. In view of the lack of information on Activiti7 and the complexity of the introduction on the official website, the project probably has a model by looking at the Activiti forum and referring to the api of the previous version of Activiti. At present, although there are lit ...

Added by hoopplaya4 on Sun, 05 Dec 2021 18:57:42 +0200

Principle analysis of SpringBoot - automatic assembly

SpringBoot solves the pain point of cumbersome configuration of spring and spring MVC, and realizes automatic assembly based on the principle of "Convention is greater than configuration". Let's explore the principle of SpringBoot automatic assembly. 1, What is assembly Putting beans into the Ioc container of Spring is called assembly ...

Added by j0hn_ on Sun, 05 Dec 2021 11:17:40 +0200

Docker compose + nginx deployment front and back end separation project

Docker compose + nginx deployment front and back end separation project The project is a front-end and back-end separation project using Vue +Springboot 1, Pretreatment 1. Before packing the project, go to File – > setting – > File encoding and change it to UTF-8 to prevent random code errors! Note: at this time, if ...

Added by cnnabc on Sat, 04 Dec 2021 22:57:50 +0200

SpringBoot integrates spring data JPA + querydsl and use cases

Over the years, I have contacted / learned a lot of ORM frameworks or libraries. dbutils mybatis sql2o beetlsql hibernate cayenne spring-data-jpa querydsl I think spring data JPA + queryds is the most handy tool in springboot applications. But it seems that it is not very popular in China. Looking at domestic open source projects, the project ...

Added by beebum on Fri, 03 Dec 2021 16:20:16 +0200

Using MongoDB's Spring Boot and MongoTemplate tutorials

In this tutorial, we will build a Spring Boot application that demonstrates how to use the MongoTemplate API to access data in the MongoDB database. For MongoDB, we will use mLab , it provides the MongoDB database as a service platform, so you don't even have to install the MongoDB database on your computer. to configure To quickly set up our p ...

Added by Raphael diSanto on Fri, 03 Dec 2021 13:00:00 +0200

JSR303 data verification and multi environment switching

3. JSR303 data verification and multi environment switching 3.1 JSR303 data verification 1. Verify with JSR303 In Springboot, @ validated can be used to verify the data. If the data is abnormal, exceptions will be thrown uniformly to facilitate the unified processing of the exception center. Let's write a comment here so that our name can only ...

Added by beginneratphp on Fri, 03 Dec 2021 10:41:43 +0200