[spring Internationalization] Detailed internationalization of springMVC, springboot
In web development, we often encounter problems with international language processing, so how can we internationalize?
What can you get?
Use springgmvc and thymeleaf for internationalization.
Use springgmvc and jsp for internationalization.
Use springboot and thymeleaf for internationalization.
Catalog
What can ...
Added by PhaZZed on Mon, 20 Apr 2020 05:57:12 +0300
Using Kafka message queue in springboot project
1. Kafka message producer
1) Create the springboot Kafka producer demo project and import the jar package.
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
<version>2.4.5.RELEASE</version>
</dependency>
2) Add Kafka producer configuration it ...
Added by Patrick3002 on Tue, 14 Apr 2020 18:03:10 +0300
Spring Boot integrates Swagger2 to build RESTful API documents
Introducing dependency
Add io.springfox:springfox-swagger2 and io.springfox:springfox-swagger-ui dependencies to pom.xml
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId> ...
Added by kernelgpf on Sun, 12 Apr 2020 19:28:39 +0300
SpringBoot uses custom annotations to encrypt and decrypt simple parameters (annotation + HandlerMethodArgumentResolver)
Preface
Huang Hansan has returned and has not updated his blog for nearly half a year. This half year's experience is really not easy.
At the moment of the epidemic, the company I interned with did not share difficulties with the employees and directly dismissed many people.
As an intern, I was also relentlessly dismissed.So I have to get read ...
Added by valen53 on Mon, 06 Apr 2020 08:09:19 +0300
micrometer custom metrics
order
This paper mainly studies how to use metrics of custom micrometer
Example
DemoMetrics
public class DemoMetrics implements MeterBinder {
AtomicInteger count = new AtomicInteger(0);
@Override
public void bindTo(MeterRegistry meterRegistry) {
Gauge.builder("demo.count", count, c -> c.incrementAndGet())
...
Added by Octave91 on Sun, 05 Apr 2020 19:04:01 +0300
Operation of embedded set in springboot~mongo
As for the operation of mongodb's embedded objects, uncle has said in the. net platform. At the same time, uncle has encapsulated mongo's storage and is very convenient to use. In the java springboot framework, of course, there are corresponding methods. Let's talk about it. I hope it can help the students who just contacted mongodb!
Data stru ...
Added by harlowhair on Thu, 02 Apr 2020 05:26:27 +0300
ActiveMQ Installation and Use
Introduction to ActiveMQ: https://my.oschina.net/u/4284277/blog/3212385
SpringBoot Integrates ActiveMQ: https://my.oschina.net/u/4284277/blog/3212387
MQ theoretical knowledge: https://my.oschina.net/u/4284277/blog/3212391
1. Installation
Official website: http://activemq.apache.org/
Baidu Disk Address:
Link: https://pan.baidu.com/s/1A55X- ...
Added by jmcc on Fri, 27 Mar 2020 07:57:54 +0200
Spring Boot integrates static technology FreeMarker
Original link: http://www.yiidian.com/springboot/springboot-freemarker.html
This article explains how to integrate FreeMarker in Spring Boot.
1 create project, import dependency
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...
Added by Ceril on Tue, 24 Mar 2020 16:37:54 +0200
Spring boot graphics tutorial 17 - use the RestTemplate guide "Get Post" to "set request header"
If there is the concept of flying in the sky, there must be the realization of landing
Ten times of concept is not as good as one time of code. Friend, I hope you can type all the code cases in this article
Praise before you see, form a habit
Spring boot text tutorial series article directory
Spring boot picture and text tutorial 1 - sett ...
Added by Frozen Kiwi on Fri, 20 Mar 2020 15:51:41 +0200
How Springboot starts scanning packages
Reference Link 1Reference Link 2 The code referenced is Springboot 2.1.1
By default, the scan range is the package and its subdirectories of the main class xxApplication, which you can see in the later implementation.
From SpringApplication.run(xxxApplication.class, args) in the main class; click all the way into the imple ...
Added by rndilger on Tue, 17 Mar 2020 18:45:09 +0200