├── .gitee ├── ISSUE_TEMPLATE.zh-CN.md └── PULL_REQUEST_TEMPLATE.zh-CN.md ├── .idea ├── .gitignore ├── XTools.iml ├── misc.xml ├── modules.xml └── vcs.xml ├── LICENSE ├── README.md ├── api ├── file │ └── test.java ├── local-cache │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── yiii │ │ │ │ └── localcache │ │ │ │ ├── LocalcacheApplication.java │ │ │ │ ├── cache │ │ │ │ ├── LRULocalCache.java │ │ │ │ └── LocalCache.java │ │ │ │ └── controller │ │ │ │ └── TestController.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── yiii │ │ └── localcache │ │ └── LocalcacheApplicationTests.java ├── multi-thread │ ├── .keep │ └── thread └── sharding-sphere-demo │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── README.md │ ├── db0.sql │ ├── db1.sql │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── yiii │ │ │ └── shardingsphere │ │ │ └── demo │ │ │ ├── ShardingSphereDemoApplication.java │ │ │ ├── controller │ │ │ └── Query.java │ │ │ ├── dao │ │ │ ├── ScoreDao.java │ │ │ └── UserDao.java │ │ │ ├── model │ │ │ ├── Score.java │ │ │ └── User.java │ │ │ ├── service │ │ │ └── UserService.java │ │ │ └── vo │ │ │ └── UserScoreVo.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── yiii │ └── shardingsphere │ └── demo │ ├── ShardingSphereDemoApplicationTests.java │ └── service │ └── UserServiceTest.java ├── demo ├── spring-boot │ ├── demo-mq-kafka │ │ ├── .gitignore │ │ ├── README.md │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── net │ │ │ │ │ └── itqu │ │ │ │ │ └── mq │ │ │ │ │ └── kafka │ │ │ │ │ ├── SpringBootDemoMqKafkaApplication.java │ │ │ │ │ ├── config │ │ │ │ │ └── KafkaConfig.java │ │ │ │ │ ├── constants │ │ │ │ │ └── KafkaConsts.java │ │ │ │ │ ├── controller │ │ │ │ │ └── SendTestController.java │ │ │ │ │ └── handler │ │ │ │ │ └── MessageHandler.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── net │ │ │ └── itqu │ │ │ └── mq │ │ │ └── kafka │ │ │ └── SpringBootDemoMqKafkaApplicationTests.java │ ├── proj │ │ ├── proj_springboot_applicatoinevent │ │ │ ├── proj_applicationevent.iml │ │ │ └── target │ │ │ │ └── classes │ │ │ │ └── application.properties │ │ └── proj_springboot_webflux │ │ │ ├── proj_springboot_webflux.iml │ │ │ └── target │ │ │ └── classes │ │ │ └── application.properties │ ├── proj_springboot_applicatoinevent │ │ ├── .gitignore │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── wykd │ │ │ │ │ └── event │ │ │ │ │ ├── ProjApplicationEvent2Application.java │ │ │ │ │ ├── controller │ │ │ │ │ └── UserController.java │ │ │ │ │ ├── listener │ │ │ │ │ ├── AnnotationRegisterListener.java │ │ │ │ │ ├── RegisterListener.java │ │ │ │ │ └── SmartRegisterListener.java │ │ │ │ │ ├── service │ │ │ │ │ └── UserService.java │ │ │ │ │ ├── test │ │ │ │ │ ├── TestApplicationEvent.java │ │ │ │ │ ├── TestApplicationEvent2.java │ │ │ │ │ ├── TestCompleteFuture.java │ │ │ │ │ ├── TestCompleteService.java │ │ │ │ │ ├── TestThreadJoin.java │ │ │ │ │ └── TestThreadJoinAtomicBoolean.java │ │ │ │ │ └── vo │ │ │ │ │ ├── User.java │ │ │ │ │ └── UserRegisterEvent.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── wykd │ │ │ └── proj_application_event2 │ │ │ └── ProjApplicationEvent2ApplicationTests.java │ ├── proj_springboot_webflux │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── wykd │ │ │ │ └── proj_springboot_webflux │ │ │ │ ├── HelloController.java │ │ │ │ └── ProjSpringbootWebfluxApplication.java │ │ │ └── resources │ │ │ └── application.properties │ ├── springboot-comsumer │ │ ├── .gitignore │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── yiii │ │ │ │ │ └── provider │ │ │ │ │ ├── ConsumerApplication.java │ │ │ │ │ ├── config │ │ │ │ │ └── Swagger2Config.java │ │ │ │ │ └── controller │ │ │ │ │ └── MainController.java │ │ │ └── resources │ │ │ │ ├── application-dev.properties │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── yiii │ │ │ ├── provider │ │ │ └── ConsumerApplicationTests.java │ │ │ └── springbootprovider │ │ │ └── SpringbootproviderApplicationTests.java │ ├── springboot-diff │ │ ├── .gitignore │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── yiii │ │ │ │ │ └── provider │ │ │ │ │ ├── ConsumerApplication.java │ │ │ │ │ ├── config │ │ │ │ │ └── Swagger2Config.java │ │ │ │ │ ├── controller │ │ │ │ │ ├── MainController.java │ │ │ │ │ └── 对比文本差异 │ │ │ │ │ │ ├── diff.java │ │ │ │ │ │ └── test.java │ │ │ │ │ └── 相似度 │ │ │ │ │ ├── SimilarityUtils.java │ │ │ │ │ └── test.java │ │ │ └── resources │ │ │ │ ├── application-dev.properties │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── yiii │ │ │ ├── provider │ │ │ └── ConsumerApplicationTests.java │ │ │ └── springbootprovider │ │ │ └── SpringbootproviderApplicationTests.java │ ├── springboot-elasticsearch │ │ ├── .gitignore │ │ ├── pom.xml │ │ ├── readme.md │ │ ├── springEsTest │ │ │ ├── .gitignore │ │ │ ├── .mvn │ │ │ │ └── wrapper │ │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ │ ├── maven-wrapper.jar │ │ │ │ │ └── maven-wrapper.properties │ │ │ ├── mvnw │ │ │ ├── mvnw.cmd │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ └── springestest │ │ │ │ │ │ └── demo │ │ │ │ │ │ ├── DemoApplication.java │ │ │ │ │ │ ├── config │ │ │ │ │ │ └── ElasticsearchConfig.java │ │ │ │ │ │ ├── controller │ │ │ │ │ │ └── PersonController.java │ │ │ │ │ │ ├── pojo │ │ │ │ │ │ ├── Accout.java │ │ │ │ │ │ └── Person.java │ │ │ │ │ │ └── service │ │ │ │ │ │ ├── AccoutRepository.java │ │ │ │ │ │ └── PersonRepository.java │ │ │ │ └── resources │ │ │ │ │ └── application.properties │ │ │ │ └── test │ │ │ │ └── java │ │ │ │ └── springestest │ │ │ │ └── demo │ │ │ │ └── DemoApplicationTests.java │ │ ├── springboot-es │ │ │ ├── .gitignore │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── yiii │ │ │ │ │ │ └── es │ │ │ │ │ │ ├── ElasticsearchApplication.java │ │ │ │ │ │ ├── config │ │ │ │ │ │ ├── ESConfig.java │ │ │ │ │ │ └── Swagger2Config.java │ │ │ │ │ │ ├── controller │ │ │ │ │ │ └── MainController.java │ │ │ │ │ │ ├── dto │ │ │ │ │ │ └── User.java │ │ │ │ │ │ ├── service │ │ │ │ │ │ └── ESService.java │ │ │ │ │ │ └── tess.java │ │ │ │ └── resources │ │ │ │ │ ├── application-dev.yml │ │ │ │ │ └── application.yml │ │ │ │ └── test │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── yiii │ │ │ │ ├── es │ │ │ │ └── ElasticsearchApplicationTests.java │ │ │ │ └── springbootprovider │ │ │ │ └── SpringbootproviderApplicationTests.java │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── yiii │ │ │ │ │ └── es │ │ │ │ │ ├── ConsumerApplication.java │ │ │ │ │ ├── ElasticsearchApplication.java │ │ │ │ │ ├── config │ │ │ │ │ ├── ESConfig.java │ │ │ │ │ └── Swagger2Config.java │ │ │ │ │ ├── controller │ │ │ │ │ └── MainController.java │ │ │ │ │ ├── dto │ │ │ │ │ └── User.java │ │ │ │ │ ├── pojo │ │ │ │ │ ├── Document.java │ │ │ │ │ └── PicOcr.java │ │ │ │ │ ├── service │ │ │ │ │ └── ESService.java │ │ │ │ │ └── tess.java │ │ │ └── resources │ │ │ │ ├── application-dev.yml │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── yiii │ │ │ ├── es │ │ │ ├── ConsumerApplicationTests.java │ │ │ └── ElasticsearchApplicationTests.java │ │ │ └── springbootprovider │ │ │ └── SpringbootproviderApplicationTests.java │ ├── springboot-feign │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── yiii │ │ │ │ │ └── springbootfeign │ │ │ │ │ └── SpringbootFeignApplication.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── yiii │ │ │ └── springbootfeign │ │ │ └── SpringbootFeignApplicationTests.java │ ├── springboot-jwt-master │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── README.md │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── pjb │ │ │ │ │ └── springbootjjwt │ │ │ │ │ ├── SpringbootJjwtApplication.java │ │ │ │ │ ├── annotation │ │ │ │ │ ├── PassToken.java │ │ │ │ │ └── UserLoginToken.java │ │ │ │ │ ├── api │ │ │ │ │ └── UserApi.java │ │ │ │ │ ├── config │ │ │ │ │ └── InterceptorConfig.java │ │ │ │ │ ├── entity │ │ │ │ │ └── User.java │ │ │ │ │ ├── interceptor │ │ │ │ │ ├── AuthenticationInterceptor.java │ │ │ │ │ └── GloablExceptionHandler.java │ │ │ │ │ ├── mapper │ │ │ │ │ └── UserMapper.java │ │ │ │ │ └── service │ │ │ │ │ ├── TokenService.java │ │ │ │ │ └── UserService.java │ │ │ └── resources │ │ │ │ ├── application.yaml │ │ │ │ ├── com │ │ │ │ └── pjb │ │ │ │ │ └── springbootjjwt │ │ │ │ │ └── mapper │ │ │ │ │ └── UserMapper.xml │ │ │ │ ├── mybatis.xml │ │ │ │ └── test.sql │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── pjb │ │ │ └── springbootjjwt │ │ │ └── SpringbootJjwtApplicationTests.java │ ├── springboot-provider │ │ ├── .gitignore │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── yiii │ │ │ │ │ └── provider │ │ │ │ │ ├── ProviderApplication.java │ │ │ │ │ ├── config │ │ │ │ │ └── Swagger2Config.java │ │ │ │ │ ├── controller │ │ │ │ │ └── MainController.java │ │ │ │ │ ├── entity │ │ │ │ │ └── Yi.java │ │ │ │ │ ├── mapper │ │ │ │ │ └── MainMapper.java │ │ │ │ │ └── service │ │ │ │ │ ├── MainService.java │ │ │ │ │ └── MainServiceImpl.java │ │ │ └── resources │ │ │ │ ├── application-dev.properties │ │ │ │ ├── application.properties │ │ │ │ └── mapper │ │ │ │ └── ClientAlertHostMapper.xml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── yiii │ │ │ ├── provider │ │ │ └── ConsumerApplicationTests.java │ │ │ └── springbootprovider │ │ │ └── SpringbootproviderApplicationTests.java │ ├── springboot-redis-cache │ │ └── springboot-redis │ │ │ ├── .gitignore │ │ │ ├── pom.xml │ │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── redis │ │ │ │ │ ├── DemoApplication.java │ │ │ │ │ ├── config │ │ │ │ │ ├── RedisConfig.java │ │ │ │ │ ├── RedisKeyUtil.java │ │ │ │ │ └── RedisService.java │ │ │ │ │ ├── controller │ │ │ │ │ └── TestController.java │ │ │ │ │ └── vo │ │ │ │ │ └── UserVo.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── redis │ │ │ ├── DemoApplicationTests.java │ │ │ └── controller │ │ │ └── TestControllerTest.java │ ├── springboot-redis │ │ ├── .gitignore │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── redis │ │ │ │ │ ├── DemoApplication.java │ │ │ │ │ ├── config │ │ │ │ │ ├── RedisConfig.java │ │ │ │ │ ├── RedisKeyUtil.java │ │ │ │ │ └── RedisService.java │ │ │ │ │ ├── controller │ │ │ │ │ └── TestController.java │ │ │ │ │ └── vo │ │ │ │ │ └── UserVo.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── redis │ │ │ ├── DemoApplicationTests.java │ │ │ └── controller │ │ │ └── TestControllerTest.java │ └── springboot-test-redis │ │ ├── .gitignore │ │ ├── README.md │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── dist │ │ │ ├── ServletInitializer.java │ │ │ ├── SpringbootdemoApplication.java │ │ │ ├── config │ │ │ ├── RedisConfig.java │ │ │ ├── RedisSubConfig.java │ │ │ └── Swaggwe2Config.java │ │ │ ├── constants │ │ │ ├── RedisConstants.java │ │ │ └── Status.java │ │ │ ├── controller │ │ │ ├── RedisInterfaceCacheController.java │ │ │ ├── RedisSendMessageController.java │ │ │ └── RedisUtilTestController.java │ │ │ ├── listener │ │ │ └── MyRedisSubscribeListener.java │ │ │ ├── service │ │ │ ├── RedisMethodsCacheService.java │ │ │ └── impl │ │ │ │ └── RedisMethodsCacheServiceImpl.java │ │ │ └── utils │ │ │ └── RedisUtil.java │ │ ├── resources │ │ ├── application.yml │ │ └── static │ │ │ └── index.html │ │ └── webapp │ │ └── WEB-INF │ │ └── web.xml └── spring-cloud │ ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── libraries │ │ ├── Maven__antlr_antlr_2_7_7.xml │ │ ├── Maven__aopalliance_aopalliance_1_0.xml │ │ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml │ │ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml │ │ ├── Maven__com_fasterxml_classmate_1_5_1.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_11_3.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_11_3.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_11_3.xml │ │ ├── Maven__com_fasterxml_jackson_dataformat_jackson_dataformat_xml_2_11_3.xml │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_11_3.xml │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_11_3.xml │ │ ├── Maven__com_fasterxml_jackson_module_jackson_module_jaxb_annotations_2_11_3.xml │ │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_11_3.xml │ │ ├── Maven__com_fasterxml_woodstox_woodstox_core_5_3_0.xml │ │ ├── Maven__com_google_code_gson_gson_2_8_6.xml │ │ ├── Maven__com_google_guava_guava_19_0.xml │ │ ├── Maven__com_google_inject_guice_4_1_0.xml │ │ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml │ │ ├── Maven__com_netflix_eureka_eureka_client_1_10_10.xml │ │ ├── Maven__com_netflix_eureka_eureka_core_1_10_10.xml │ │ ├── Maven__com_netflix_netflix_commons_netflix_eventbus_0_3_0.xml │ │ ├── Maven__com_netflix_netflix_commons_netflix_infix_0_3_0.xml │ │ ├── Maven__com_netflix_servo_servo_core_0_12_21.xml │ │ ├── Maven__com_stoyanr_evictor_1_0_0.xml │ │ ├── Maven__com_sun_activation_jakarta_activation_1_2_2.xml │ │ ├── Maven__com_sun_istack_istack_commons_runtime_3_0_11.xml │ │ ├── Maven__com_sun_jersey_contribs_jersey_apache_client4_1_19_1.xml │ │ ├── Maven__com_sun_jersey_jersey_client_1_19_4.xml │ │ ├── Maven__com_sun_jersey_jersey_core_1_19_1.xml │ │ ├── Maven__com_sun_jersey_jersey_server_1_19_4.xml │ │ ├── Maven__com_sun_jersey_jersey_servlet_1_19_4.xml │ │ ├── Maven__com_thoughtworks_xstream_xstream_1_4_14.xml │ │ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml │ │ ├── Maven__commons_codec_commons_codec_1_15.xml │ │ ├── Maven__commons_configuration_commons_configuration_1_10.xml │ │ ├── Maven__commons_jxpath_commons_jxpath_1_3.xml │ │ ├── Maven__commons_lang_commons_lang_2_6.xml │ │ ├── Maven__io_micrometer_micrometer_core_1_6_2.xml │ │ ├── Maven__io_projectreactor_addons_reactor_extra_3_4_1.xml │ │ ├── Maven__io_projectreactor_reactor_core_3_4_1.xml │ │ ├── Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml │ │ ├── Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml │ │ ├── Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml │ │ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml │ │ ├── Maven__javax_inject_javax_inject_1.xml │ │ ├── Maven__javax_ws_rs_jsr311_api_1_1_1.xml │ │ ├── Maven__joda_time_joda_time_2_3.xml │ │ ├── Maven__net_bytebuddy_byte_buddy_1_10_18.xml │ │ ├── Maven__net_bytebuddy_byte_buddy_agent_1_10_18.xml │ │ ├── Maven__net_minidev_accessors_smart_1_2.xml │ │ ├── Maven__net_minidev_json_smart_2_3.xml │ │ ├── Maven__org_antlr_antlr_runtime_3_4.xml │ │ ├── Maven__org_antlr_stringtemplate_3_2_1.xml │ │ ├── Maven__org_apache_commons_commons_math_2_2.xml │ │ ├── Maven__org_apache_httpcomponents_httpclient_4_5_13.xml │ │ ├── Maven__org_apache_httpcomponents_httpcore_4_4_14.xml │ │ ├── Maven__org_apache_logging_log4j_log4j_api_2_13_3.xml │ │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_13_3.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_41.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_41.xml │ │ ├── Maven__org_apiguardian_apiguardian_api_1_1_0.xml │ │ ├── Maven__org_assertj_assertj_core_3_18_1.xml │ │ ├── Maven__org_bouncycastle_bcpkix_jdk15on_1_64.xml │ │ ├── Maven__org_bouncycastle_bcprov_jdk15on_1_64.xml │ │ ├── Maven__org_codehaus_jettison_jettison_1_4_0.xml │ │ ├── Maven__org_codehaus_woodstox_stax2_api_4_2_1.xml │ │ ├── Maven__org_freemarker_freemarker_2_3_30.xml │ │ ├── Maven__org_glassfish_jakarta_el_3_0_3.xml │ │ ├── Maven__org_glassfish_jaxb_jaxb_runtime_2_3_3.xml │ │ ├── Maven__org_glassfish_jaxb_txw2_2_3_3.xml │ │ ├── Maven__org_hamcrest_hamcrest_2_2.xml │ │ ├── Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml │ │ ├── Maven__org_hibernate_validator_hibernate_validator_6_1_6_Final.xml │ │ ├── Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_5_7_0.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_7_0.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_7_0.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_params_5_7_0.xml │ │ ├── Maven__org_junit_platform_junit_platform_commons_1_7_0.xml │ │ ├── Maven__org_junit_platform_junit_platform_engine_1_7_0.xml │ │ ├── Maven__org_latencyutils_LatencyUtils_2_0_3.xml │ │ ├── Maven__org_mockito_mockito_core_3_6_28.xml │ │ ├── Maven__org_mockito_mockito_junit_jupiter_3_6_28.xml │ │ ├── Maven__org_objenesis_objenesis_3_1.xml │ │ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml │ │ ├── Maven__org_ow2_asm_asm_5_0_4.xml │ │ ├── Maven__org_projectlombok_lombok_1_18_16.xml │ │ ├── Maven__org_reactivestreams_reactive_streams_1_0_3.xml │ │ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml │ │ ├── Maven__org_slf4j_jul_to_slf4j_1_7_30.xml │ │ ├── Maven__org_slf4j_slf4j_api_1_7_30.xml │ │ ├── Maven__org_springframework_boot_spring_boot_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_actuator_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_actuator_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_cache_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_freemarker_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_validation_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_test_2_4_1.xml │ │ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_4_1.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_commons_3_0_0_RC1.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_context_3_0_0_RC1.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_loadbalancer_3_0_0_RC1.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_netflix_eureka_client_3_0_0_RC1.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_netflix_eureka_server_3_0_0_RC1.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_starter_3_0_0_RC1.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_starter_loadbalancer_3_0_0_RC1.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_starter_netflix_eureka_server_3_0_0_RC1.xml │ │ ├── Maven__org_springframework_security_spring_security_crypto_5_4_2.xml │ │ ├── Maven__org_springframework_security_spring_security_rsa_1_0_9_RELEASE.xml │ │ ├── Maven__org_springframework_spring_aop_5_3_2.xml │ │ ├── Maven__org_springframework_spring_beans_5_3_2.xml │ │ ├── Maven__org_springframework_spring_context_5_3_2.xml │ │ ├── Maven__org_springframework_spring_context_support_5_3_2.xml │ │ ├── Maven__org_springframework_spring_core_5_3_2.xml │ │ ├── Maven__org_springframework_spring_expression_5_3_2.xml │ │ ├── Maven__org_springframework_spring_jcl_5_3_2.xml │ │ ├── Maven__org_springframework_spring_test_5_3_2.xml │ │ ├── Maven__org_springframework_spring_web_5_3_2.xml │ │ ├── Maven__org_springframework_spring_webmvc_5_3_2.xml │ │ ├── Maven__org_xmlunit_xmlunit_core_2_7_0.xml │ │ ├── Maven__org_yaml_snakeyaml_1_27.xml │ │ ├── Maven__xmlpull_xmlpull_1_1_3_1.xml │ │ └── Maven__xpp3_xpp3_min_1_1_4c.xml │ ├── misc.xml │ ├── modules.xml │ ├── uiDesigner.xml │ └── workspace.xml │ ├── README.md │ ├── springboot-comsumer │ ├── springbootcomsumer.iml │ └── target │ │ ├── classes │ │ ├── application-dev.properties │ │ ├── application.properties │ │ └── com │ │ │ └── yiii │ │ │ └── provider │ │ │ ├── ConsumerApplication.class │ │ │ ├── config │ │ │ └── Swagger2Config.class │ │ │ ├── controller │ │ │ └── MainController.class │ │ │ ├── test.class │ │ │ └── 相似度 │ │ │ ├── SimilarityUtils.class │ │ │ └── test.class │ │ └── test-classes │ │ └── com │ │ └── yiii │ │ ├── provider │ │ └── ConsumerApplicationTests.class │ │ └── springbootprovider │ │ └── SpringbootproviderApplicationTests.class │ ├── springboot-eureka │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── yiiii │ │ │ │ └── springbooteureka │ │ │ │ └── SpringbootEurekaApplication.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── yiiii │ │ └── springbooteureka │ │ └── SpringbootEurekaApplicationTests.java │ ├── springboot-provider │ ├── springbootprovider.iml │ └── target │ │ ├── classes │ │ ├── application-dev.properties │ │ ├── application.properties │ │ ├── com │ │ │ └── yiii │ │ │ │ └── provider │ │ │ │ ├── ProviderApplication.class │ │ │ │ ├── config │ │ │ │ └── Swagger2Config.class │ │ │ │ ├── controller │ │ │ │ └── MainController.class │ │ │ │ ├── entity │ │ │ │ └── Yi.class │ │ │ │ ├── mapper │ │ │ │ └── MainMapper.class │ │ │ │ └── service │ │ │ │ ├── MainService.class │ │ │ │ └── MainServiceImpl.class │ │ └── mapper │ │ │ └── ClientAlertHostMapper.xml │ │ └── test-classes │ │ └── com │ │ └── yiii │ │ ├── provider │ │ └── ConsumerApplicationTests.class │ │ └── springbootprovider │ │ └── SpringbootproviderApplicationTests.class │ ├── springcloud-config │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── yiii │ │ │ │ └── springcloudconfig │ │ │ │ └── SpringcloudConfigApplication.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── yiii │ │ └── springcloudconfig │ │ └── SpringcloudConfigApplicationTests.java │ ├── springcloud-consumer │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── yiii │ │ │ │ └── consumer │ │ │ │ ├── ConsumerApplication.java │ │ │ │ ├── config │ │ │ │ └── Swagger2Config.java │ │ │ │ ├── controller │ │ │ │ └── MainController.java │ │ │ │ └── feign │ │ │ │ └── LocalFeign.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── yiii │ │ └── consumer │ │ └── ConsumerApplicationTests.java │ ├── springcloud-gateway │ ├── .gitignore │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── yiii │ │ │ │ └── springcloudgateway │ │ │ │ ├── SpringcloudgatewayApplication.java │ │ │ │ └── filter │ │ │ │ ├── IpForbidGatewayFilterFactory.java │ │ │ │ └── MyGlobalFilter.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── yiii │ │ └── springcloudgateway │ │ └── SpringcloudgatewayApplicationTests.java │ ├── springcloud-provider-cluster │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── yiii │ │ │ │ └── provider │ │ │ │ ├── ProviderApplication.java │ │ │ │ ├── config │ │ │ │ └── Swagger2Config.java │ │ │ │ ├── controller │ │ │ │ └── MainController.java │ │ │ │ ├── entity │ │ │ │ └── Yi.java │ │ │ │ ├── mapper │ │ │ │ └── MainMapper.java │ │ │ │ └── service │ │ │ │ ├── MainService.java │ │ │ │ └── MainServiceImpl.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── mapper │ │ │ └── ClientAlertHostMapper.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── yiii │ │ └── provider │ │ └── ProviderApplicationTests.java │ ├── springcloud-provider │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── yiii │ │ │ │ └── provider │ │ │ │ ├── ProviderApplication.java │ │ │ │ ├── config │ │ │ │ └── Swagger2Config.java │ │ │ │ ├── controller │ │ │ │ └── MainController.java │ │ │ │ ├── entity │ │ │ │ └── Yi.java │ │ │ │ ├── mapper │ │ │ │ └── MainMapper.java │ │ │ │ └── service │ │ │ │ ├── MainService.java │ │ │ │ └── MainServiceImpl.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── mapper │ │ │ └── ClientAlertHostMapper.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── yiii │ │ └── provider │ │ └── ProviderApplicationTests.java │ └── sql │ └── yidata.sql ├── doc └── README.md └── tool └── README.md /.gitee/ISSUE_TEMPLATE.zh-CN.md: -------------------------------------------------------------------------------- 1 | ### 该问题是怎么引起的? 2 | 3 | 4 | 5 | ### 重现步骤 6 | 7 | 8 | 9 | ### 报错信息 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /api/file/test.java: -------------------------------------------------------------------------------- 1 | import java.io.File; 2 | 3 | public class test { 4 | 5 | public static void main(String[] args) { 6 | if (!new File("test").exists()) {// 判断目录是否存在 7 | new File("test").mkdir(); 8 | String fs = System.getProperties().getProperty("file.separator"); 9 | System.out.println(fs); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /api/local-cache/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /api/local-cache/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/api/local-cache/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /api/local-cache/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /api/local-cache/src/main/java/com/yiii/localcache/LocalcacheApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.localcache; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class LocalcacheApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(LocalcacheApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /api/local-cache/src/main/java/com/yiii/localcache/controller/TestController.java: -------------------------------------------------------------------------------- 1 | package com.yiii.localcache.controller; 2 | 3 | import com.yiii.localcache.cache.LocalCache; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | import java.util.Map; 8 | 9 | @RestController 10 | public class TestController { 11 | 12 | 13 | } 14 | -------------------------------------------------------------------------------- /api/local-cache/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8888 2 | spring.datasource.username=zecoki20161016 3 | spring.datasource.password=zhaikeji2016 4 | spring.datasource.url=jdbc:mysql://sql.l186.vhostgo.com/zecoki20161016?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC 5 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 6 | mybatis.mapper-locations=classpath:mapper/*Mapper.xml 7 | mybatis.type-aliases-package=com.yiii.collectionreminder.pojo.entity -------------------------------------------------------------------------------- /api/local-cache/src/test/java/com/yiii/localcache/LocalcacheApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.localcache; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class LocalcacheApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /api/multi-thread/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/api/multi-thread/.keep -------------------------------------------------------------------------------- /api/multi-thread/thread: -------------------------------------------------------------------------------- 1 | @PostMapping(value = "/thread") 2 | @ApiOperation(value = "多线调用") 3 | public void thread() { 4 | TodoThread thread1=new TodoThread(); 5 | TodoThread thread2=new TodoThread(); 6 | TodoThread thread3=new TodoThread(); 7 | thread1.run(thread1.getId()); 8 | thread2.run(thread2.getId()); 9 | thread3.run(thread3.getId()); 10 | } 11 | 12 | 13 | @Resource 14 | private LoanDepotHeadService loanDepotHeadService; 15 | class TodoThread extends Thread { 16 | public void run(long id){ 17 | log.info("thread---->,{}",id); 18 | }; 19 | 20 | }; -------------------------------------------------------------------------------- /api/sharding-sphere-demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | /target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | 5 | ### STS ### 6 | .apt_generated 7 | .classpath 8 | .factorypath 9 | .project 10 | .settings 11 | .springBeans 12 | .sts4-cache 13 | 14 | ### IntelliJ IDEA ### 15 | .idea 16 | *.iws 17 | *.iml 18 | *.ipr 19 | 20 | ### NetBeans ### 21 | /nbproject/private/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ 26 | /build/ 27 | 28 | ### VS Code ### 29 | .vscode/ 30 | -------------------------------------------------------------------------------- /api/sharding-sphere-demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/api/sharding-sphere-demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /api/sharding-sphere-demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /api/sharding-sphere-demo/README.md: -------------------------------------------------------------------------------- 1 | 原文: 2 | https://www.jianshu.com/p/52ccdb7d5683 -------------------------------------------------------------------------------- /api/sharding-sphere-demo/src/main/java/com/yiii/shardingsphere/demo/ShardingSphereDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.shardingsphere.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import tk.mybatis.spring.annotation.MapperScan; 6 | 7 | @MapperScan("com.yiii.shardingsphere.demo.dao") 8 | @SpringBootApplication 9 | public class ShardingSphereDemoApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ShardingSphereDemoApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /api/sharding-sphere-demo/src/main/java/com/yiii/shardingsphere/demo/dao/ScoreDao.java: -------------------------------------------------------------------------------- 1 | package com.yiii.shardingsphere.demo.dao; 2 | 3 | 4 | import com.yiii.shardingsphere.demo.model.Score; 5 | import tk.mybatis.mapper.common.BaseMapper; 6 | import tk.mybatis.mapper.common.ExampleMapper; 7 | 8 | public interface ScoreDao extends BaseMapper, ExampleMapper { 9 | } 10 | -------------------------------------------------------------------------------- /api/sharding-sphere-demo/src/main/java/com/yiii/shardingsphere/demo/model/Score.java: -------------------------------------------------------------------------------- 1 | package com.yiii.shardingsphere.demo.model; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | import tk.mybatis.mapper.annotation.KeySql; 7 | 8 | import javax.persistence.Id; 9 | import javax.persistence.Table; 10 | 11 | @Data 12 | @Table(name = "score") 13 | @NoArgsConstructor 14 | @AllArgsConstructor 15 | public class Score { 16 | 17 | @Id 18 | @KeySql(useGeneratedKeys = true) 19 | private Integer id; 20 | 21 | private Integer userId; 22 | 23 | private Integer score; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /api/sharding-sphere-demo/src/main/java/com/yiii/shardingsphere/demo/model/User.java: -------------------------------------------------------------------------------- 1 | package com.yiii.shardingsphere.demo.model; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | import tk.mybatis.mapper.annotation.KeySql; 7 | 8 | import javax.persistence.Id; 9 | import javax.persistence.Table; 10 | 11 | @Data 12 | @Table(name = "user") 13 | @NoArgsConstructor 14 | @AllArgsConstructor 15 | public class User { 16 | 17 | @Id 18 | @KeySql(useGeneratedKeys = true) 19 | private Integer id; 20 | 21 | private String name; 22 | 23 | private Integer age; 24 | 25 | } 26 | -------------------------------------------------------------------------------- /api/sharding-sphere-demo/src/main/java/com/yiii/shardingsphere/demo/vo/UserScoreVo.java: -------------------------------------------------------------------------------- 1 | package com.yiii.shardingsphere.demo.vo; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class UserScoreVo { 7 | 8 | private Integer userId; 9 | 10 | private Integer scoreId; 11 | 12 | private String name; 13 | 14 | private Integer score; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /api/sharding-sphere-demo/src/test/java/com/yiii/shardingsphere/demo/ShardingSphereDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.shardingsphere.demo; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ShardingSphereDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-boot/demo-mq-kafka/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /demo/spring-boot/demo-mq-kafka/src/main/java/net/itqu/mq/kafka/SpringBootDemoMqKafkaApplication.java: -------------------------------------------------------------------------------- 1 | package net.itqu.mq.kafka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | *

