Spring boot enables dynamic loading of remote configuration files
demand
There is an independent API project, which mainly provides API interfaces for external systems. In order to ensure the security of the call, the request needs to be verified, including the call frequency, access IP, cross domain and Token. The IP and cross domain configuration will be modified according to the receiver, In order to avoi ...
Added by Transwarp-Tim on Thu, 10 Mar 2022 14:15:27 +0200
Still using RedisTemplate? Try Redis's official ORM framework. It's elegant enough to use
Previously, in the SpringBoot project, I have been using RedisTemplate to operate the data in Redis, which is also the way officially supported by Spring. Compared with Spring Data's support for MongoDB and ES, this way of using Template is really not elegant! Recently, RedisOM, Redis's exclusive ORM framework, has been officially launched by R ...
Added by JustFoo on Thu, 10 Mar 2022 07:49:55 +0200
Solution to invalid spring session configuration serialization for redis
The reason for the problem: after using springsession to automatically add the setting attribute to redis, it will appear hexadecimal garbled code in front of the value. Even if redis serialization configuration is configured, it is useless, because spring session creates a redis itself, and the default is new JdkSerializationRedisSerializer(); ...
Added by mobiuz on Wed, 09 Mar 2022 16:25:54 +0200
(learning notes) priority and value of SpringBoot2 configuration file
Priority of profile
For springboot, three configuration files are provided to operate its configuration. yaml is officially recommended, but the default is properties, which is in the priority,
properties > yml > yaml
Basic syntax of yaml
Case sensitive.The data value must be preceded by a space as a separator.Use indents to indicate ...
Added by exally on Wed, 09 Mar 2022 14:56:08 +0200
SpringBoot10: static resource processing for Web development
Research on Web Development
brief introduction
OK, students, next, let's start to learn about SpringBoot and Web development. From this chapter on, it belongs to our practical part;
In fact, the things of SpringBoot are very simple to use, because the biggest feature of SpringBoot is automatic assembly.
Steps to use SpringBoot:
1. Create a ...
Added by manhattanpaul on Wed, 09 Mar 2022 12:50:37 +0200
Lightweight SpringBoot configuration center - Minimum config
introduce
Minimal config spring boot starter is an expanded lightweight configuration center based on the implementation principle of spring boot native configuration injection. The project volume is only 24KB. The design concept is to serve small and medium-sized projects, quickly build a remote configuration center and refresh the configurat ...
Added by ColdFusion on Wed, 09 Mar 2022 08:54:27 +0200
Spring Boot integrates Elasticsearch
๐ข๐ข๐ข๐ฃ๐ฃ๐ฃ
Hello! Hello, everyone. I'm [one heart classmate], a highly motivated [Java domain blogger]! ๐๐๐
โจ Writing style of [one heart students]: I like to explain every knowledge point in [easy to understand] writing, rather than using [tall and tall] official statement.
โจ The field of the blog is the learning of back-end te ...
Added by fdost on Wed, 09 Mar 2022 00:48:09 +0200
Automatic configuration of spring boot web application
Automatic configuration of web application
As analyzed in previous articles, @ SpringBootApplication will use the @ Import annotation to introduce AutoConfigurationImportSelector AutoConfigurationImportSelector will return the autoconfiguration class to be loaded through the spi mechanism These include dispatcher servlet autoconfiguration and ...
Added by getgray on Tue, 08 Mar 2022 22:57:36 +0200
Message queuing Kafka
Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
1 Overview
1.1 basic concepts
1.1.1 Topic
By classifying messages through Topic mechanism, we can think that each Topic is a queue ...
Added by kidestranged on Tue, 08 Mar 2022 16:16:47 +0200
Spring boot data access
Spring boot(6) data access
Learning video: https://www.bilibili.com/video/BV19K4y1L7MT?p=62&spm_id_from=pageDriver
1. Automatic configuration of data source - HikariDataSource
1.1 importing JDBC scenarios
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spr ...
Added by glenelkins on Tue, 08 Mar 2022 14:27:47 +0200