2019年6月

gradle config

gradle aliyun mirror

新建文件 ${user_home}/.gradle/init.gradle ,内容如下

allprojects {
  repositories {
    def ALIYUN_REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public'
      def ALIYUN_JCENTER_URL = 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
      all { ArtifactRepository repo ->
        if(repo instanceof MavenArtifactRepository){
          def url = repo.url.toString()
            if (url.startsWith('https://repo1.maven.org/maven2')) {
              project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_REPOSITORY_URL."
              remove repo
            }
          if (url.startsWith('https://jcenter.bintray.com/')) {
            project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_JCENTER_URL."
            remove repo
          }
        }
      }
    maven {
      url ALIYUN_REPOSITORY_URL
      url ALIYUN_JCENTER_URL
    }
  }
}

SpringBoot Sample Config

jdbc

spring.main.web-application-type=none
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/realtime?characterEncoding=UTF-8&serverTimezone=UTC&autoReconnect=true&failOverReadOnly=false
spring.datasource.username=root
spring.datasource.password=
spring.datasource.tomcat.initial-size=1
spring.datasource.tomcat.max-active=5
spring.datasource.tomcat.max-idle=5
spring.datasource.tomcat.min-idle=1

Caddy Config

Caddy Config for ReactJS

inew.local {
    root d:/work/project/study/wuhan-screen-develop/build
    rewrite {
        to {path} {path}/ /index.html
    }
}

inew.local/boss30/api {
    proxy / http://inew.unovo.com {
        header_upstream Host {proxy_host}
    }
}
www.000webhost.com