8 | * 启动器 9 | *

10 | * 11 | * @author yangkai.shen 12 | * @date Created in 2019-01-07 14:43 13 | */ 14 | @SpringBootApplication 15 | public class SpringBootDemoMqKafkaApplication { 16 | 17 | public static void main(String[] args) { 18 | SpringApplication.run(SpringBootDemoMqKafkaApplication.class, args); 19 | } 20 | 21 | } 22 | 23 | -------------------------------------------------------------------------------- /demo/spring-boot/demo-mq-kafka/src/main/java/net/itqu/mq/kafka/constants/KafkaConsts.java: -------------------------------------------------------------------------------- 1 | package net.itqu.mq.kafka.constants; 2 | 3 | /** 4 | *

5 | * kafka 常量池 6 | *

7 | * 8 | * @author yangkai.shen 9 | * @date Created in 2019-01-07 14:52 10 | */ 11 | public interface KafkaConsts { 12 | /** 13 | * 默认分区大小 14 | */ 15 | Integer DEFAULT_PARTITION_NUM = 3; 16 | 17 | /** 18 | * Topic 名称 19 | */ 20 | String TOPIC_TEST = "test"; 21 | } 22 | -------------------------------------------------------------------------------- /demo/spring-boot/demo-mq-kafka/src/test/java/net/itqu/mq/kafka/SpringBootDemoMqKafkaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.itqu.mq.kafka; 2 | 3 | import net.itqu.mq.kafka.constants.KafkaConsts; 4 | import org.junit.Test; 5 | import org.junit.runner.RunWith; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | import org.springframework.kafka.core.KafkaTemplate; 9 | import org.springframework.test.context.junit4.SpringRunner; 10 | 11 | @RunWith(SpringRunner.class) 12 | @SpringBootTest 13 | public class SpringBootDemoMqKafkaApplicationTests { 14 | @Autowired 15 | private KafkaTemplate kafkaTemplate; 16 | 17 | /** 18 | * 测试发送消息 19 | */ 20 | @Test 21 | public void testSend() { 22 | kafkaTemplate.send(KafkaConsts.TOPIC_TEST, "hello,kafka..."); 23 | } 24 | 25 | } 26 | 27 | -------------------------------------------------------------------------------- /demo/spring-boot/proj/proj_springboot_applicatoinevent/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | #################################### common config : #################################### 2 | spring.application.name=proj_application_event2 3 | # \u5E94\u7528\u670D\u52A1web\u8BBF\u95EE\u7AEF\u53E3 4 | server.port=8081 5 | # ActuatorWeb\u8BBF\u95EE\u7AEF\u53E3 6 | management.server.port=8081 7 | management.endpoints.jmx.exposure.include=* 8 | management.endpoints.web.exposure.include=* 9 | management.endpoint.health.show-details=always 10 | # spring cloud access&secret config 11 | # \u53EF\u4EE5\u8BBF\u95EE\u5982\u4E0B\u5730\u5740\u67E5\u770B: https://usercenter.console.aliyun.com/#/manage/ak 12 | alibaba.cloud.access-key=**** 13 | alibaba.cloud.secret-key=**** 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /demo/spring-boot/proj/proj_springboot_webflux/proj_springboot_webflux.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /demo/spring-boot/proj/proj_springboot_webflux/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/main/java/com/wykd/event/ProjApplicationEvent2Application.java: -------------------------------------------------------------------------------- 1 | package com.wykd.event; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ProjApplicationEvent2Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ProjApplicationEvent2Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/main/java/com/wykd/event/listener/AnnotationRegisterListener.java: -------------------------------------------------------------------------------- 1 | package com.wykd.event.listener; 2 | 3 | 4 | import com.wykd.event.vo.User; 5 | import com.wykd.event.vo.UserRegisterEvent; 6 | import org.springframework.context.event.EventListener; 7 | import org.springframework.stereotype.Component; 8 | 9 | 10 | @Component 11 | public class AnnotationRegisterListener { 12 | /** 13 | * 注册监听实现方法 14 | * @param userRegisterEvent 用户注册事件 15 | */ 16 | @EventListener 17 | public void sendEmail(UserRegisterEvent userRegisterEvent) 18 | { 19 | //获取注册用户对象 20 | User user = userRegisterEvent.getUser(); 21 | 22 | //todo 23 | 24 | //输出注册用户信息 25 | System.out.println("AnnotationRegisterListener —— 发送邮件,用户名:"+user.getName()+",邮箱:"+user.getEmail()); 26 | } 27 | 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/main/java/com/wykd/event/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.wykd.event.service; 2 | 3 | 4 | import com.wykd.event.vo.User; 5 | import com.wykd.event.vo.UserRegisterEvent; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.context.ApplicationContext; 8 | import org.springframework.stereotype.Service; 9 | 10 | /** 11 | * @author jackcooper 12 | * @create 2018-02-27 14:03 13 | */ 14 | @Service 15 | public class UserService { 16 | 17 | @Autowired 18 | private ApplicationContext applicationContext; 19 | 20 | public void register(User user){ 21 | //省略业务逻辑 22 | //。。。。 23 | //发布UserRegisterEvent事件 24 | applicationContext.publishEvent(new UserRegisterEvent(this,user)); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/main/java/com/wykd/event/test/TestCompleteService.java: -------------------------------------------------------------------------------- 1 | package com.wykd.event.test; 2 | 3 | import java.util.concurrent.CompletionService; 4 | import java.util.concurrent.ExecutorCompletionService; 5 | import java.util.concurrent.ExecutorService; 6 | import java.util.concurrent.Executors; 7 | 8 | public class TestCompleteService { 9 | 10 | public static void main(String[] args) { 11 | 12 | ExecutorService executorService = Executors.newFixedThreadPool(5); 13 | CompletionService completionService = new ExecutorCompletionService(executorService); 14 | 15 | 16 | 17 | 18 | 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/main/java/com/wykd/event/test/TestThreadJoin.java: -------------------------------------------------------------------------------- 1 | package com.wykd.event.test; 2 | 3 | public class TestThreadJoin { 4 | 5 | public static void main(String[] args) { 6 | 7 | 8 | System.out.println(Thread.currentThread().getName()); 9 | 10 | 11 | Thread thread = new Thread(()->{ 12 | System.out.println(Thread.currentThread().getName()); 13 | }); 14 | 15 | thread.start(); 16 | 17 | // try { 18 | // thread.join(); //子线程销毁的时候,再往下执行 19 | // } catch (InterruptedException e) { 20 | // e.printStackTrace(); 21 | // } 22 | 23 | System.out.println(Thread.currentThread().getName()); 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/main/java/com/wykd/event/vo/User.java: -------------------------------------------------------------------------------- 1 | package com.wykd.event.vo; 2 | 3 | /** 4 | * 功能: 5 | * Created by [Alex] 6 | * 2020/6/16 14:45 7 | */ 8 | public class User { 9 | 10 | private String name; 11 | 12 | private String email; 13 | 14 | 15 | public String getName() { 16 | return name; 17 | } 18 | 19 | public void setName(String name) { 20 | this.name = name; 21 | } 22 | 23 | public String getEmail() { 24 | return email; 25 | } 26 | 27 | public void setEmail(String email) { 28 | this.email = email; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/main/java/com/wykd/event/vo/UserRegisterEvent.java: -------------------------------------------------------------------------------- 1 | package com.wykd.event.vo; 2 | 3 | import com.wykd.event.vo.User; 4 | import org.springframework.context.ApplicationEvent; 5 | 6 | /** 7 | * @author jackcooper 8 | * @create 2018-02-27 13:54 9 | */ 10 | public class UserRegisterEvent extends ApplicationEvent { 11 | 12 | public User user; 13 | 14 | /** 15 | * 16 | * @param source 发生事件的对象 17 | * @param user 注册用户对象 18 | */ 19 | public UserRegisterEvent(Object source,User user) { 20 | super(source); 21 | this.user = user; 22 | } 23 | 24 | 25 | 26 | 27 | 28 | public User getUser() { 29 | return user; 30 | } 31 | 32 | public void setUser(User user) { 33 | this.user = user; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | #################################### common config : #################################### 2 | spring.application.name=proj_application_event2 3 | # \u5E94\u7528\u670D\u52A1web\u8BBF\u95EE\u7AEF\u53E3 4 | server.port=8081 5 | # ActuatorWeb\u8BBF\u95EE\u7AEF\u53E3 6 | management.server.port=8081 7 | management.endpoints.jmx.exposure.include=* 8 | management.endpoints.web.exposure.include=* 9 | management.endpoint.health.show-details=always 10 | # spring cloud access&secret config 11 | # \u53EF\u4EE5\u8BBF\u95EE\u5982\u4E0B\u5730\u5740\u67E5\u770B: https://usercenter.console.aliyun.com/#/manage/ak 12 | alibaba.cloud.access-key=**** 13 | alibaba.cloud.secret-key=**** 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_applicatoinevent/src/test/java/com/wykd/proj_application_event2/ProjApplicationEvent2ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.wykd.proj_application_event2; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProjApplicationEvent2ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_webflux/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_webflux/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/proj_springboot_webflux/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_webflux/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_webflux/src/main/java/com/wykd/proj_springboot_webflux/ProjSpringbootWebfluxApplication.java: -------------------------------------------------------------------------------- 1 | package com.wykd.proj_springboot_webflux; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ProjSpringbootWebfluxApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ProjSpringbootWebfluxApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/proj_springboot_webflux/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-comsumer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-comsumer/src/main/java/com/yiii/provider/ConsumerApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.web.client.RestTemplate; 7 | 8 | @SpringBootApplication 9 | public class ConsumerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConsumerApplication.class, args); 13 | } 14 | // 注入RestTemplate 15 | @Bean(name = "restTemplate") 16 | public RestTemplate createRestTemplate(){ 17 | return new RestTemplate(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-comsumer/src/main/java/com/yiii/provider/controller/MainController.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.GetMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | import org.springframework.web.client.RestTemplate; 7 | 8 | @RestController 9 | public class MainController { 10 | 11 | @Autowired 12 | private RestTemplate restTemplate; 13 | 14 | @GetMapping("getString") 15 | public String getString() { 16 | String url ="http://localhost:8081/api/provider/getString"; 17 | String jsonpObject= restTemplate.getForObject(url, String.class); 18 | 19 | return jsonpObject; 20 | 21 | } 22 | 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-comsumer/src/main/resources/application-dev.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-comsumer/src/main/resources/application-dev.properties -------------------------------------------------------------------------------- /demo/spring-boot/springboot-comsumer/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=8082 3 | 4 | server.servlet.context-path=/api/consumer 5 | 6 | spring.profiles.active=dev 7 | 8 | 9 | mybatis.mapper-locations=classpath:mapper/*Mapper.xml 10 | mybatis.type-aliases-package=com.yiii.consumer.entity,com.yiii.consumer.vo 11 | logging.level.com.yiii.provider.mapper=DEBUG 12 | mybatis.configuration.map-underscore-to-camel-case=true 13 | 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-comsumer/src/test/java/com/yiii/provider/ConsumerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ConsumerApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-comsumer/src/test/java/com/yiii/springbootprovider/SpringbootproviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springbootprovider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootproviderApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/src/main/java/com/yiii/provider/ConsumerApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.web.client.RestTemplate; 7 | 8 | @SpringBootApplication 9 | public class ConsumerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConsumerApplication.class, args); 13 | } 14 | // 注入RestTemplate 15 | @Bean(name = "restTemplate") 16 | public RestTemplate createRestTemplate(){ 17 | return new RestTemplate(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/src/main/java/com/yiii/provider/controller/MainController.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.GetMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | import org.springframework.web.client.RestTemplate; 7 | 8 | @RestController 9 | public class MainController { 10 | 11 | @Autowired 12 | private RestTemplate restTemplate; 13 | 14 | @GetMapping("getString") 15 | public String getString() { 16 | String url ="http://localhost:8081/api/provider/getString"; 17 | String jsonpObject= restTemplate.getForObject(url, String.class); 18 | 19 | return jsonpObject; 20 | 21 | } 22 | 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/src/main/java/com/yiii/provider/controller/对比文本差异/test.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.controller.对比文本差异; 2 | 3 | public class test { 4 | } 5 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/src/main/java/com/yiii/provider/相似度/test.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.相似度; 2 | 3 | import lombok.extern.slf4j.Slf4j; 4 | 5 | @Slf4j 6 | public class test { 7 | public static void main(String[] args) { 8 | String src = "hello world!"; 9 | String tar = "hello"; 10 | System.out.println("sim=" + SimilarityUtils.similarity(src, tar)); 11 | } 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/src/main/resources/application-dev.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-diff/src/main/resources/application-dev.properties -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=8082 3 | 4 | server.servlet.context-path=/api/consumer 5 | 6 | spring.profiles.active=dev 7 | 8 | 9 | mybatis.mapper-locations=classpath:mapper/*Mapper.xml 10 | mybatis.type-aliases-package=com.yiii.consumer.entity,com.yiii.consumer.vo 11 | logging.level.com.yiii.provider.mapper=DEBUG 12 | mybatis.configuration.map-underscore-to-camel-case=true 13 | 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/src/test/java/com/yiii/provider/ConsumerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ConsumerApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-diff/src/test/java/com/yiii/springbootprovider/SpringbootproviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springbootprovider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootproviderApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/readme.md: -------------------------------------------------------------------------------- 1 | ## Es基本操作指南 2 | 3 | 1. 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-elasticsearch/springEsTest/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/src/main/java/springestest/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package springestest.demo; 2 | 3 | 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | @SpringBootApplication 8 | public class DemoApplication { 9 | 10 | public static void main(String[] args) { 11 | 12 | SpringApplication.run(DemoApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/src/main/java/springestest/demo/config/ElasticsearchConfig.java: -------------------------------------------------------------------------------- 1 | package springestest.demo.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.data.elasticsearch.client.TransportClientFactoryBean; 6 | 7 | @Configuration 8 | public class ElasticsearchConfig { 9 | 10 | @Bean 11 | TransportClientFactoryBean client() { 12 | TransportClientFactoryBean bean=new TransportClientFactoryBean(); 13 | bean.setClusterNodes("localhost:9300"); 14 | return bean; 15 | } 16 | 17 | 18 | 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/src/main/java/springestest/demo/pojo/Person.java: -------------------------------------------------------------------------------- 1 | package springestest.demo.pojo; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | import org.springframework.data.annotation.Id; 7 | import org.springframework.data.elasticsearch.annotations.Document; 8 | 9 | @Document(indexName = "test",type = "person") 10 | @Data 11 | @AllArgsConstructor 12 | @NoArgsConstructor 13 | public class Person { 14 | @Id 15 | private Integer id; 16 | private String user; 17 | private String title; 18 | private String desc; 19 | } 20 | 21 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/src/main/java/springestest/demo/service/AccoutRepository.java: -------------------------------------------------------------------------------- 1 | package springestest.demo.service; 2 | 3 | import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; 4 | import org.springframework.stereotype.Repository; 5 | import springestest.demo.pojo.Accout; 6 | 7 | @Repository 8 | public interface AccoutRepository extends ElasticsearchRepository { 9 | } 10 | 11 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/src/main/java/springestest/demo/service/PersonRepository.java: -------------------------------------------------------------------------------- 1 | package springestest.demo.service; 2 | 3 | 4 | import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; 5 | import org.springframework.stereotype.Repository; 6 | import springestest.demo.pojo.Person; 7 | 8 | @Repository 9 | public interface PersonRepository extends ElasticsearchRepository { 10 | } 11 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springEsTest/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.level.org.springframework.data.elasticsearch.core=DEBUG 2 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springboot-es/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springboot-es/src/main/java/com/yiii/es/ElasticsearchApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.es; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.web.client.RestTemplate; 7 | 8 | @SpringBootApplication 9 | public class ElasticsearchApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ElasticsearchApplication.class, args); 13 | } 14 | // 注入RestTemplate 15 | @Bean(name = "restTemplate") 16 | public RestTemplate createRestTemplate(){ 17 | return new RestTemplate(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springboot-es/src/main/resources/application-dev.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | datasource: 3 | driver-class-name: com.mysql.cj.jdbc.Driver 4 | hikari: 5 | auto-commit: true 6 | connection-test-query: SELECT 1 7 | connection-timeout: 30000 8 | idle-timeout: 180000 9 | max-lifetime: 1800000 10 | maximum-pool-size: 15 11 | minimum-idle: 5 12 | pool-name: WRDHikariCP 13 | password: 123456 14 | type: com.zaxxer.hikari.HikariDataSource 15 | url: jdbc:mysql://127.0.0.1:3306/yidata?useUnicode=true&characterEncoding=UTF-8&useTimezone=true&serverTimezone=GMT%2B8&allowMultiQueries=true 16 | username: root 17 | 18 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springboot-es/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | logging: 2 | level: 3 | com: 4 | yiii: 5 | provider: 6 | mapper: DEBUG 7 | mybatis: 8 | configuration: 9 | map-underscore-to-camel-case: true 10 | mapper-locations: classpath:mapper/*Mapper.xml 11 | type-aliases-package: com.yiii.es.entity,com.yiii.es.vo 12 | server: 13 | port: 8082 14 | servlet: 15 | context-path: /api/es 16 | spring: 17 | profiles: 18 | active: dev -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springboot-es/src/test/java/com/yiii/es/ElasticsearchApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.es; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ElasticsearchApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/springboot-es/src/test/java/com/yiii/springbootprovider/SpringbootproviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springbootprovider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootproviderApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/main/java/com/yiii/es/ConsumerApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.es; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.web.client.RestTemplate; 7 | 8 | @SpringBootApplication 9 | public class ConsumerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConsumerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/main/java/com/yiii/es/ElasticsearchApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.es; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.web.client.RestTemplate; 7 | 8 | @SpringBootApplication 9 | public class ElasticsearchApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ElasticsearchApplication.class, args); 13 | } 14 | // 注入RestTemplate 15 | @Bean(name = "restTemplate") 16 | public RestTemplate createRestTemplate(){ 17 | return new RestTemplate(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/main/java/com/yiii/es/controller/MainController.java: -------------------------------------------------------------------------------- 1 | package com.yiii.es.controller; 2 | 3 | 4 | 5 | import io.swagger.annotations.Api; 6 | import io.swagger.annotations.ApiOperation; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.web.bind.annotation.PostMapping; 9 | import org.springframework.web.bind.annotation.RestController; 10 | 11 | import java.util.*; 12 | import java.util.concurrent.ConcurrentHashMap; 13 | 14 | @RestController 15 | @Api(tags = "ES测试") 16 | public class MainController { 17 | 18 | 19 | 20 | 21 | } 22 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/main/java/com/yiii/es/pojo/Document.java: -------------------------------------------------------------------------------- 1 | package com.yiii.es.pojo; 2 | 3 | import org.springframework.data.annotation.Persistent; 4 | 5 | import java.lang.annotation.*; 6 | 7 | @Persistent 8 | @Inherited 9 | @Retention(RetentionPolicy.RUNTIME) 10 | @Target({ElementType.TYPE}) 11 | public @interface Document { 12 | 13 | String indexName();//索引库的名称,个人建议以项目的名称命名 14 | 15 | String type() default "";//类型,个人建议以实体的名称命名 16 | 17 | short shards() default 5;//默认分区数 18 | 19 | short replicas() default 1;//每个分区默认的备份数 20 | 21 | String refreshInterval() default "1s";//刷新间隔 22 | 23 | String indexStoreType() default "fs";//索引文件存储类型 24 | } 25 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/main/resources/application-dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-elasticsearch/src/main/resources/application-dev.yml -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | logging: 2 | level: 3 | com: 4 | yiii: 5 | es: 6 | mapper: DEBUG 7 | mybatis: 8 | configuration: 9 | map-underscore-to-camel-case: true 10 | mapper-locations: classpath:mapper/*Mapper.xml 11 | type-aliases-package: com.yiii.es.entity,com.yiii.es.vo 12 | server: 13 | port: 8082 14 | servlet: 15 | context-path: /api/es 16 | spring: 17 | profiles: 18 | active: dev 19 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/test/java/com/yiii/es/ConsumerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.es; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ConsumerApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/test/java/com/yiii/es/ElasticsearchApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.es; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ElasticsearchApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-elasticsearch/src/test/java/com/yiii/springbootprovider/SpringbootproviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springbootprovider; 2 | 3 | import org.elasticsearch.client.transport.TransportClient; 4 | import org.elasticsearch.common.settings.Settings; 5 | import org.junit.jupiter.api.Test; 6 | import org.springframework.boot.test.context.SpringBootTest; 7 | 8 | import java.net.InetAddress; 9 | import java.net.UnknownHostException; 10 | 11 | @SpringBootTest 12 | class SpringbootproviderApplicationTests { 13 | 14 | @Test 15 | void contextLoads() { 16 | } 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-feign/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-feign/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-feign/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-boot/springboot-feign/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-feign/src/main/java/com/yiii/springbootfeign/SpringbootFeignApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springbootfeign; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootFeignApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootFeignApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-feign/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-feign/src/test/java/com/yiii/springbootfeign/SpringbootFeignApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springbootfeign; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | 7 | @SpringBootTest 8 | class SpringbootFeignApplicationTests { 9 | 10 | @Test 11 | void contextLoads() { 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-jwt-master/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip 2 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/README.md: -------------------------------------------------------------------------------- 1 | # springboot-jwt 2 | SpringBoot集成JWT实现token验证 3 | 4 | ### 博客地址:https://www.jianshu.com/p/e88d3f8151db 5 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/java/com/pjb/springbootjjwt/SpringbootJjwtApplication.java: -------------------------------------------------------------------------------- 1 | package com.pjb.springbootjjwt; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | @SpringBootApplication 8 | @MapperScan("com.pjb.springbootjjwt.mapper") 9 | public class SpringbootJjwtApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SpringbootJjwtApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/java/com/pjb/springbootjjwt/annotation/PassToken.java: -------------------------------------------------------------------------------- 1 | package com.pjb.springbootjjwt.annotation; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * @author jinbin 10 | * @date 2018-07-08 20:38 11 | */ 12 | @Target({ElementType.METHOD, ElementType.TYPE}) 13 | @Retention(RetentionPolicy.RUNTIME) 14 | public @interface PassToken { 15 | boolean required() default true; 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/java/com/pjb/springbootjjwt/annotation/UserLoginToken.java: -------------------------------------------------------------------------------- 1 | package com.pjb.springbootjjwt.annotation; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * @author jinbin 10 | * @date 2018-07-08 20:40 11 | */ 12 | @Target({ElementType.METHOD, ElementType.TYPE}) 13 | @Retention(RetentionPolicy.RUNTIME) 14 | public @interface UserLoginToken { 15 | boolean required() default true; 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/java/com/pjb/springbootjjwt/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.pjb.springbootjjwt.entity; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | /** 8 | * @author jinbin 9 | * @date 2018-07-08 20:43 10 | */ 11 | @Data 12 | @AllArgsConstructor 13 | @NoArgsConstructor 14 | public class User { 15 | String Id; 16 | String username; 17 | String password; 18 | } 19 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/java/com/pjb/springbootjjwt/mapper/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.pjb.springbootjjwt.mapper; 2 | 3 | import com.pjb.springbootjjwt.entity.User; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | /** 7 | * @author jinbin 8 | * @date 2018-07-08 20:44 9 | */ 10 | public interface UserMapper { 11 | User findByUsername(@Param("username") String username); 12 | User findUserById(@Param("Id") String Id); 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/java/com/pjb/springbootjjwt/service/TokenService.java: -------------------------------------------------------------------------------- 1 | package com.pjb.springbootjjwt.service; 2 | 3 | import com.auth0.jwt.JWT; 4 | import com.auth0.jwt.algorithms.Algorithm; 5 | import com.pjb.springbootjjwt.entity.User; 6 | import org.springframework.stereotype.Service; 7 | 8 | 9 | /** 10 | * @author jinbin 11 | * @date 2018-07-08 21:04 12 | */ 13 | @Service("TokenService") 14 | public class TokenService { 15 | public String getToken(User user) { 16 | String token=""; 17 | token= JWT.create().withAudience(user.getId())// 将 user id 保存到 token 里面 18 | .sign(Algorithm.HMAC256(user.getPassword()));// 以 password 作为 token 的密钥 19 | return token; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/java/com/pjb/springbootjjwt/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.pjb.springbootjjwt.service; 2 | 3 | import com.pjb.springbootjjwt.entity.User; 4 | import com.pjb.springbootjjwt.mapper.UserMapper; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | /** 9 | * @author jinbin 10 | * @date 2018-07-08 20:52 11 | */ 12 | @Service("UserService") 13 | public class UserService { 14 | @Autowired 15 | UserMapper userMapper; 16 | public User findByUsername(User user){ 17 | return userMapper.findByUsername(user.getUsername()); 18 | } 19 | public User findUserById(String userId) { 20 | return userMapper.findUserById(userId); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/resources/application.yaml: -------------------------------------------------------------------------------- 1 | spring: 2 | datasource: 3 | driver-class-name: com.mysql.jdbc.Driver 4 | url: jdbc:mysql://150.158.184.109:3306/yitest?useSSL=false 5 | username: yitest 6 | password: 123456 7 | mybatis: 8 | config-location: classpath:mybatis.xml 9 | debug: true 10 | server: 11 | port: 8888 12 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/resources/com/pjb/springbootjjwt/mapper/UserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/main/resources/mybatis.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-jwt-master/src/test/java/com/pjb/springbootjjwt/SpringbootJjwtApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.pjb.springbootjjwt; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SpringbootJjwtApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/java/com/yiii/provider/ProviderApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ProviderApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ProviderApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/java/com/yiii/provider/controller/MainController.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.controller; 2 | 3 | 4 | import com.yiii.provider.entity.Yi; 5 | import com.yiii.provider.service.MainService; 6 | import io.swagger.annotations.Api; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | import org.springframework.web.bind.annotation.RestController; 10 | 11 | @RestController 12 | @Api(tags = "提供方") 13 | public class MainController { 14 | 15 | 16 | 17 | 18 | @Autowired 19 | private MainService mainService; 20 | 21 | @RequestMapping("/getString") 22 | public Yi getString(){ 23 | Yi result= mainService.getString(); 24 | 25 | return result; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/java/com/yiii/provider/entity/Yi.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.entity; 2 | 3 | 4 | import lombok.AllArgsConstructor; 5 | import lombok.Data; 6 | import lombok.NoArgsConstructor; 7 | 8 | @Data 9 | @AllArgsConstructor 10 | @NoArgsConstructor 11 | public class Yi { 12 | 13 | private Integer id; 14 | private String nikeName; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/java/com/yiii/provider/mapper/MainMapper.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.mapper; 2 | 3 | 4 | import com.yiii.provider.entity.Yi; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | @Mapper 8 | public interface MainMapper { 9 | 10 | 11 | public Yi selectString(); 12 | } 13 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/java/com/yiii/provider/service/MainService.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.service; 2 | 3 | import com.yiii.provider.entity.Yi; 4 | 5 | public interface MainService { 6 | Yi getString(); 7 | } 8 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/java/com/yiii/provider/service/MainServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.service; 2 | 3 | 4 | import com.yiii.provider.entity.Yi; 5 | import com.yiii.provider.mapper.MainMapper; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class MainServiceImpl implements MainService { 11 | 12 | @Autowired 13 | private MainMapper mainMapper; 14 | 15 | @Override 16 | public Yi getString() { 17 | return mainMapper.selectString(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/resources/application-dev.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-provider/src/main/resources/application-dev.properties -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 2 | server.servlet.context-path=/api/provider 3 | spring.profiles.active=dev 4 | 5 | 6 | mybatis.mapper-locations=classpath:mapper/*Mapper.xml 7 | mybatis.type-aliases-package=com.yiii.provider.entity,com.yiii.provider.vo 8 | logging.level.com.yiii.provider.mapper=DEBUG 9 | mybatis.configuration.map-underscore-to-camel-case=true -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/main/resources/mapper/ClientAlertHostMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/test/java/com/yiii/provider/ConsumerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ConsumerApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-provider/src/test/java/com/yiii/springbootprovider/SpringbootproviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springbootprovider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootproviderApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-redis-cache/springboot-redis/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-redis-cache/springboot-redis/src/main/java/com/example/redis/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.redis; 2 | 3 | 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | @SpringBootApplication 8 | public class DemoApplication { 9 | 10 | public static void main(String[] args) { 11 | SpringApplication.run(DemoApplication.class, args); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-redis-cache/springboot-redis/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-redis-cache/springboot-redis/src/main/resources/application.properties -------------------------------------------------------------------------------- /demo/spring-boot/springboot-redis-cache/springboot-redis/src/test/java/com/example/redis/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.redis; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | class DemoApplicationTests { 11 | 12 | @Test 13 | void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-redis/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-redis/src/main/java/com/example/redis/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.redis; 2 | 3 | 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | @SpringBootApplication 8 | public class DemoApplication { 9 | 10 | public static void main(String[] args) { 11 | SpringApplication.run(DemoApplication.class, args); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-redis/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-boot/springboot-redis/src/main/resources/application.properties -------------------------------------------------------------------------------- /demo/spring-boot/springboot-redis/src/test/java/com/example/redis/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.redis; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | class DemoApplicationTests { 11 | 12 | @Test 13 | void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-test-redis/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | # ide file 4 | *.classpath 5 | *.project 6 | *.iml 7 | *.idea 8 | *.settings 9 | # Log file 10 | *.log 11 | 12 | 13 | 14 | # Package Files # 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | *.bat 22 | *.out 23 | 24 | ## ignoring target file 25 | target/ 26 | */*.iml 27 | */target/ 28 | 29 | ## ignoring data folder 30 | data/ -------------------------------------------------------------------------------- /demo/spring-boot/springboot-test-redis/src/main/java/com/dist/ServletInitializer.java: -------------------------------------------------------------------------------- 1 | package com.dist; 2 | 3 | import org.springframework.boot.builder.SpringApplicationBuilder; 4 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; 5 | 6 | public class ServletInitializer extends SpringBootServletInitializer { 7 | 8 | @Override 9 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { 10 | return application.sources(SpringbootdemoApplication.class); 11 | } 12 | 13 | } 14 | 15 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-test-redis/src/main/java/com/dist/SpringbootdemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.dist; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootdemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootdemoApplication.class, args); 11 | } 12 | 13 | } 14 | 15 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-test-redis/src/main/java/com/dist/service/RedisMethodsCacheService.java: -------------------------------------------------------------------------------- 1 | package com.dist.service; 2 | 3 | /** 4 | * @author ZhengJa 5 | * @description redis 缓存接口的方法返回的数据测试 6 | * @data 2019/11/13 7 | */ 8 | public interface RedisMethodsCacheService { 9 | String getData(); 10 | 11 | String saveData(String parameter); 12 | 13 | String getData(String parameter); 14 | 15 | String putData(String parameter); 16 | 17 | String deleteData(String parameter); 18 | 19 | String deleteAllData(String parameter); 20 | } 21 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-test-redis/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | # 主配置文件主要用来存放公共设置,不受环境配置影响 2 | server: 3 | port: 8080 4 | servlet: 5 | context-path: /springboot-test-redis 6 | spring: 7 | redis: 8 | #host: 129.204.207.127 9 | database: 2 # Redis数据库索引(默认为0),如果设置为1,那么存入的key-value都存放在select 1中 10 | host: 127.0.0.1 11 | port: 6379 12 | max-wait: 30000 # 连接池最大阻塞等待时间(使用负值表示没有限制) 13 | max-active: 100 # 连接池最大连接数(使用负值表示没有限制) 14 | max-idle: 20 # 连接池中的最大空闲连接 15 | min-idle: 0 # 连接池中的最小空闲连接 16 | timeout: 5000 # 连接超时 17 | #password: 123456 # 密码,默认密码为空 18 | #cluster: # 集群配置 19 | #nodes: 127.0.0.1:6381,127.0.0.1:6382,127.0.0.1:6383,127.0.0.1:6384,127.0.0.1:6385,127.0.0.1:6386 20 | #max-redirects: 2 # 最大重定向次数 21 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-test-redis/src/main/resources/static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | springboot-test-redis 6 | 7 | 8 |

