SpringBoot sets the return field of Json to be non empty

preface You may have encountered the following problems. In the project development, the back-end returns data in Json format to the front-end, but for fields with empty data, null may appear, which makes the front-end students very painful. So they think, for those null fields, can the back-end return String data to empty String and int ...

Added by Shuriken1 on Mon, 24 Jan 2022 15:19:01 +0200

03. Execute during springboot startup: @ PostConstruct, CommandLineRunner, ApplicationRunner, ApplicationListener

Execute when springboot starts: CommandLineRunner, ApplicationRunner, ApplicationListener @PostConstruct comparison Usage scenario: During the development process, we will have such a scenario: we need to perform some operations after the project is started, such as reading configuration file information, database connection, deleting tempora ...

Added by redhair on Mon, 24 Jan 2022 03:22:56 +0200

Log overview of springboot

Log overview of springboot Level control: TRACE<DEBUG<INFO<WARN<ERROR<FATALThe default springboot is set to info, and only info and information larger than info (error and warn) will be output in the consoleIf you start it in the debug mode, the debug information will also be output to the console, but the level of the log rema ...

Added by goldages05 on Mon, 24 Jan 2022 02:25:53 +0200

Introduction and use of Spring Boot Starter

catalogue Spring Boot Starter project creation Automatically create client Using Starter Enable Starter auto build with annotations Enable Starter auto build using configuration Configure Starter content tips The convenience of Spring Boot is that it simplifies many cumbersome configurations, which is a blessing for developers. By introd ...

Added by po on Mon, 24 Jan 2022 00:05:55 +0200

Redis quick start and Application

1, Redis overview Redis is an open source high-performance memory based key value pair NoSQL database developed in C language. Compared with the relational database that must be stored according to the specified format, the data format of non relational database is more flexible, which is usually used to check the storage of large-scale da ...

Added by private_click on Sun, 23 Jan 2022 21:27:38 +0200

Detailed explanation of Druid configuration parameters

pom introduction <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.0.18</version> </dependency> Initialize connection In the configuration file of druid connecting to the database, there should be "init method =" init & ...

Added by r-it on Sun, 23 Jan 2022 12:51:13 +0200

RabbitMQ message retry

1. Rabbitmq has its own retry mechanism 1 example code rabbitMQ has its own message retry mechanism: when the consumer fails to consume the message, he can choose to "push" the message to the consumer again until the message consumption is successful. To enable the built-in retry mechanism, the following configurations are required ...

Added by sashi34u on Sun, 23 Jan 2022 10:08:53 +0200

Java project: design and implementation of Aiyou travel platform (java+springboot+ssm)

Project significance: Since the reform and opening up, China's tourism has developed rapidly, but comparatively speaking, the breadth and depth of China's tourism development are far from meeting the needs of economic development and the improvement of people's living standards. With the development of market economy and the further improvemen ...

Added by conquest on Sun, 23 Jan 2022 09:39:00 +0200

Implementation of the most complete Java SpringBoot like function in the whole network

Python wechat ordering applet course video https://edu.csdn.net/course/detail/36074 Python practical quantitative transaction financial management system https://edu.csdn.net/course/detail/35475 preface Recently, the company is working on a project of NFT mall, which is roughly a platform that only buys and sells digital products. In the p ...

Added by env-justin on Sun, 23 Jan 2022 08:45:57 +0200

SpringBoot: asynchronous, scheduled, mail tasks

SpringBoot: asynchronous, scheduled, mail tasks preface In our work, we often use asynchronous processing tasks. For example, when we send mail on the website, the background will send mail. At this time, the foreground will cause the response to remain motionless. The response will not succeed until the mail is sent. Therefore, we general ...

Added by l053r on Sun, 23 Jan 2022 01:07:43 +0200