Spring Cloud Config uses SVN as configuration source

Requirement: Use SVN as the configuration source for Spring Cloud Config
Reason : Not listed. . . .
Version: Spring Boot - 1.5.6.RELEASE
      Spring Cloud - Dalston.SR3
Practice:

1. Introduce svnkit in Pom Dependency:
<dependency>
			<groupId>org.tmatesoft.svnkit</groupId>
			<artifactId>svnkit</artifactId>
		</dependency>



2. Configure the following configuration items in application.properites (mainly adding the activeProfile option and changing git.uri to svn.uri):
spring.cloud.config.server.svn.uri=https://localhost/svn/config
spring.cloud.config.server.svn.username=wwwcomy
spring.cloud.config.server.svn.password=xxxxxxxxxxxxxx
spring.profiles.active=subversion


3. The configuration must be placed in the trunk directory in svn. According to the above example, my configuration is placed in
https://localhost/svn/config/trunk/eureka-service.properties

.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326285672&siteId=291194637