首页面

9 | 10 |

springboot-test-redis

11 | 12 | 进入swagger页面测试 13 | 14 | -------------------------------------------------------------------------------- /demo/spring-boot/springboot-test-redis/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Archetype Created Web Application 7 | 8 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__antlr_antlr_2_7_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_jackson_dataformat_jackson_dataformat_xml_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_jaxb_annotations_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_5_3_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_google_code_gson_gson_2_8_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_google_guava_guava_19_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_google_inject_guice_4_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_netflix_eureka_eureka_client_1_10_10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_netflix_eureka_eureka_core_1_10_10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_netflix_netflix_commons_netflix_eventbus_0_3_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_netflix_netflix_commons_netflix_infix_0_3_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_netflix_servo_servo_core_0_12_21.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_stoyanr_evictor_1_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_sun_activation_jakarta_activation_1_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_sun_jersey_contribs_jersey_apache_client4_1_19_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_sun_jersey_jersey_client_1_19_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_sun_jersey_jersey_core_1_19_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_sun_jersey_jersey_server_1_19_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_sun_jersey_jersey_servlet_1_19_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_14.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__commons_codec_commons_codec_1_15.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__commons_configuration_commons_configuration_1_10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__commons_jxpath_commons_jxpath_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__io_micrometer_micrometer_core_1_6_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__io_projectreactor_addons_reactor_extra_3_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__io_projectreactor_reactor_core_3_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__javax_inject_javax_inject_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__javax_ws_rs_jsr311_api_1_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__joda_time_joda_time_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_18.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_18.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_antlr_antlr_runtime_3_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_antlr_stringtemplate_3_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_apache_commons_commons_math_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_14.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_13_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_13_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_41.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_41.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_assertj_assertj_core_3_18_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk15on_1_64.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_64.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_codehaus_jettison_jettison_1_4_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_codehaus_woodstox_stax2_api_4_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_freemarker_freemarker_2_3_30.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_glassfish_jakarta_el_3_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_hamcrest_hamcrest_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_1_6_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_7_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_7_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_7_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_7_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_7_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_7_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_mockito_mockito_core_3_6_28.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_3_6_28.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_objenesis_objenesis_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_projectlombok_lombok_1_18_16.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_30.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_30.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_actuator_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_cache_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_freemarker_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_commons_3_0_0_RC1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_context_3_0_0_RC1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_loadbalancer_3_0_0_RC1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_3_0_0_RC1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_security_spring_security_crypto_5_4_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_security_spring_security_rsa_1_0_9_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_aop_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_beans_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_context_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_context_support_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_core_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_expression_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_test_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_web_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_7_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__org_yaml_snakeyaml_1_27.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/libraries/Maven__xpp3_xpp3_min_1_1_4c.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /demo/spring-cloud/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo/spring-cloud/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/README.md -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/classes/application-dev.properties: -------------------------------------------------------------------------------- 1 | 2 | 3 | #���ݿ�������� 4 | spring.datasource.hikari.minimum-idle=5 5 | spring.datasource.hikari.max-lifetime=1800000 6 | spring.datasource.hikari.maximum-pool-size=15 7 | spring.datasource.hikari.auto-commit=true 8 | spring.datasource.hikari.idle-timeout=180000 9 | spring.datasource.hikari.pool-name=WRDHikariCP 10 | spring.datasource.hikari.connection-timeout=30000 11 | spring.datasource.hikari.connection-test-query=SELECT 1 12 | spring.datasource.type=com.zaxxer.hikari.HikariDataSource 13 | 14 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 15 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/yidata?useUnicode=true&characterEncoding=UTF-8&useTimezone=true&serverTimezone=GMT%2B8&allowMultiQueries=true 16 | spring.datasource.username=root 17 | spring.datasource.password=123456 18 | -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=8082 3 | 4 | server.servlet.context-path=/api/consumer 5 | 6 | spring.profiles.active=dev 7 | 8 | 9 | mybatis.mapper-locations=classpath:mapper/*Mapper.xml 10 | mybatis.type-aliases-package=com.yiii.consumer.entity,com.yiii.consumer.vo 11 | logging.level.com.yiii.provider.mapper=DEBUG 12 | mybatis.configuration.map-underscore-to-camel-case=true 13 | 14 | -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/ConsumerApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/ConsumerApplication.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/config/Swagger2Config.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/config/Swagger2Config.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/controller/MainController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/controller/MainController.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/test.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/相似度/SimilarityUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/相似度/SimilarityUtils.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/相似度/test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-comsumer/target/classes/com/yiii/provider/相似度/test.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/test-classes/com/yiii/provider/ConsumerApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-comsumer/target/test-classes/com/yiii/provider/ConsumerApplicationTests.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-comsumer/target/test-classes/com/yiii/springbootprovider/SpringbootproviderApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-comsumer/target/test-classes/com/yiii/springbootprovider/SpringbootproviderApplicationTests.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-eureka/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-eureka/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-eureka/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-eureka/src/main/java/com/yiiii/springbooteureka/SpringbootEurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiiii.springbooteureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class SpringbootEurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SpringbootEurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-eureka/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-eureka/src/main/resources/application.properties -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-eureka/src/test/java/com/yiiii/springbooteureka/SpringbootEurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiiii.springbooteureka; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootEurekaApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/application-dev.properties: -------------------------------------------------------------------------------- 1 | 2 | 3 | #���ݿ�������� 4 | spring.datasource.hikari.minimum-idle=5 5 | spring.datasource.hikari.max-lifetime=1800000 6 | spring.datasource.hikari.maximum-pool-size=15 7 | spring.datasource.hikari.auto-commit=true 8 | spring.datasource.hikari.idle-timeout=180000 9 | spring.datasource.hikari.pool-name=WRDHikariCP 10 | spring.datasource.hikari.connection-timeout=30000 11 | spring.datasource.hikari.connection-test-query=SELECT 1 12 | spring.datasource.type=com.zaxxer.hikari.HikariDataSource 13 | 14 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 15 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/yidata?useUnicode=true&characterEncoding=UTF-8&useTimezone=true&serverTimezone=GMT%2B8&allowMultiQueries=true 16 | spring.datasource.username=root 17 | spring.datasource.password=123456 18 | -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=8081 3 | 4 | server.servlet.context-path=/api/provider 5 | 6 | spring.profiles.active=dev 7 | 8 | 9 | mybatis.mapper-locations=classpath:mapper/*Mapper.xml 10 | mybatis.type-aliases-package=com.yiii.provider.entity,com.yiii.provider.vo 11 | logging.level.com.yiii.provider.mapper=DEBUG 12 | mybatis.configuration.map-underscore-to-camel-case=true -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/ProviderApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/ProviderApplication.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/config/Swagger2Config.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/config/Swagger2Config.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/controller/MainController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/controller/MainController.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/entity/Yi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/entity/Yi.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/mapper/MainMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/mapper/MainMapper.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/service/MainService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/service/MainService.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/service/MainServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/classes/com/yiii/provider/service/MainServiceImpl.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/classes/mapper/ClientAlertHostMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/test-classes/com/yiii/provider/ConsumerApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/test-classes/com/yiii/provider/ConsumerApplicationTests.class -------------------------------------------------------------------------------- /demo/spring-cloud/springboot-provider/target/test-classes/com/yiii/springbootprovider/SpringbootproviderApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springboot-provider/target/test-classes/com/yiii/springbootprovider/SpringbootproviderApplicationTests.class -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-config/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-config/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springcloud-config/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-config/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-config/src/main/java/com/yiii/springcloudconfig/SpringcloudConfigApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springcloudconfig; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | import org.springframework.cloud.config.server.EnableConfigServer; 7 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 8 | 9 | @SpringBootApplication 10 | @EnableEurekaClient // 开启eureka 11 | @EnableConfigServer // 开启config服务支持 12 | public class SpringcloudConfigApplication { 13 | 14 | public static void main(String[] args) { 15 | SpringApplication.run(SpringcloudConfigApplication.class, args); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-config/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=12000 2 | spring.cloud.config.server.git.uri=https://gitee.com/xxxgod/Java-DevGuide.git 3 | spring.application.name=config-server 4 | eureka.client.service-url.defaultZone=http://127.0.0.1:10086/eureka 5 | logging.level.com=debug 6 | 7 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-config/src/test/java/com/yiii/springcloudconfig/SpringcloudConfigApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springcloudconfig; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringcloudConfigApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-consumer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-consumer/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springcloud-consumer/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-consumer/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-consumer/src/main/java/com/yiii/consumer/feign/LocalFeign.java: -------------------------------------------------------------------------------- 1 | package com.yiii.consumer.feign; 2 | 3 | 4 | import org.springframework.cloud.openfeign.FeignClient; 5 | import org.springframework.web.bind.annotation.GetMapping; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | 8 | @FeignClient(value = "provider") 9 | public interface LocalFeign { 10 | 11 | @GetMapping("/getName") 12 | public String getName(); 13 | 14 | 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-consumer/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 2 | spring.application.name=consumer 3 | eureka.client.service-url.defaultZone=http://127.0.0.1:10086/eureka 4 | #spring.profiles.active=dev 5 | server.servlet.context-path=/api/consumer 6 | 7 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-consumer/src/test/java/com/yiii/consumer/ConsumerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.consumer; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ConsumerApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-gateway/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-gateway/src/main/java/com/yiii/springcloudgateway/SpringcloudgatewayApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springcloudgateway; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @SpringBootApplication 8 | @EnableDiscoveryClient 9 | public class SpringcloudgatewayApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SpringcloudgatewayApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-gateway/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springcloud-gateway/src/main/resources/application.properties -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-gateway/src/test/java/com/yiii/springcloudgateway/SpringcloudgatewayApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.springcloudgateway; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringcloudgatewayApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springcloud-provider-cluster/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/src/main/java/com/yiii/provider/ProviderApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProviderApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProviderApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/src/main/java/com/yiii/provider/entity/Yi.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.entity; 2 | 3 | 4 | import lombok.AllArgsConstructor; 5 | import lombok.Data; 6 | import lombok.NoArgsConstructor; 7 | 8 | @Data 9 | @AllArgsConstructor 10 | @NoArgsConstructor 11 | public class Yi { 12 | 13 | private Integer id; 14 | private String nikeName; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/src/main/java/com/yiii/provider/mapper/MainMapper.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.mapper; 2 | 3 | 4 | import com.yiii.provider.entity.Yi; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | @Mapper 8 | public interface MainMapper { 9 | public Yi selectString(); 10 | } 11 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/src/main/java/com/yiii/provider/service/MainService.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.service; 2 | 3 | import com.yiii.provider.entity.Yi; 4 | 5 | public interface MainService { 6 | Yi getString(); 7 | } 8 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/src/main/java/com/yiii/provider/service/MainServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.service; 2 | 3 | 4 | import com.yiii.provider.entity.Yi; 5 | import com.yiii.provider.mapper.MainMapper; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class MainServiceImpl implements MainService { 11 | 12 | @Autowired 13 | private MainMapper mainMapper; 14 | 15 | @Override 16 | public Yi getString() { 17 | return mainMapper.selectString(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9092 2 | spring.application.name=provider 3 | eureka.client.service-url.defaultZone=http://127.0.0.1:10086/eureka 4 | server.servlet.context-path=/api/provider 5 | #spring.profiles.active=dev 6 | mybatis.mapper-locations=classpath:mapper/*Mapper.xml 7 | mybatis.type-aliases-package=com.yiii.provider.entity,com.yiii.provider.vo 8 | logging.level.com.yiii.provider.mapper=DEBUG 9 | 10 | mybatis.configuration.map-underscore-to-camel-case=true 11 | #mybatis-plus.configuration.map-underscore-to-camel-case=true 12 | 13 | 14 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 15 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/yidata?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC 16 | spring.datasource.username=root 17 | spring.datasource.password=123456 18 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/src/main/resources/mapper/ClientAlertHostMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider-cluster/src/test/java/com/yiii/provider/ProviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ProviderApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xxxgod/Java-DevSpace/ad0c86c904eca28fe92e345335a0be3893e6a16c/demo/spring-cloud/springcloud-provider/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/src/main/java/com/yiii/provider/ProviderApplication.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProviderApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProviderApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/src/main/java/com/yiii/provider/entity/Yi.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.entity; 2 | 3 | 4 | import lombok.AllArgsConstructor; 5 | import lombok.Data; 6 | import lombok.NoArgsConstructor; 7 | 8 | @Data 9 | @AllArgsConstructor 10 | @NoArgsConstructor 11 | public class Yi { 12 | 13 | private Integer id; 14 | private String nikeName; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/src/main/java/com/yiii/provider/mapper/MainMapper.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.mapper; 2 | 3 | 4 | import com.yiii.provider.entity.Yi; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | @Mapper 8 | public interface MainMapper { 9 | public Yi selectString(); 10 | } 11 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/src/main/java/com/yiii/provider/service/MainService.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.service; 2 | 3 | import com.yiii.provider.entity.Yi; 4 | 5 | public interface MainService { 6 | Yi getString(); 7 | } 8 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/src/main/java/com/yiii/provider/service/MainServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider.service; 2 | 3 | 4 | import com.yiii.provider.entity.Yi; 5 | import com.yiii.provider.mapper.MainMapper; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class MainServiceImpl implements MainService { 11 | 12 | @Autowired 13 | private MainMapper mainMapper; 14 | 15 | @Override 16 | public Yi getString() { 17 | return mainMapper.selectString(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9091 2 | spring.application.name=provider 3 | eureka.client.service-url.defaultZone=http://127.0.0.1:10086/eureka 4 | server.servlet.context-path=/api/provider 5 | #spring.profiles.active=dev 6 | mybatis.mapper-locations=classpath:mapper/*Mapper.xml 7 | mybatis.type-aliases-package=com.yiii.provider.entity,com.yiii.provider.vo 8 | logging.level.com.yiii.provider.mapper=DEBUG 9 | 10 | mybatis.configuration.map-underscore-to-camel-case=true 11 | #mybatis-plus.configuration.map-underscore-to-camel-case=true 12 | 13 | 14 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 15 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/yidata?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC 16 | spring.datasource.username=root 17 | spring.datasource.password=123456 18 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/src/main/resources/mapper/ClientAlertHostMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /demo/spring-cloud/springcloud-provider/src/test/java/com/yiii/provider/ProviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.yiii.provider; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ProviderApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /demo/spring-cloud/sql/yidata.sql: -------------------------------------------------------------------------------- 1 | /* 2 | Navicat MySQL Data Transfer 3 | 4 | Source Server : localhost 5 | Source Server Version : 50728 6 | Source Host : localhost:3306 7 | Source Database : yidata 8 | 9 | Target Server Type : MYSQL 10 | Target Server Version : 50728 11 | File Encoding : 65001 12 | 13 | Date: 2020-12-28 18:35:40 14 | */ 15 | 16 | SET FOREIGN_KEY_CHECKS=0; 17 | 18 | -- ---------------------------- 19 | -- Table structure for yi 20 | -- ---------------------------- 21 | DROP TABLE IF EXISTS `yi`; 22 | CREATE TABLE `yi` ( 23 | `id` bigint(11) NOT NULL, 24 | `name` varchar(255) DEFAULT NULL, 25 | PRIMARY KEY (`id`) 26 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 27 | 28 | -- ---------------------------- 29 | -- Records of yi 30 | -- ---------------------------- 31 | INSERT INTO `yi` VALUES ('1', '张按'); 32 | -------------------------------------------------------------------------------- /doc/README.md: -------------------------------------------------------------------------------- 1 | ## docker镜像仓库地址 2 | 3 | 2024年6月后,继续可以使用有效docker镜像仓库地址 4 | 编辑 5 | `sudo vim /etc/docker/daemon.json` 6 | 7 | 写入 8 | 9 | ``` 10 | { 11 | "registry-mirrors": [ 12 | "https://ustc-edu-cn.mirror.aliyuncs.com/", 13 | "https://ccr.ccs.tencentyun.com/", 14 | "https://docker.m.daocloud.io/" 15 | ] 16 | } 17 | ``` 18 | 19 | 20 | 21 | 重启 docker 22 | `sudo service docker restart` 23 | --------------------------------------------------------------------------------