Skip to content

Instantly share code, notes, and snippets.

View x97mdr's full-sized avatar

Jeffrey Cameron x97mdr

  • Truro, Nova Scotia, Canada
View GitHub Profile
server.port=8888
spring.cloud.config.server.git.uri=https://<repo-url>
spring.cloud.config.server.git.username=<username>
spring.cloud.config.server.git.password=<token>
spring.cloud.config.server.git.delete-untracked-branches=true
spring.cloud.config.server.git.clone-on-start=true
spring.security.user.name=root
spring.security.user.password=<password>
@x97mdr
x97mdr / application.properties
Last active December 20, 2018 17:30
spring-cloud-config-git-problem
spring.cloud.config.server.git.uri=ssh://git@my.server.com:7999/~jcameron/my-repo.git
spring.cloud.config.server.git.delete-untracked-branches=true
spring.cloud.config.server.git.clone-on-start=true
@x97mdr
x97mdr / BatchJobTest
Last active October 9, 2018 18:59
Spring batch test configuration
package com.saba.shinypeasant.test
import org.springframework.batch.test.JobScopeTestExecutionListener
import org.springframework.batch.test.StepScopeTestExecutionListener
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.TestExecutionListeners
import java.lang.annotation.Inherited
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)