[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

REST style request mode

REST: representative state transfer. (resources) state transformation of presentation layer. It is the most popular Internet software architecture. It has a clear structure, conforms to the standard, is easy to understand, and is easy to expand, so it is being adopted by more and more websites. Using the REST style of request mode can simplify ...

Added by davidx714 on Sat, 18 Apr 2020 17:09:10 +0300

Details of Javax Validation verification architecture

You're still using if else... Check the parameters from the front end? Are you still checking parameters with code? If so, your project verification is not perfect. Xiaobian here shares the parameter verification through annotation, farewell to if else... The era of!!! This article mainly introduces Javax ValidationI annotation verification ar ...

Added by GM on Sat, 18 Apr 2020 12:53:26 +0300

How to make enterprise search engine "elastic search" truly integrate java use?

How to use elastic search in combination with java? I don't need to talk much about it. Load it!!!   Integrating Spring Data ElasticSearch 1, How to view official documents Official documents: https://www.elastic.co/cn/elastic-stack (follow the steps below to choose another version) Skip 6.3.0 document directly: https://www.ela ...

Added by mohamdally on Tue, 14 Apr 2020 20:33:34 +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&gt ...

Added by kernelgpf on Sun, 12 Apr 2020 19:28:39 +0300

Analysis on the principle of MyBatis integrating Spring

Catalog Analysis on the principle of MyBatis integrating Spring MapperScan's Secret Brief summary If not combined with the Spring framework, a typical way to use MyBatis is as follows: public class UserDaoTest { private SqlSessionFactory sqlSessionFactory; @Before public void setUp() throws Exception{ ClassPathResour ...

Added by reckdan on Wed, 08 Apr 2020 16:03:56 +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

How to check the parameters of webplus

order This paper mainly studies how to verify the parameters of webplus Using javax.validation domain import javax.validation.constraints.Min; import javax.validation.constraints.NotEmpty; public class User { @Min(1) private long id; @NotEmpty private String name; @Min(20) private int age; //... } Handling e ...

Added by koolswans on Sun, 05 Apr 2020 13:39:34 +0300