???????ù???
???????????? ???????[ 2016/11/11 17:43:04 ] ?????????????????? ???ù???
?????????漰?????????
????????????http://git.oschina.net/zhou666/spring-cloud-7simple
????cloud-config-repo??????????????????
????cloud-simple-service????????mybatis??????????
???????????ù???????????????????????????????????????????м?????????????????????????????????????????????????????????????????????????????????????????????????????????????????й?????????????????????????????????????????????????????Ч??????????????????????????????????е???????
????????????????????????????????“???ù????????”??????????redis??ldap??zookeeper??db??????????????????????????????????????й??????????????????????spring cloud?????????ù??????????????????????????????????????????????????ɡ???????к?????????spring ???ù????????????spring boot??????????????????????????????????Щ????????????????????????????????????????????漰?????д????????????????????????web????????????????????tomcat?????????????spring cloud?????????????????????????????????????????
????????spring cloud???????????????????3???????裬???????????????????????????????????????????????÷?????????????????????rest??????????????????÷????÷????????÷???????????????
????1??????????????????
????Spring cloud???git??svn???????????????????????git?????????????git?????????????????????github????git.oschina????????????git.oschina???????????????git.oschina????????git???????????????????????????????????????????cloud-config-repo????????????????????????????????
????cloud-config-dev.properties
????cloud-config-test.properties
????????????????????????????????????????????????????????????£?
????mysqldb.datasource.url=jdbc:mysql://10.0.12.170:3306/test?useUnicode=true&characterEncoding=utf-8
????mysqldb.datasource.username=csst
????mysqldb.datasource.password=csst
????logging.level.org.springframework.web:DEBUG
????????????????????????????????????????????÷????????????????
????2??????spring cloud???÷?????
???????????????????????????????ù??????????????????÷????????????????????rest????????????????????????????????????spring cloud????????????????????????jar????????????????ɡ??????÷??????????????????????maven?????
??????????????????????????????????ConfigServerApplication?????????£?
????@SpringBootApplication
????@EnableConfigServer
????public class ConfigServerApplication {
????public static void main(String[] args) {
????SpringApplication.run(ConfigServerApplication.class?? args);
????}
????}
???????????????????????@EnableConfigServer?????????????????????????ɡ????????????????????????????????????????????????????????rest??????
?????????????????????????????·??????application.properties?У?
????server.port=8888
????spring.cloud.config.server.git.uri=https://git.oschina.net/zhou666/spring-cloud-7simple.git
????spring.cloud.config.server.git.searchPaths=cloud-config-repo
????????server.port????????web??e?8888????git.uri???????????????git????·????searchPaths?????????????????μ??????????????????????????spring-cloud-7simple????????cloud-config-repo??????£???
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11