Integrating Spring Data ElasticSearch

1. Overview Spring Data ElasticSearch simplifies native ElasticSearch Characteristic: Based on the @ Configuration configuration, as long as it is configured in the yml file, it can be used in the project. Tool class ElasticsearchTemplate ES template, similar to general mapper, operates ES through object Provides a Repository for th ...

Posted by Svoboda on Mon, 13 Apr 2020 21:14:09 -0700

Is Spring's BeanFactory confused with FactoryBean?

BeanFacotry is the more primitive Factory in spring.XMLBeanFactory, for example, is a typical BeanFactory.The original BeanFactory did not support many of Spring's plug-ins, such as AOP capabilities, Web applications, and so on. The ApplicationContext interface, which is derived from the BeanFactory interface. The ApplicationContext contains al ...

Posted by Adika on Mon, 13 Apr 2020 20:47:21 -0700

Use of LocalDateTime in the project (LocalDateTime docking front end interacts with timestamp, LocalDateTime docking database)

Catalog 1. Blog writing background 2. LocalDateTime front-end interaction 2.1 LocalDateTime writes a timestamp to the front end 2.1.1 fastJson default write format 2.1.2 Change the fastJson write format so that it writes back the timestamp () 2.2 Receive the time stamp passed by the front end as LocalDateTimme 2.2.1 LocalDateTime Default ...

Posted by haddydaddy on Mon, 13 Apr 2020 18:47:43 -0700

About register aspect jannationautoproxycreator if necessary of AopNamespaceUtils

About this method public static void registerAspectJAnnotationAutoProxyCreatorIfNecessary( ParserContext parserContext, Element sourceElement) { //1. Register or upgrade creator definition beanname BeanDefinition beanDefinition = AopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary( ...

Posted by Grizzzzzzzzzz on Mon, 13 Apr 2020 09:50:16 -0700

Spring Boot integrated keyload

Preface Reference in this article A Quick Guide to Using Keycloak with Spring Boot , sort out the problems encountered in the actual combat. Docker installation keyload Download mirroring quay Download Image docker pull quay.io/keycloak/keycloak If you fail, try again. Start keyclock docker run -p 6060:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PA ...

Posted by julien on Mon, 13 Apr 2020 09:42:58 -0700

Spring Boot 2.X practice -- Spring Security login and registration

>Author: Xiao Xian > >Source code warehouse: https://github.com/zhshuixian/learn-spring-boot-2 For the Web system, it is necessary to control the access rights of pages and API interfaces. For example, it is necessary to block the access rights of non system users and control the access rights of different pages or interfaces. In Java ...

Posted by DonnieDarko on Sat, 11 Apr 2020 19:38:44 -0700

Spring Boot 2.X: SQL database (MyBatis)

I am Xiaoxian, a non slash youth who focuses on big data and distributed technology. I love Coding, reading, photography and life more! Source code warehouse: https://github.com/zhshuixian/learn-spring-boot-2 In the previous section Spring Data JPA In, it mainly introduces how Spring Data JPA connects to the database, and how to add, delete, ...

Posted by peDey on Sat, 11 Apr 2020 19:13:05 -0700

Spring Boot 2.x actual combat -- SQL database (Spring Data JPA)

I am Xiaoxian, a non slash youth who focuses on big data and distributed technology. I love Coding, reading, photography and life more! Source code warehouse: https://github.com/zhshuixian/learn-spring-boot-2 The previous section mainly introduces Spring Boot integrating Log4j2 and Slf4j to print and output logs to files. In the application d ...

Posted by Sam on Sat, 11 Apr 2020 19:05:16 -0700

Take a look at Java's locks - CountDownLatch and CyclicBarrier

Take a look at the locks CountDownLatch and CyclicBarrier in Java Preface Basic introduction Use and difference Core source code analysis summary Preface Several articles have been written in Java JUC package. First of all, I spent 5 articles on AQS from the perspective of source code analysis. Why do I spend 5 articles on AQS? It's because ...

Posted by jokerofsouls on Sat, 11 Apr 2020 04:48:54 -0700

Spring Timing Task Details of spring schedule and spring-quartz

There are currently three main types of java timer tasks categorized technically by implementation: (1) Java's native java.util.Timer class, which allows you to schedule a java.util.TimerTask task.This allows your program to execute at a certain frequency, but not at a specified time; and job classes need to integrate java.util.TimerTask, whic ...

Posted by blacksnday on Fri, 10 Apr 2020 21:09:05 -0700