Spring boot integrates cxf to publish web service and client call

Spring boot integrates cxf to publish webService 1. Look at the project structure chart   2. pom dependence of CXF 1 <dependency> 2 <groupId>org.apache.cxf</groupId> 3 <artifactId>cxf-spring-boot-starter-jaxws</artifactId> 4 <version>3.2.4</version> 5 </dependency>   3. Start to wri ...

Added by Gambler on Wed, 01 Jan 2020 12:29:25 +0200

SpringBoot integrates elastic search instance

1, Download and launch elastic search Download address: https://www.elastic.co/downloads/past-releases Select a version, Download The blogger here tests 2.4.4 You can choose the ZIP package to download   There are some subtle differences between windows and mac when starting windows: enter bin in the file directory, and then click elasti ...

Added by eroticheretic on Tue, 31 Dec 2019 19:29:29 +0200

Spring cloud war package deployment causes the service not registered to Nacos normally

Recently, a spring boot project has been connected to microservice, using spring boot 2.1.9.release and spring cloud greenwich.sr3. Local tests are normal, but after going online, there is a situation like this: There is no statement like Nacos registry in the log, and there is no exception information, just like there is no microservice config ...

Added by csteff24 on Mon, 30 Dec 2019 14:49:19 +0200

springboot -- multiple data sources

This paper mainly introduces how to configure two data sources (mysql and oracle) in a spring boot project; 1. Import related dependence <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <s ...

Added by DjNaF on Sun, 29 Dec 2019 19:42:04 +0200

On dubbo spi mechanism

For example: private static final Protocol protocol = ExtensionLoader.getExtensionLoader(Protocol.class).getAdaptiveExtension(); First of all, analyze the getExtensionLoader method: it is very simple to query whether the extension "loaders" exist or not, and then new returns public static <T> ExtensionLoader<T> getExten ...

Added by hyperyoga on Sat, 28 Dec 2019 16:53:49 +0200

Use of AOP in Springboot

Aspect Oriented Programming (Aspect Oriented Programming) is the product of the development of software programming ideas to a certain stage, and is a useful complement to object-oriented programming.AOP is generally used in situations with crosscutting logic, such as access control, transaction management, performance detection, and so on. Log ...

Added by SephirGaine on Thu, 26 Dec 2019 06:46:34 +0200

Spring Security SMS verification code login in Spring Boot

In the section of adding graphic verification code in Spring Security, we have implemented the account password login based on Spring Boot + Spring Security, and integrated the function of graphic verification code. At present, another very common way of website login is SMS authentication code login, but Spring Security only provides the login ...

Added by Thoughtless on Tue, 24 Dec 2019 06:00:15 +0200

Spring MVC ---- requestmapping

1. overview 1.1 spring MVC uses @ RequestMapping annotation to specify which URL requests can be processed for the controller; 1.2 @ RequestMapping can be marked at the class definition and method definition of the controller; 1.2.1 mark at class definition: provide preliminary request mapping information. Relative to the root directory of WEB ...

Added by jbulaswad on Tue, 24 Dec 2019 00:32:25 +0200

How to create a Spring Cloud Stream Binder from scratch

You will learn how to develop a custom Spring Cloud Stream Binder from scratch Spring Cloud Stream is a framework built on top of Spring Boot and Spring Integration. It aims to build event driven microservices that communicate through one or more shared messaging systems. The core component of Spring Cloud Stream is called "Binder", ...

Added by geroido on Mon, 23 Dec 2019 20:38:26 +0200

Adding graphic verification code to Spring Security in Spring Boot

Adding the verification code can be roughly divided into three steps: generating the verification code picture according to the random number; displaying the verification code picture on the login page; adding the verification code verification in the authentication process. The authentication verification of Spring Security is completed by the ...

Added by Baumusu on Mon, 23 Dec 2019 11:54:25 +0200