├── .gitignore ├── .idea ├── .gitignore ├── modules.xml ├── springboot.iml └── vcs.xml ├── LICENSE ├── README.md ├── crawlerbyhttp2 ├── QQ截图20191129171152.png ├── jdk9采用http2发送请求的demo.7z ├── pom.xml ├── src │ ├── README.md │ └── main │ │ └── java │ │ ├── img │ │ ├── CrawlerImageUtil.java │ │ ├── DownloadByMuitThread.java │ │ ├── Main.java │ │ ├── entity │ │ │ └── IPEntity.java │ │ └── fileMsg │ │ │ ├── FileUtil.java │ │ │ ├── MD5Util2.java │ │ │ ├── ReadLine.java │ │ │ ├── TypeDict.java │ │ │ └── user_agents.txt │ │ └── module-info.java └── 说明.txt ├── performance2tomcat_demo ├── Dockerfile ├── README.md ├── img │ └── img.png ├── jmeter │ └── tomcat测试计划.jmx ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── performance2tomcat_demo │ │ │ ├── Performance2tomcatDemoApplication.java │ │ │ ├── controller │ │ │ └── TomcatPerformanceController.java │ │ │ ├── entity │ │ │ └── Student.java │ │ │ └── service │ │ │ ├── TomcatPerformance.java │ │ │ └── impl │ │ │ └── TomcatPerformanceImpl.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── performance2tomcat_demo │ └── Performance2tomcatDemoApplicationTests.java ├── spring-boot-demo-task ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── cqut │ │ └── task │ │ ├── SpringBootDemoTaskApplication.java │ │ ├── config │ │ └── TaskConfig.java │ │ └── job │ │ └── TaskJob.java │ └── resources │ └── application.yml ├── springboot- example-https ├── .DS_Store ├── .idea │ ├── .gitignore │ ├── .name │ ├── compiler.xml │ ├── encodings.xml │ ├── jarRepositories.xml │ ├── libraries │ │ ├── Maven__ch_qos_logback_logback_classic_1_2_6.xml │ │ ├── Maven__ch_qos_logback_logback_core_1_2_6.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_12_5.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_12_5.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_12_5.xml │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_12_5.xml │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_12_5.xml │ │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_12_5.xml │ │ ├── Maven__com_jayway_jsonpath_json_path_2_5_0.xml │ │ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml │ │ ├── Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml │ │ ├── Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml │ │ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml │ │ ├── Maven__net_bytebuddy_byte_buddy_1_10_22.xml │ │ ├── Maven__net_bytebuddy_byte_buddy_agent_1_10_22.xml │ │ ├── Maven__net_minidev_accessors_smart_2_4_7.xml │ │ ├── Maven__net_minidev_json_smart_2_4_7.xml │ │ ├── Maven__org_apache_logging_log4j_log4j_api_2_14_1.xml │ │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_14_1.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_54.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_54.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_54.xml │ │ ├── Maven__org_apiguardian_apiguardian_api_1_1_0.xml │ │ ├── Maven__org_assertj_assertj_core_3_19_0.xml │ │ ├── Maven__org_hamcrest_hamcrest_2_2.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_5_7_2.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_7_2.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_7_2.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_params_5_7_2.xml │ │ ├── Maven__org_junit_platform_junit_platform_commons_1_7_2.xml │ │ ├── Maven__org_junit_platform_junit_platform_engine_1_7_2.xml │ │ ├── Maven__org_mockito_mockito_core_3_9_0.xml │ │ ├── Maven__org_mockito_mockito_junit_jupiter_3_9_0.xml │ │ ├── Maven__org_objenesis_objenesis_3_2.xml │ │ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml │ │ ├── Maven__org_ow2_asm_asm_9_1.xml │ │ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml │ │ ├── Maven__org_slf4j_jul_to_slf4j_1_7_32.xml │ │ ├── Maven__org_slf4j_slf4j_api_1_7_32.xml │ │ ├── Maven__org_springframework_boot_spring_boot_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_test_2_5_6.xml │ │ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_5_6.xml │ │ ├── Maven__org_springframework_spring_aop_5_3_12.xml │ │ ├── Maven__org_springframework_spring_beans_5_3_12.xml │ │ ├── Maven__org_springframework_spring_context_5_3_12.xml │ │ ├── Maven__org_springframework_spring_core_5_3_12.xml │ │ ├── Maven__org_springframework_spring_expression_5_3_12.xml │ │ ├── Maven__org_springframework_spring_jcl_5_3_12.xml │ │ ├── Maven__org_springframework_spring_test_5_3_12.xml │ │ ├── Maven__org_springframework_spring_web_5_3_12.xml │ │ ├── Maven__org_springframework_spring_webmvc_5_3_12.xml │ │ ├── Maven__org_xmlunit_xmlunit_core_2_8_3.xml │ │ └── Maven__org_yaml_snakeyaml_1_28.xml │ ├── misc.xml │ └── modules.xml ├── README.md ├── pom.xml ├── springboot-example-https.iml └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── springbootexamplehttps │ │ ├── SpringbootExampleHttpsApplication.java │ │ └── controller │ │ └── HelloController.java │ └── resources │ └── application.properties ├── springboot-alibaba-yuezhi ├── .DS_Store ├── .idea │ ├── .gitignore │ ├── artifacts │ │ ├── yuezhi_api_manager_war.xml │ │ ├── yuezhi_api_manager_war_exploded.xml │ │ ├── yuezhi_service_business_war.xml │ │ └── yuezhi_service_business_war_exploded.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── jarRepositories.xml │ ├── libraries │ │ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml │ │ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml │ │ ├── Maven__com_alibaba_cloud_spring_cloud_alibaba_sentinel_datasource_2_2_4_RELEASE.xml │ │ ├── Maven__com_alibaba_cloud_spring_cloud_circuitbreaker_sentinel_2_2_4_RELEASE.xml │ │ ├── Maven__com_alibaba_cloud_spring_cloud_starter_alibaba_nacos_config_2_2_4_RELEASE.xml │ │ ├── Maven__com_alibaba_cloud_spring_cloud_starter_alibaba_nacos_discovery_2_2_4_RELEASE.xml │ │ ├── Maven__com_alibaba_cloud_spring_cloud_starter_alibaba_sentinel_2_2_4_RELEASE.xml │ │ ├── Maven__com_alibaba_csp_sentinel_annotation_aspectj_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_api_gateway_adapter_common_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_cluster_client_default_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_cluster_common_default_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_cluster_server_default_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_core_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_datasource_extension_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_datasource_nacos_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_parameter_flow_control_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_reactor_adapter_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_spring_cloud_gateway_adapter_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_spring_webflux_adapter_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_spring_webmvc_adapter_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_transport_common_1_8_0.xml │ │ ├── Maven__com_alibaba_csp_sentinel_transport_simple_http_1_8_0.xml │ │ ├── Maven__com_alibaba_fastjson_1_2_71.xml │ │ ├── Maven__com_alibaba_nacos_nacos_api_1_4_1.xml │ │ ├── Maven__com_alibaba_nacos_nacos_client_1_4_1.xml │ │ ├── Maven__com_alibaba_nacos_nacos_common_1_4_1.xml │ │ ├── Maven__com_alibaba_spring_spring_context_support_1_0_10.xml │ │ ├── Maven__com_fasterxml_classmate_1_5_1.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_11_1.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_11_1.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_11_1.xml │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_11_1.xml │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_11_1.xml │ │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_11_1.xml │ │ ├── Maven__com_google_code_findbugs_jsr305_3_0_2.xml │ │ ├── Maven__com_google_code_gson_gson_2_8_6.xml │ │ ├── Maven__com_google_errorprone_error_prone_annotations_2_3_4.xml │ │ ├── Maven__com_google_guava_failureaccess_1_0_1.xml │ │ ├── Maven__com_google_guava_guava_29_0_jre.xml │ │ ├── Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xml │ │ ├── Maven__com_google_j2objc_j2objc_annotations_1_3.xml │ │ ├── Maven__com_googlecode_concurrentlinkedhashmap_concurrentlinkedhashmap_lru_1_4_2.xml │ │ ├── Maven__com_netflix_archaius_archaius_core_0_7_6.xml │ │ ├── Maven__com_netflix_hystrix_hystrix_core_1_5_18.xml │ │ ├── Maven__com_netflix_netflix_commons_netflix_commons_util_0_3_0.xml │ │ ├── Maven__com_netflix_netflix_commons_netflix_statistics_0_1_1.xml │ │ ├── Maven__com_netflix_ribbon_ribbon_2_3_0.xml │ │ ├── Maven__com_netflix_ribbon_ribbon_core_2_3_0.xml │ │ ├── Maven__com_netflix_ribbon_ribbon_httpclient_2_3_0.xml │ │ ├── Maven__com_netflix_ribbon_ribbon_loadbalancer_2_3_0.xml │ │ ├── Maven__com_netflix_ribbon_ribbon_transport_2_3_0.xml │ │ ├── Maven__com_netflix_servo_servo_core_0_12_21.xml │ │ ├── Maven__com_sun_activation_jakarta_activation_1_2_2.xml │ │ ├── Maven__com_sun_jersey_contribs_jersey_apache_client4_1_19_1.xml │ │ ├── Maven__com_sun_jersey_jersey_client_1_19_1.xml │ │ ├── Maven__com_sun_jersey_jersey_core_1_19_1.xml │ │ ├── Maven__com_sun_mail_jakarta_mail_1_6_5.xml │ │ ├── Maven__commons_beanutils_commons_beanutils_1_8_0.xml │ │ ├── Maven__commons_codec_commons_codec_1_14.xml │ │ ├── Maven__commons_collections_commons_collections_3_2_1.xml │ │ ├── Maven__commons_collections_commons_collections_3_2_2.xml │ │ ├── Maven__commons_configuration_commons_configuration_1_8.xml │ │ ├── Maven__commons_fileupload_commons_fileupload_1_4.xml │ │ ├── Maven__commons_io_commons_io_2_2.xml │ │ ├── Maven__commons_lang_commons_lang_2_5.xml │ │ ├── Maven__commons_lang_commons_lang_2_6.xml │ │ ├── Maven__commons_logging_commons_logging_1_1_1.xml │ │ ├── Maven__de_codecentric_spring_boot_admin_client_2_3_1.xml │ │ ├── Maven__de_codecentric_spring_boot_admin_server_2_3_1.xml │ │ ├── Maven__de_codecentric_spring_boot_admin_server_ui_2_3_1.xml │ │ ├── Maven__de_codecentric_spring_boot_admin_starter_client_2_3_1.xml │ │ ├── Maven__io_github_openfeign_feign_core_10_10_1.xml │ │ ├── Maven__io_github_openfeign_feign_hystrix_10_10_1.xml │ │ ├── Maven__io_github_openfeign_feign_slf4j_10_10_1.xml │ │ ├── Maven__io_github_openfeign_form_feign_form_3_8_0.xml │ │ ├── Maven__io_github_openfeign_form_feign_form_spring_3_8_0.xml │ │ ├── Maven__io_micrometer_micrometer_core_1_5_3.xml │ │ ├── Maven__io_netty_netty_buffer_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_codec_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_codec_http2_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_codec_http_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_codec_socks_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_common_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_handler_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_handler_proxy_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_resolver_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_transport_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_transport_native_epoll_linux_x86_64_4_1_51_Final.xml │ │ ├── Maven__io_netty_netty_transport_native_unix_common_4_1_51_Final.xml │ │ ├── Maven__io_projectreactor_addons_reactor_extra_3_3_3_RELEASE.xml │ │ ├── Maven__io_projectreactor_netty_reactor_netty_0_9_10_RELEASE.xml │ │ ├── Maven__io_projectreactor_reactor_core_3_3_8_RELEASE.xml │ │ ├── Maven__io_prometheus_simpleclient_0_5_0.xml │ │ ├── Maven__io_reactivex_rxjava_1_3_8.xml │ │ ├── Maven__io_reactivex_rxnetty_0_4_9.xml │ │ ├── Maven__io_reactivex_rxnetty_contexts_0_4_9.xml │ │ ├── Maven__io_reactivex_rxnetty_servo_0_4_9.xml │ │ ├── Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml │ │ ├── Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml │ │ ├── Maven__javax_inject_javax_inject_1.xml │ │ ├── Maven__javax_servlet_servlet_api_2_5.xml │ │ ├── Maven__javax_ws_rs_jsr311_api_1_1_1.xml │ │ ├── Maven__net_sf_ezmorph_ezmorph_1_0_6.xml │ │ ├── Maven__net_sf_json_lib_json_lib_2_4.xml │ │ ├── Maven__org_apache_commons_commons_lang3_3_10.xml │ │ ├── Maven__org_apache_httpcomponents_httpasyncclient_4_1_4.xml │ │ ├── Maven__org_apache_httpcomponents_httpclient_4_5_12.xml │ │ ├── Maven__org_apache_httpcomponents_httpcore_4_4_13.xml │ │ ├── Maven__org_apache_httpcomponents_httpcore_nio_4_4_13.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_37.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_37.xml │ │ ├── Maven__org_aspectj_aspectjrt_1_9_6.xml │ │ ├── Maven__org_aspectj_aspectjweaver_1_9_6.xml │ │ ├── Maven__org_attoparser_attoparser_2_0_5_RELEASE.xml │ │ ├── Maven__org_bouncycastle_bcpkix_jdk15on_1_64.xml │ │ ├── Maven__org_bouncycastle_bcprov_jdk15on_1_64.xml │ │ ├── Maven__org_checkerframework_checker_qual_2_11_1.xml │ │ ├── Maven__org_glassfish_jakarta_el_3_0_3.xml │ │ ├── Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml │ │ ├── Maven__org_hdrhistogram_HdrHistogram_2_1_9.xml │ │ ├── Maven__org_hibernate_validator_hibernate_validator_6_1_5_Final.xml │ │ ├── Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml │ │ ├── Maven__org_latencyutils_LatencyUtils_2_0_3.xml │ │ ├── Maven__org_projectlombok_lombok_1_18_12.xml │ │ ├── Maven__org_projectlombok_lombok_1_18_16.xml │ │ ├── Maven__org_reactivestreams_reactive_streams_1_0_3.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_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_actuator_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_actuator_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_aop_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_mail_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_reactor_netty_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_validation_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_webflux_2_3_2_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_commons_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_context_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_gateway_core_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_netflix_archaius_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_netflix_ribbon_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_openfeign_core_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_starter_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_starter_gateway_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_starter_netflix_archaius_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_starter_netflix_ribbon_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_cloud_spring_cloud_starter_openfeign_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_security_spring_security_crypto_5_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_security_spring_security_rsa_1_0_9_RELEASE.xml │ │ ├── Maven__org_springframework_spring_aop_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_beans_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_context_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_context_support_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_core_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_expression_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_jcl_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_web_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_webflux_5_2_8_RELEASE.xml │ │ ├── Maven__org_springframework_spring_webmvc_5_2_8_RELEASE.xml │ │ ├── Maven__org_synchronoss_cloud_nio_multipart_parser_1_1_0.xml │ │ ├── Maven__org_synchronoss_cloud_nio_stream_storage_1_1_3.xml │ │ ├── Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_4_RELEASE.xml │ │ ├── Maven__org_thymeleaf_thymeleaf_3_0_11_RELEASE.xml │ │ ├── Maven__org_thymeleaf_thymeleaf_spring5_3_0_11_RELEASE.xml │ │ ├── Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml │ │ └── Maven__org_yaml_snakeyaml_1_26.xml │ ├── misc.xml │ ├── modules.xml │ ├── vcs.xml │ └── workspace.xml ├── doc │ ├── file │ │ ├── docker 镜像瘦身.md │ │ ├── img │ │ │ └── 640 │ │ ├── 编程规约.md │ │ └── 说明.md │ └── yml config file │ │ └── local_yml.zip ├── docker-compose-base.yml ├── docker-compose-service.yml ├── pom.xml ├── springboot-alibaba-yuezhi.iml ├── yuezhi-api │ ├── pom.xml │ ├── yuezhi-api-manager │ │ ├── Dockerfile │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── ruiyun │ │ │ │ │ ├── ApiManagerApplication.java │ │ │ │ │ ├── controller │ │ │ │ │ └── DiscoveryController.java │ │ │ │ │ ├── feign │ │ │ │ │ ├── FeignConfiguration.java │ │ │ │ │ └── ServiceFallback.java │ │ │ │ │ └── service │ │ │ │ │ └── IDiscoveryService.java │ │ │ │ └── resources │ │ │ │ └── bootstrap.yml │ │ └── yuezhi-api-manager.iml │ └── yuezhi-api.iml ├── yuezhi-basic │ ├── pom.xml │ ├── yuezhi-basic-gateway │ │ ├── Dockerfile │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── ruiyun │ │ │ │ │ ├── GateWayApplication.java │ │ │ │ │ ├── GatewayConfig.java │ │ │ │ │ └── JsonSentinelGatewayBlockExceptionHandler.java │ │ │ │ └── resources │ │ │ │ └── bootstrap.yml │ │ └── yuezhi-basic-gateway.iml │ ├── yuezhi-basic-monitor │ │ ├── Dockerfile │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── ruiyun │ │ │ │ │ └── AdminServerApplication.java │ │ │ │ └── resources │ │ │ │ └── bootstrap.yml │ │ └── yuezhi-basic-monitor.iml │ └── yuezhi-basic.iml ├── yuezhi-core │ ├── pom.xml │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── ruiyun │ │ │ └── yuezhi │ │ │ └── core │ │ │ ├── exception │ │ │ └── ExcelException.java │ │ │ └── util │ │ │ ├── BeanUtil.java │ │ │ ├── ChineseCharToEn.java │ │ │ ├── ClassPathUtil.java │ │ │ ├── CompressPic.java │ │ │ ├── CorsFilter.java │ │ │ ├── DateUtil.java │ │ │ ├── Dialect.java │ │ │ ├── FileUtil.java │ │ │ ├── GsonUtil.java │ │ │ ├── HttpPostRequestUtil.java │ │ │ ├── IdcardValidator.java │ │ │ ├── LatAndLongUtil.java │ │ │ ├── MathHelper.java │ │ │ ├── MySqlDialect.java │ │ │ ├── OracleDialect.java │ │ │ ├── PojoUtil.java │ │ │ ├── ProFileReader.java │ │ │ ├── ReflectUtil.java │ │ │ ├── SpringContextUtil.java │ │ │ ├── StringUtil.java │ │ │ ├── UrlEncoderUtil.java │ │ │ └── ZHConvertUtils.java │ └── yuezhi-core.iml ├── yuezhi-service │ ├── pom.xml │ ├── yuezhi-service-business │ │ ├── Dockerfile │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── ruiyun │ │ │ │ │ ├── ServiceBusinessApplication.java │ │ │ │ │ └── service │ │ │ │ │ ├── IDiscoveryService.java │ │ │ │ │ └── Impl │ │ │ │ │ └── DiscoveryService.java │ │ │ │ └── resources │ │ │ │ └── bootstrap.yml │ │ └── yuezhi-service-business.iml │ └── yuezhi-service.iml └── yuezhi-view │ ├── pom.xml │ └── yuezhi-view.iml ├── springboot-bean-life-demo ├── .idea │ ├── .gitignore │ ├── compiler.xml │ ├── encodings.xml │ ├── jarRepositories.xml │ ├── misc.xml │ └── vcs.xml ├── IOC.png ├── README.md ├── bean创建流程.png ├── bean销毁流程.png ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── springbootbeanlifedemo │ │ ├── SpringbootBeanLifeDemoApplication.java │ │ ├── bean │ │ ├── MyBean.java │ │ └── MySecondBean.java │ │ └── config │ │ ├── BeanConfig.java │ │ ├── beanFactoryPostProcessor │ │ ├── MyBeanFactoryPostProcessor.java │ │ └── MySecondBeanFactoryPostProcessor.java │ │ └── beanPostProcessor │ │ ├── MyBeanPostProcessor.java │ │ └── MySecondBeanPostProcessor.java │ └── resources │ └── application.properties ├── springboot-diy-starter-demo ├── .DS_Store ├── README.md ├── img │ ├── image-20210512111734551.png │ ├── image-20210512113741124.png │ ├── image-20210512113803071.png │ ├── image-20210512113806279.png │ ├── image-20210512114113367.png │ └── image-20210512114356355.png ├── 注解方式 │ └── springboot-codeant-start-demo │ │ ├── my-starter-demo │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── mystarterdemo │ │ │ │ ├── bean │ │ │ │ └── MyBean.java │ │ │ │ └── config │ │ │ │ └── MyBeanConfig.java │ │ │ └── resources │ │ │ └── META-INF │ │ │ └── spring.factories │ │ ├── pom.xml │ │ └── springboot-test-starter-demo │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── springbootteststarterdemo │ │ │ └── SpringbootTestStarterDemoApplication.java │ │ └── resources │ │ └── application.yml └── 自动配置方式 │ └── springboot-codeant-start-demo │ ├── my-starter-demo │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── mystarterdemo │ │ │ ├── bean │ │ │ └── MyBean.java │ │ │ └── config │ │ │ └── MyBeanConfig.java │ │ └── resources │ │ └── META-INF │ │ └── spring.factories │ ├── pom.xml │ └── springboot-test-starter-demo │ ├── pom.xml │ └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── springbootteststarterdemo │ │ └── SpringbootTestStarterDemoApplication.java │ └── resources │ └── application.yml ├── springboot-es-demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── springbootesdemo │ │ │ └── SpringbootEsDemoApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── springbootesdemo │ └── SpringbootEsDemoApplicationTests.java ├── springboot-git-commit-id-demo ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ └── java │ │ └── com │ │ └── example │ │ └── springbootgitcommitiddemo │ │ └── SpringbootGitCommitIdDemoApplication.java │ └── test │ └── java │ └── com │ └── example │ └── springbootgitcommitiddemo │ └── SpringbootGitCommitIdDemoApplicationTests.java ├── springboot-hibernate-validation-demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── springboothibernatevalidationdemo │ │ │ ├── SpringbootHibernateValidationDemoApplication.java │ │ │ ├── controller │ │ │ └── HelloWordController.java │ │ │ └── dto │ │ │ └── StudentDto.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── example │ └── springboothibernatevalidationdemo │ └── SpringbootHibernateValidationDemoApplicationTests.java ├── springboot-jiezhang-setnx-demo ├── .DS_Store ├── README.md ├── README │ ├── image-20200807081912043.png │ ├── image-20200807081956092.png │ └── image-20200807084026899.png ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── miaoshademo │ │ ├── SpringbootRedisDemoApplication.java │ │ ├── busi │ │ ├── controller │ │ │ └── BillController.java │ │ └── service │ │ │ └── BillService.java │ │ └── lock │ │ ├── anno │ │ ├── SyncAnnotation.java │ │ └── SyncEnum.java │ │ ├── aop │ │ └── SyncAop.java │ │ └── util │ │ └── RedisLockUtil.java │ └── resources │ └── application.yml ├── springboot-kafka-demo ├── .gradle │ ├── 6.8 │ │ ├── executionHistory │ │ │ ├── executionHistory.bin │ │ │ └── executionHistory.lock │ │ ├── fileChanges │ │ │ └── last-build.bin │ │ ├── fileHashes │ │ │ ├── fileHashes.bin │ │ │ └── fileHashes.lock │ │ └── gc.properties │ ├── buildOutputCleanup │ │ ├── buildOutputCleanup.lock │ │ ├── cache.properties │ │ └── outputFiles.bin │ ├── checksums │ │ ├── checksums.lock │ │ ├── md5-checksums.bin │ │ └── sha1-checksums.bin │ ├── configuration-cache │ │ └── gc.properties │ └── vcs-1 │ │ └── gc.properties ├── .idea │ ├── .gitignore │ ├── compiler.xml │ ├── gradle.xml │ ├── jarRepositories.xml │ ├── libraries-with-intellij-classes.xml │ ├── misc.xml │ └── vcs.xml ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle └── src │ └── main │ └── java │ └── simpleDemo │ ├── consumer.java │ └── product.java ├── springboot-miaosha-incr-demo ├── README.md ├── cmd.sh ├── data ├── ms.sql ├── pom.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── miaoshademo │ │ │ ├── SpringbootRedisDemoApplication.java │ │ │ ├── controller │ │ │ └── ProductController.java │ │ │ ├── dao │ │ │ ├── CodeantProductDao.java │ │ │ └── CodeantProductLogDao.java │ │ │ ├── entity │ │ │ ├── CodeantProduct.java │ │ │ └── CodeantProductLog.java │ │ │ └── service │ │ │ └── ProductService.java │ │ └── resources │ │ ├── application.yml │ │ └── mapper │ │ ├── CodeantProductDao.xml │ │ └── CodeantProductLogDao.xml └── 秒杀流程图.jpg ├── springboot-multi-datasource-demo ├── README.md ├── pom.xml └── src │ ├── db.sql │ └── main │ ├── java │ └── com │ │ └── codeant │ │ └── ocean │ │ ├── NoWarnMapper.java │ │ ├── OceanApplication.java │ │ ├── controller │ │ └── TestView.java │ │ ├── druid │ │ ├── AccountConfig.java │ │ ├── BaseProperty.java │ │ ├── IcebergConfig.java │ │ └── OceanConfig.java │ │ └── mapper │ │ ├── account │ │ └── UserMapper.java │ │ ├── iceberg │ │ └── ItemOrderMapper.java │ │ └── ocean │ │ └── TotalMapper.java │ └── resources │ ├── application.yml │ ├── logback-spring.xml │ └── mapper │ ├── account │ └── account.xml │ ├── iceberg │ └── item_order.xml │ └── ocean │ └── ocean.xml ├── springboot-package-optimize-demo ├── .DS_Store ├── README.md ├── package-optimize-level0 │ ├── package-optimize-app1 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ ├── package-optimize-app2 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ ├── package-optimize-app3 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ └── pom.xml ├── package-optimize-level1 │ ├── package-optimize-app1 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ ├── package-optimize-app2 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ ├── package-optimize-app3 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ └── pom.xml ├── package-optimize-level2 │ ├── package-optimize-app1 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ ├── package-optimize-app2 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ ├── package-optimize-app3 │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── entdiy │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ └── DemoApplication.java │ │ │ └── resources │ │ │ └── application.properties │ └── pom.xml └── package-optimize-level3 │ ├── package-optimize-app1 │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── entdiy │ │ │ └── example │ │ │ └── demo │ │ │ └── DemoApplication.java │ │ └── resources │ │ └── application.properties │ ├── package-optimize-app2 │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── entdiy │ │ │ └── example │ │ │ └── demo │ │ │ └── DemoApplication.java │ │ └── resources │ │ └── application.properties │ ├── package-optimize-app3 │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── entdiy │ │ │ └── example │ │ │ └── demo │ │ │ └── DemoApplication.java │ │ └── resources │ │ └── application.properties │ └── pom.xml ├── springboot-pay-demo ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── springbootpaydemo │ │ ├── PayController.java │ │ └── SpringbootPayDemoApplication.java │ └── resources │ └── application.yml ├── springboot-redis-demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── springbootredisdemo │ │ │ ├── SpringbootRedisDemoApplication.java │ │ │ └── config │ │ │ └── Lettuce_RedisConfiguration.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── springbootredisdemo │ ├── RedisCRUD.java │ ├── RedisExpire.java │ └── SpringbootRedisDemoApplicationTests.java ├── springboot-sync-demo ├── HELP.md ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── codeant │ │ └── springbootsyncdemo │ │ ├── SpringbootSyncDemoApplication.java │ │ ├── async │ │ ├── Controller.java │ │ ├── JobService.java │ │ └── SyncService.java │ │ └── entity │ │ └── User.java │ └── resources │ └── application.properties ├── springboot_cache_caffeine_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_cache_caffeine_demo │ │ │ ├── SpringbootCacheCaffeineDemoApplication.java │ │ │ ├── config │ │ │ └── CacheConfig.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── entity │ │ │ └── User.java │ │ │ └── service │ │ │ ├── UserService.java │ │ │ └── impl │ │ │ └── UserServiceImpl.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_cache_caffeine_demo │ └── SpringbootCacheCaffeineDemoApplicationTests.java ├── springboot_cache_guava_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_cache_guava_demo │ │ │ ├── SpringbootCacheGuavaDemoApplication.java │ │ │ ├── config │ │ │ └── GuavaCacheConfig.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── entity │ │ │ └── User.java │ │ │ └── service │ │ │ ├── UserService.java │ │ │ └── impl │ │ │ └── UserServiceImpl.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_cache_guava_demo │ └── SpringbootCacheGuavaDemoApplicationTests.java ├── springboot_cache_redis_demo ├── README.md ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── li │ │ └── springboot_cache_redis_demo │ │ ├── SpringbootCacheRedisDemoApplication.java │ │ ├── config │ │ └── RedisConfig.java │ │ ├── controller │ │ └── UserController.java │ │ ├── entity │ │ └── User.java │ │ └── service │ │ ├── UserService.java │ │ └── impl │ │ └── UserServiceImpl.java │ └── resources │ └── application.yml ├── springboot_crawler_demo ├── .DS_Store ├── README.md ├── env │ ├── ip │ │ ├── ips--1575356445613.txt │ │ ├── ips--1575356551418.txt │ │ ├── ips--1575356563563.txt │ │ ├── ips--1575356598577.txt │ │ ├── ips--1575357056758.txt │ │ └── ips--1575357234786.txt │ └── user_agents.txt ├── img │ ├── 0.jpg │ ├── 00.jpg │ └── 1.jpg ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_crawler_demo │ │ │ ├── SpringbootCrawlerDemoApplication.java │ │ │ └── utils │ │ │ ├── CrawlerUtil.java │ │ │ └── img │ │ │ ├── CrawlerImageUtil.java │ │ │ ├── DownloadByMuitThread.java │ │ │ ├── Main.java │ │ │ ├── entity │ │ │ └── IPEntity.java │ │ │ ├── fileMsg │ │ │ ├── FileUtil.java │ │ │ ├── ReadLine.java │ │ │ └── TypeDict.java │ │ │ └── md5 │ │ │ ├── MD5Util.java │ │ │ └── MD5Util2.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_crawler_demo │ └── SpringbootCrawlerDemoApplicationTests.java ├── springboot_docker_demo ├── .idea │ ├── .gitignore │ ├── compiler.xml │ ├── encodings.xml │ ├── jarRepositories.xml │ ├── misc.xml │ └── vcs.xml ├── Dockerfile ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_docker_demo │ │ │ ├── HelloController.java │ │ │ └── SpringbootDockerDemoApplication.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_docker_demo │ └── SpringbootDockerDemoApplicationTests.java ├── springboot_dubbo ├── .DS_Store ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── misc.xml │ ├── modules.xml │ ├── springboot_dubbo.iml │ ├── vcs.xml │ └── workspace.xml ├── README.md ├── springboot_dubbo_0_interface_demo │ ├── .idea │ │ ├── compiler.xml │ │ ├── encodings.xml │ │ ├── misc.xml │ │ └── workspace.xml │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── example │ │ └── li │ │ └── springboot_dubbo_0_interface_demo │ │ ├── bean │ │ └── UserAddress.java │ │ └── service │ │ ├── OrderService.java │ │ └── UserService.java ├── springboot_dubbo_1_userservice_provider_demo │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── li │ │ │ │ └── springboot_dubbo_1_userservice_provider_demo │ │ │ │ ├── SpringbootDubbo1UserserviceProviderDemoApplication.java │ │ │ │ └── service │ │ │ │ └── impl │ │ │ │ └── UserServiceImpl.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── li │ │ └── springboot_dubbo_1_userservice_provider_demo │ │ └── SpringbootDubbo1UserserviceProviderDemoApplicationTests.java └── springboot_dubbo_2_orderservice_consumer_demo │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_dubbo_2_orderservice_consumer_demo │ │ │ ├── SpringbootDubbo2OrderserviceConsumerDemoApplication.java │ │ │ ├── controller │ │ │ └── OrderController.java │ │ │ └── service │ │ │ └── impl │ │ │ └── OrderServiceImpl.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_dubbo_2_orderservice_consumer_demo │ └── SpringbootDubbo2OrderserviceConsumerDemoApplicationTests.java ├── springboot_fastdfs_demo ├── FastDFS+Nginx文件服务器搭建.md ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_fastdfs_demo │ │ │ ├── SpringbootFastdfsDemoApplication.java │ │ │ ├── controller │ │ │ ├── FileController.java │ │ │ ├── GlobalExceptionController.java │ │ │ └── PageController.java │ │ │ └── utils │ │ │ └── FastDFSClient.java │ └── resources │ │ ├── application.yml │ │ ├── fdfs_client.conf │ │ └── templates │ │ └── fileupload.html │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_fastdfs_demo │ └── SpringbootFastdfsDemoApplicationTests.java ├── springboot_filter_interceptor_demo ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_filter_interceptor_demo │ │ │ ├── SpringbootFilterInterceptorDemoApplication.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── dao │ │ │ └── BlackListDao.java │ │ │ ├── entity │ │ │ └── BlackList.java │ │ │ ├── filter │ │ │ ├── method1 │ │ │ │ ├── MyFilter1.java │ │ │ │ ├── MyFilter3.java │ │ │ │ └── conf │ │ │ │ │ └── MyServerConfig.java │ │ │ └── method2 │ │ │ │ ├── MyFilter2.java │ │ │ │ └── MyFilter4.java │ │ │ ├── interceptor │ │ │ ├── IPInterceptor.java │ │ │ └── conf │ │ │ │ └── MyInterceptorConfig.java │ │ │ └── util │ │ │ └── IPAddressUtil.java │ └── resources │ │ ├── application.properties │ │ ├── application.yml │ │ └── templates │ │ ├── errorpage │ │ └── error.html │ │ └── index.html │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_filter_interceptor_demo │ └── SpringbootFilterInterceptorDemoApplicationTests.java ├── springboot_idempotence_demo ├── .DS_Store ├── README.md ├── img │ └── image-20210111145616963.png ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── springboot_idempotence_demo │ │ ├── Application.java │ │ ├── api │ │ ├── PayController.java │ │ └── PayService.java │ │ └── util │ │ ├── RandomString.java │ │ └── RedisUtil.java │ └── resources │ └── application.yml ├── springboot_jjwt_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_jjwt_demo │ │ │ ├── SpringbootJjwtDemoApplication.java │ │ │ ├── conf │ │ │ └── BeanRegisterConfig.java │ │ │ ├── controller │ │ │ ├── LoginController.java │ │ │ └── test.java │ │ │ ├── filter │ │ │ └── MyFilter.java │ │ │ └── util │ │ │ ├── JwtService.java │ │ │ └── JwtUtils.java │ └── resources │ │ ├── application.properties │ │ ├── application.yml │ │ └── static │ │ ├── app.js │ │ └── index.html │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_jjwt_demo │ └── SpringbootJjwtDemoApplicationTests.java ├── springboot_junit_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_junit_demo │ │ │ ├── SpringbootJunitDemoApplication.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── dao │ │ │ └── base │ │ │ │ ├── Dao.java │ │ │ │ ├── EntityDao.java │ │ │ │ └── SearchDao.java │ │ │ ├── entity │ │ │ ├── User.java │ │ │ └── base │ │ │ │ └── Entity.java │ │ │ └── service │ │ │ ├── IUserService.java │ │ │ └── Impl │ │ │ └── UserServiceImpl.java │ └── resources │ │ ├── application.yml │ │ └── mapping │ │ ├── EntityMapper.xml │ │ └── SearchMapper.xml │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_junit_demo │ ├── SpringbootJunitDemoApplicationTests.java │ └── service │ └── Impl │ └── UserServiceImplTest.java ├── springboot_justauth_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_justauth_demo │ │ │ ├── JustauthDemoApplication.java │ │ │ └── controller │ │ │ └── RestAuthController.java │ └── resources │ │ ├── application.properties │ │ ├── logback-spring.xml │ │ └── templates │ │ └── index.html │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_justauth_demo │ └── SpringbootJustauthDemoApplicationTests.java ├── springboot_logging_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_logging_demo │ │ │ └── SpringbootLoggingDemoApplication.java │ └── resources │ │ ├── application.properties │ │ ├── log4j.properties │ │ └── logback-spring.xml │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_logging_demo │ ├── LoggingTest.java │ └── SpringbootLoggingDemoApplicationTests.java ├── springboot_mail_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_mail_demo │ │ │ ├── Application.java │ │ │ ├── controller │ │ │ └── MailController.java │ │ │ └── service │ │ │ ├── Impl │ │ │ └── MailServiceImpl.java │ │ │ └── MailService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_mail_demo │ └── SpringbootMailDemoApplicationTests.java ├── springboot_modle_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_modle_demo │ │ │ ├── SpringbootModleDemoApplication.java │ │ │ └── controller │ │ │ ├── AjaxController.java │ │ │ └── HelloController.java │ └── resources │ │ ├── application.properties │ │ └── templates │ │ ├── hello.html │ │ └── insert1.html │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_modle_demo │ └── SpringbootModleDemoApplicationTests.java ├── springboot_mybatis_demo ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_mybatis_demo │ │ │ ├── SpringbootMybatisDemoApplication.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── dao │ │ │ └── base │ │ │ │ ├── Dao.java │ │ │ │ ├── EntityDao.java │ │ │ │ └── SearchDao.java │ │ │ ├── entity │ │ │ ├── User.java │ │ │ └── base │ │ │ │ └── Entity.java │ │ │ ├── redis │ │ │ ├── MybatisRedisCache.java │ │ │ ├── MybatisRedisCacheTransfer.java │ │ │ ├── SerializeUtil.java │ │ │ └── config │ │ │ │ └── RedisConfig.java │ │ │ └── service │ │ │ ├── IUserService.java │ │ │ └── Impl │ │ │ └── UserServiceImpl.java │ └── resources │ │ ├── application.properties │ │ ├── application.yml │ │ └── mapping │ │ ├── EntityMapper.xml │ │ └── SearchMapper.xml │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_mybatis_demo │ └── SpringbootMybatisDemoApplicationTests.java ├── springboot_mybatis_shiro_demo ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_mybatis_shiro_demo │ │ │ ├── SpringbootMybatisShiroDemoApplication.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── dao │ │ │ └── base │ │ │ │ ├── Dao.java │ │ │ │ ├── EntityDao.java │ │ │ │ └── SearchDao.java │ │ │ ├── entity │ │ │ ├── User.java │ │ │ └── base │ │ │ │ └── Entity.java │ │ │ ├── redis │ │ │ ├── MybatisRedisCache.java │ │ │ ├── MybatisRedisCacheTransfer.java │ │ │ ├── SerializeUtil.java │ │ │ └── config │ │ │ │ └── MybatisRedisConfig.java │ │ │ ├── service │ │ │ ├── IUserService.java │ │ │ └── Impl │ │ │ │ └── UserServiceImpl.java │ │ │ └── shiro │ │ │ ├── MysqlRealm.java │ │ │ ├── RedisSessionDao.java │ │ │ ├── SecondRealm.java │ │ │ ├── SerializableUtils.java │ │ │ └── ShiroConfig.java │ └── resources │ │ ├── application.properties │ │ ├── application.yml │ │ ├── ehcache-shiro.xml │ │ └── mapping │ │ ├── EntityMapper.xml │ │ └── SearchMapper.xml │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_mybatis_shiro_demo │ └── SpringbootMybatisShiroDemoApplicationTests.java ├── springboot_neo4j_example-master ├── .DS_Store ├── README.md ├── cql语法.md ├── img │ └── sdn.png ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── neo4jdemo │ │ ├── Neo4jDemoApplication.java │ │ ├── conf │ │ └── Neo4jConfig.java │ │ ├── controller │ │ ├── DefaultController.java │ │ ├── MovieController.java │ │ └── PersonController.java │ │ ├── model │ │ ├── node │ │ │ ├── Movie.java │ │ │ └── Person.java │ │ ├── relation │ │ │ └── ActIn.java │ │ └── result │ │ │ └── PersonMovie.java │ │ ├── repository │ │ ├── MovieRepository.java │ │ └── PersonRepository.java │ │ └── service │ │ ├── MovieService.java │ │ └── PersonService.java │ └── resources │ └── application.properties ├── springboot_poi_demo ├── README.md ├── pom.xml ├── springboot整合easypoi-v1.md └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_poi_demo │ │ │ ├── Application.java │ │ │ ├── controller │ │ │ └── ExcelController.java │ │ │ ├── model │ │ │ └── PersonExportVo.java │ │ │ ├── service │ │ │ ├── IExcelService.java │ │ │ └── Impl │ │ │ │ └── ExcelServiceImpl.java │ │ │ └── utils │ │ │ ├── ExcelListener.java │ │ │ ├── ExcelUtils.java │ │ │ ├── FileLoaderImpl.java │ │ │ └── MyExcelImportService.java │ └── resources │ │ └── static │ │ ├── index.html │ │ └── user1-128x128.jpg │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_poi_demo │ └── SpringbootPoiDemoApplicationTests.java ├── springboot_poi_demo_v2 ├── README.md ├── pom.xml ├── springboot整合easypoi-v2.md └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_poi_demo_v2 │ │ │ ├── Application.java │ │ │ ├── controller │ │ │ ├── exportExcel │ │ │ │ ├── BigExcelController.java │ │ │ │ ├── MapExcelController.java │ │ │ │ └── SimpleExcelController.java │ │ │ └── importExcel │ │ │ │ ├── BigExcelImportController.java │ │ │ │ ├── MapExcelImportController.java │ │ │ │ └── SimpleExcelImportController.java │ │ │ ├── dao │ │ │ └── DogDao.java │ │ │ ├── hanlder │ │ │ └── ExportLoadDataHandler.java │ │ │ ├── pojo │ │ │ └── Dog.java │ │ │ └── service │ │ │ ├── IDogService.java │ │ │ └── impl │ │ │ └── DogServiceImpl.java │ └── resources │ │ ├── application.properties │ │ └── static │ │ └── index.html │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_poi_demo_v2 │ └── SpringbootPoiDemoV2ApplicationTests.java ├── springboot_poi_demo_v3 ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_poi_demo_v3 │ │ │ ├── SpringbootPoiDemoV3Application.java │ │ │ ├── controller │ │ │ └── ExcelExportTemplate.java │ │ │ └── pojo │ │ │ ├── CourseEntity.java │ │ │ ├── StudentEntity.java │ │ │ └── TeacherEntity.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_poi_demo_v3 │ └── SpringbootPoiDemoV3ApplicationTests.java ├── springboot_poi_excel-operate-demo ├── README.md ├── image-20200612094704997.png ├── image-20200612095157230.png ├── image-20200612110823803.png ├── image-20200612111220292.png ├── image-20200612112222420.png ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── example │ │ └── exceloperatedemo │ │ ├── ExcelOperateDemoApplication.java │ │ ├── controller │ │ └── TestController.java │ │ ├── entity │ │ └── Person.java │ │ ├── service │ │ └── TestService.java │ │ └── util │ │ ├── ExcelTemplateUtil.java │ │ └── ReadExcelUtils.java │ └── resources │ ├── application.yml │ └── static │ ├── upload.html │ └── xls │ ├── 学生信息汇总表.xls │ └── 导入学生信息汇总表.xls ├── springboot_rabbitmq_client_demo ├── .DS_Store ├── README.md ├── assets │ ├── image-20190107103229408-6828349.png │ ├── image-20190107103258291-6828378.png │ ├── image-20190107103358744-6828438.png │ ├── image-20190107103429430-6828469.png │ ├── image-20190107103451240-6828491.png │ └── image-20190107103509943-6828509.png ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_rabbitmq_client_demo │ │ │ ├── SpringbootRabbitmqClientDemoApplication.java │ │ │ ├── config │ │ │ └── RabbitMqConfig.java │ │ │ ├── constants │ │ │ └── RabbitConsts.java │ │ │ ├── handler │ │ │ ├── DelayQueueHandler.java │ │ │ ├── DirectQueueOneHandler.java │ │ │ ├── QueueThreeHandler.java │ │ │ └── QueueTwoHandler.java │ │ │ └── message │ │ │ └── MessageStruct.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_rabbitmq_client_demo │ └── SpringbootRabbitmqClientDemoApplicationTests.java ├── springboot_rabbitmq_demo ├── .DS_Store ├── README.md ├── rabbitmq-demo(单播、广播) │ ├── consumer-demo │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── consumer │ │ │ │ │ └── consumerdemo │ │ │ │ │ ├── ConsumerDemoApplication.java │ │ │ │ │ ├── bean │ │ │ │ │ └── Book.java │ │ │ │ │ ├── config │ │ │ │ │ └── MyAMQPConfig.java │ │ │ │ │ └── service │ │ │ │ │ └── BookService.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── consumer │ │ │ └── consumerdemo │ │ │ └── ConsumerDemoApplicationTests.java │ ├── img │ │ ├── bind - fanout.png │ │ ├── binds - direct.png │ │ ├── create-exchanges.png │ │ ├── create-queue.png │ │ ├── fanout - 1.png │ │ ├── fanout - 2.png │ │ ├── fanout - 3.png │ │ ├── fanout - 4.png │ │ ├── sendMsgD - 1.png │ │ └── sendMsgD - 2.png │ ├── provider-demo │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── provider │ │ │ │ │ └── providerdemo │ │ │ │ │ ├── ProviderDemoApplication.java │ │ │ │ │ ├── bean │ │ │ │ │ └── Book.java │ │ │ │ │ ├── config │ │ │ │ │ ├── MyAMQPConfig.java │ │ │ │ │ └── RabbitConfig.java │ │ │ │ │ └── controller │ │ │ │ │ ├── CreateExchangeController.java │ │ │ │ │ └── SendController.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── provider │ │ │ └── providerdemo │ │ │ └── ProviderDemoApplicationTests.java │ └── rabbitmq-demo(单播、广播).md └── rabbitmq-demo(延时队列) │ ├── 延时消费 │ ├── README.md │ ├── img │ │ ├── 1延时消费.png │ │ └── 2延时消费实际流程图.png │ ├── springboot-rabbitmq-delay-message │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── codeant │ │ │ │ │ └── spring_boot │ │ │ │ │ └── rabbitmq │ │ │ │ │ └── delay │ │ │ │ │ └── queue │ │ │ │ │ ├── Application.java │ │ │ │ │ ├── conf │ │ │ │ │ └── QueueConfig.java │ │ │ │ │ ├── service │ │ │ │ │ └── ProcessReceiver.java │ │ │ │ │ └── util │ │ │ │ │ └── ExpirationMessagePostProcessor.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── codeant │ │ │ └── spring_boot │ │ │ └── rabbitmq │ │ │ └── delay │ │ │ └── queue │ │ │ └── ApplicationTests.java │ └── springboot-rabbitmq-delay-queue │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── codeant │ │ │ │ └── spring_boot │ │ │ │ └── rabbitmq │ │ │ │ └── delay │ │ │ │ └── queue │ │ │ │ ├── Application.java │ │ │ │ ├── conf │ │ │ │ └── QueueConfig.java │ │ │ │ └── service │ │ │ │ └── ProcessReceiver.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── codeant │ │ └── spring_boot │ │ └── rabbitmq │ │ └── delay │ │ └── queue │ │ └── ApplicationTests.java │ └── 延时重试 │ ├── README.md │ ├── img │ ├── 延时重试.png │ └── 延时重试实际流程图.png │ ├── springboot-rabbitmq-delay-message │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── codeant │ │ │ │ └── spring_boot │ │ │ │ └── rabbitmq │ │ │ │ └── delay │ │ │ │ └── queue │ │ │ │ ├── Application.java │ │ │ │ ├── conf │ │ │ │ └── QueueConfig.java │ │ │ │ ├── service │ │ │ │ └── ProcessReceiver.java │ │ │ │ └── util │ │ │ │ └── ExpirationMessagePostProcessor.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── codeant │ │ └── spring_boot │ │ └── rabbitmq │ │ └── delay │ │ └── queue │ │ └── ApplicationTests.java │ └── springboot-rabbitmq-delay-queue │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── codeant │ │ │ └── spring_boot │ │ │ └── rabbitmq │ │ │ └── delay │ │ │ └── queue │ │ │ ├── Application.java │ │ │ ├── conf │ │ │ └── QueueConfig.java │ │ │ └── service │ │ │ └── ProcessReceiver.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── codeant │ └── spring_boot │ └── rabbitmq │ └── delay │ └── queue │ └── ApplicationTests.java ├── springboot_shiro_jwt_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_shiro_jwt_demo │ │ │ ├── SpringbootShiroJwtDemoApplication.java │ │ │ ├── bean │ │ │ └── ResponseBean.java │ │ │ ├── controller │ │ │ ├── ExceptionController.java │ │ │ └── WebController.java │ │ │ ├── database │ │ │ ├── DataSource.java │ │ │ ├── UserBean.java │ │ │ └── UserService.java │ │ │ ├── exception │ │ │ └── UnauthorizedException.java │ │ │ ├── shiro │ │ │ ├── JWTFilter.java │ │ │ ├── JWTToken.java │ │ │ ├── MyRealm.java │ │ │ └── ShiroConfig.java │ │ │ └── util │ │ │ └── JWTUtil.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_shiro_jwt_demo │ └── SpringbootShiroJwtDemoApplicationTests.java ├── springboot_swagger_demo ├── README.md ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_swagger_demo │ │ │ ├── SpringbootSwaggerDemoApplication.java │ │ │ ├── config │ │ │ ├── SwaggerConfig.java │ │ │ └── WebMvcConfig.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ └── entity │ │ │ └── dto │ │ │ └── UserDTO.java │ └── resources │ │ ├── application.properties │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_swagger_demo │ └── SpringbootSwaggerDemoApplicationTests.java ├── springboot_websocket_demo ├── README.md ├── pom.xml ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── li │ │ │ │ └── springboot_websocket_demo │ │ │ │ ├── SpringbootWebsocketDemoApplication.java │ │ │ │ ├── conf │ │ │ │ └── WebSocketConfig.java │ │ │ │ ├── controller │ │ │ │ └── GreetingController.java │ │ │ │ └── entity │ │ │ │ ├── Greeting.java │ │ │ │ └── HelloMessage.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── static │ │ │ ├── app.js │ │ │ └── index.html │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── li │ │ └── springboot_websocket_demo │ │ └── SpringbootWebsocketDemoApplicationTests.java └── 效果图.png ├── springboot_websocket_simplechat_demo ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── li │ │ │ └── springboot_websocket_simplechat_demo │ │ │ ├── SpringbootWebsocketSimplechatDemoApplication.java │ │ │ ├── conf │ │ │ └── WebSocketConfig.java │ │ │ ├── controller │ │ │ └── GroupChatController.java │ │ │ └── entity │ │ │ ├── Greeting.java │ │ │ ├── HelloMessage.java │ │ │ └── Message.java │ └── resources │ │ ├── application.properties │ │ └── static │ │ ├── app.js │ │ └── index.html │ └── test │ └── java │ └── com │ └── example │ └── li │ └── springboot_websocket_simplechat_demo │ └── SpringbootWebsocketSimplechatDemoApplicationTests.java ├── springbt_security_jwt ├── README.md ├── pom.xml ├── springbt_security_jwt.iml └── src │ ├── main │ ├── java │ │ └── cn │ │ │ └── codesheep │ │ │ └── springbt_security_jwt │ │ │ ├── SpringbtSecurityJwtApplication.java │ │ │ ├── comm │ │ │ └── Const.java │ │ │ ├── config │ │ │ └── WebSecurityConfig.java │ │ │ ├── controller │ │ │ ├── JwtAuthController.java │ │ │ └── TestController.java │ │ │ ├── database │ │ │ └── UserRepository.java │ │ │ ├── filter │ │ │ └── JwtTokenFilter.java │ │ │ ├── model │ │ │ └── entity │ │ │ │ ├── Role.java │ │ │ │ └── User.java │ │ │ ├── service │ │ │ ├── AuthService.java │ │ │ ├── UserService.java │ │ │ └── impl │ │ │ │ └── AuthServiceImpl.java │ │ │ └── util │ │ │ └── JwtTokenUtil.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── cn │ └── codesheep │ └── springbt_security_jwt │ └── SpringbtSecurityJwtApplicationTests.java ├── springbt_sso_jwt ├── .DS_Store ├── README.md ├── codeant-client1 │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── cn │ │ │ └── codeant │ │ │ ├── Client1Application.java │ │ │ ├── config │ │ │ └── ClientWebsecurityConfigurer.java │ │ │ └── controller │ │ │ └── TestController.java │ │ └── resources │ │ └── application.yml ├── codeant-client2 │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── cn │ │ │ └── codeant │ │ │ ├── Client2Application.java │ │ │ ├── config │ │ │ └── ClientWebsecurityConfigurer.java │ │ │ └── controller │ │ │ └── TestController.java │ │ └── resources │ │ └── application.yml ├── codeant-server │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── cn │ │ │ └── codeant │ │ │ ├── ServerApplication.java │ │ │ ├── config │ │ │ ├── AuthorizationServerConfig.java │ │ │ └── SpringSecurityConfig.java │ │ │ └── service │ │ │ └── AntUserDetailsService.java │ │ └── resources │ │ └── application.yml ├── pom.xml └── springbt_sso_jwt.iml ├── sql ├── REMIAN.md └── young.sql ├── voice ├── jacob-1.18-x64.dll ├── pom.xml └── src │ └── main │ └── java │ └── jacobtest.java ├── vxzf.png ├── wechat.gif └── wechat.png /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/.gitignore 2 | 3 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # 默认忽略的文件 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/springboot.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /crawlerbyhttp2/QQ截图20191129171152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/crawlerbyhttp2/QQ截图20191129171152.png -------------------------------------------------------------------------------- /crawlerbyhttp2/jdk9采用http2发送请求的demo.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/crawlerbyhttp2/jdk9采用http2发送请求的demo.7z -------------------------------------------------------------------------------- /crawlerbyhttp2/src/README.md: -------------------------------------------------------------------------------- 1 | ## 简述 2 | 该程序是针对于图片网站(https://foter.com/)所编写的爬虫程序. 3 | 4 | ## 运行条件 5 | 6 | | 名称 | 版本 | 7 | | ---- | ---- | 8 | | JDK | 9 | 9 | | HTTP | 2 | 10 | 11 | 这里网站因为是采用的http2协议,然而jdk支持http2的版本为jdk9. 12 | 13 | 14 | 15 | 16 | 17 | 存包 18 | 19 | 餐厅 20 | 21 | 练习场 -------------------------------------------------------------------------------- /crawlerbyhttp2/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | //jdk9的模块化,需要该文件,否则无法正常运行 2 | module crawlerbyhttp2{ 3 | requires jdk.incubator.httpclient; 4 | requires slf4j.api; 5 | requires tomcat.coyote; 6 | requires http.request; 7 | } 8 | -------------------------------------------------------------------------------- /crawlerbyhttp2/说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/crawlerbyhttp2/说明.txt -------------------------------------------------------------------------------- /performance2tomcat_demo/Dockerfile: -------------------------------------------------------------------------------- 1 | # https://juejin.cn/post/6844903983392243720 2 | FROM openjdk:8u201-jre-alpine3.9 3 | 4 | # 时区 5 | ENV TZ=Asia/Shanghai 6 | 7 | #这里的 /tmp 目录就会在运行时自动挂载为匿名卷,任何向 /tmp 中写入的信息都不会记录进容器存储层 8 | VOLUME /tmp 9 | 10 | #复制上下文目录下的target/demo-0.0.1-SNAPSHOT.jar 到容器里;maven中配置JAR_FILE 11 | #COPY ${JAR_FILE} performance2tomcat_demo-0.0.1-SNAPSHOT.jar 12 | COPY /target/performance2tomcat_demo-0.0.1-SNAPSHOT.jar app.jar 13 | 14 | #指定容器启动程序及参数 "" 15 | ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar app.jar ${0} ${@}"] -------------------------------------------------------------------------------- /performance2tomcat_demo/img/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/performance2tomcat_demo/img/img.png -------------------------------------------------------------------------------- /performance2tomcat_demo/src/main/java/com/example/performance2tomcat_demo/Performance2tomcatDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.performance2tomcat_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Performance2tomcatDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Performance2tomcatDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /performance2tomcat_demo/src/main/java/com/example/performance2tomcat_demo/service/impl/TomcatPerformanceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.performance2tomcat_demo.service.impl; 2 | 3 | public interface TomcatPerformanceImpl { 4 | public String create100NumWait1s(); 5 | } 6 | -------------------------------------------------------------------------------- /performance2tomcat_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | # ????????????????????????????????docker run???-e???maven package???????????mvn test 3 | port: ${tomcatSeverPort} 4 | servlet: 5 | context-path: /tomcat 6 | tomcat: 7 | # ????????????????????????????????docker run???-e?? 8 | accept-count: ${maxTomcatAcceptCount} 9 | threads: 10 | # ????????????????????????????????docker run???-e?? 11 | max: ${maxTomcatThreadNum} -------------------------------------------------------------------------------- /performance2tomcat_demo/src/test/java/com/example/performance2tomcat_demo/Performance2tomcatDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.performance2tomcat_demo; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class Performance2tomcatDemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /spring-boot-demo-task/README.md: -------------------------------------------------------------------------------- 1 | # spring-boot-demo-task 2 | 3 | > 此 demo 主要演示了 Spring Boot 如何快速实现定时任务。 4 | 5 | ## 参考 6 | 7 | - Spring Boot官方文档:https://docs.spring.io/spring-boot/docs/2.1.0.RELEASE/reference/htmlsingle/#boot-features-task-execution-scheduling -------------------------------------------------------------------------------- /spring-boot-demo-task/src/main/java/com/cqut/task/SpringBootDemoTaskApplication.java: -------------------------------------------------------------------------------- 1 | package com.cqut.task; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @description: 启动器 8 | */ 9 | @SpringBootApplication 10 | public class SpringBootDemoTaskApplication { 11 | 12 | public static void main(String[] args) { 13 | SpringApplication.run(SpringBootDemoTaskApplication.class, args); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /spring-boot-demo-task/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | # 下面的配置等同于 TaskConfig 2 | #spring: 3 | # task: 4 | # scheduling: 5 | # pool: 6 | # size: 20 7 | # thread-name-prefix: Job-Thread- -------------------------------------------------------------------------------- /springboot- example-https/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot- example-https/.DS_Store -------------------------------------------------------------------------------- /springboot- example-https/.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 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/.name: -------------------------------------------------------------------------------- 1 | springboot-example-https -------------------------------------------------------------------------------- /springboot- example-https/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_5_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_22.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__net_minidev_json_smart_2_4_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_assertj_assertj_core_3_19_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_hamcrest_hamcrest_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_mockito_mockito_core_3_9_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_objenesis_objenesis_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_ow2_asm_asm_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_32.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_32.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_8_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/libraries/Maven__org_yaml_snakeyaml_1_28.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot- example-https/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /springboot- example-https/src/main/java/com/example/springbootexamplehttps/SpringbootExampleHttpsApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootexamplehttps; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootExampleHttpsApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootExampleHttpsApplication.class, args); 11 | System.out.println("http://127.0.0.1:9999/example/hello"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /springboot- example-https/src/main/java/com/example/springbootexamplehttps/controller/HelloController.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootexamplehttps.controller; 2 | 3 | import org.springframework.web.bind.annotation.GetMapping; 4 | import org.springframework.web.bind.annotation.RestController; 5 | 6 | @RestController 7 | public class HelloController { 8 | 9 | @GetMapping("/hello") 10 | public String hello(){ 11 | return "hello ssl/tsl"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /springboot- example-https/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9999 2 | server.servlet.context-path=/example -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-alibaba-yuezhi/.DS_Store -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-alibaba-yuezhi/.idea/.gitignore -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/artifacts/yuezhi_api_manager_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/yuezhi-api/yuezhi-api-manager/target 4 | 5 | 6 | yuezhi-api-manager 7 | war 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/artifacts/yuezhi_service_business_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/yuezhi-service/yuezhi-service-business/target 4 | 5 | 6 | yuezhi-service-business 7 | war 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.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 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.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 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_alibaba_csp_sentinel_core_1_8_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_alibaba_fastjson_1_2_71.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_alibaba_nacos_nacos_api_1_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_alibaba_nacos_nacos_client_1_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_alibaba_nacos_nacos_common_1_4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.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 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_google_guava_failureaccess_1_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_google_guava_guava_29_0_jre.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_netflix_archaius_archaius_core_0_7_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_netflix_hystrix_hystrix_core_1_5_18.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_netflix_ribbon_ribbon_2_3_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_netflix_ribbon_ribbon_core_2_3_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.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 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_sun_jersey_jersey_client_1_19_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.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 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__com_sun_mail_jakarta_mail_1_6_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__commons_codec_commons_codec_1_14.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__commons_io_commons_io_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__commons_lang_commons_lang_2_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__commons_logging_commons_logging_1_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_github_openfeign_feign_core_10_10_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_github_openfeign_feign_slf4j_10_10_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_github_openfeign_form_feign_form_3_8_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_micrometer_micrometer_core_1_5_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_netty_netty_buffer_4_1_51_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_netty_netty_codec_4_1_51_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_netty_netty_common_4_1_51_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_netty_netty_handler_4_1_51_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_prometheus_simpleclient_0_5_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_reactivex_rxjava_1_3_8.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_reactivex_rxnetty_0_4_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_reactivex_rxnetty_contexts_0_4_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__io_reactivex_rxnetty_servo_0_4_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__javax_inject_javax_inject_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.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 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__net_sf_ezmorph_ezmorph_1_0_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__net_sf_json_lib_json_lib_2_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.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 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_aspectj_aspectjrt_1_9_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk15on_1_64.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_64.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_checkerframework_checker_qual_2_11_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_glassfish_jakarta_el_3_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_projectlombok_lombok_1_18_12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_projectlombok_lombok_1_18_16.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.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 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_30.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/libraries/Maven__org_yaml_snakeyaml_1_26.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/doc/file/img/640: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-alibaba-yuezhi/doc/file/img/640 -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/doc/file/编程规约.md: -------------------------------------------------------------------------------- 1 | ## 注释 2 | ### Java文件注释 3 | 4 | 在idea中设置`setting`->`file and code template`->`includes`->`file header`中填写一下内容: 5 | 6 | > ```java 7 | > /** 8 | > * 描述: 类描述 9 | > * 10 | > * @author 作者名 11 | > * @date ${YEAR}年${MONTH}月${DAY}日 ${TIME} 12 | > */ 13 | > ``` 14 | 15 | 生成示例: 16 | 17 | > ```java 18 | > /** 19 | > * 描述: 测试注释生成 20 | > * 21 | > * @author lijinhong 22 | > * @date 2021年01月29日 08:36 23 | > */ 24 | > public class Test { 25 | > } 26 | > ``` 27 | 28 | ### Java方法注释 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | ## 日志 37 | 38 | > 日志框架输出采用的`slf4j` -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/doc/yml config file/local_yml.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-alibaba-yuezhi/doc/yml config file/local_yml.zip -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-api/yuezhi-api-manager/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM java:8 2 | # 基础镜像,没有任何其他的依赖 3 | #FROM scratch 4 | #FROM alpine 5 | #FROM openjdk:9-jre-alpine 6 | 7 | MAINTAINER lijinhong<18315107186@189.cn> 8 | 9 | # 参考https://blog.csdn.net/cuiyaoqiang/article/details/100193220 10 | # 映射宿主机的JDK 11 | 12 | EXPOSE 8081 13 | 14 | ADD ./target/yuezhi-api-manager-1.0-SNAPSHOT.jar ./yuezhi-api-manager-1.0-SNAPSHOT.jar 15 | 16 | ENTRYPOINT ["java","-jar","yuezhi-api-manager-1.0-SNAPSHOT.jar"] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-api/yuezhi-api-manager/src/main/java/com/ruiyun/feign/FeignConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.ruiyun.feign; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | 5 | /** 6 | * 描述: 注册服务测试 7 | * 8 | * @author lijinhong 9 | * @date 2021年01月29日 08:36 10 | */ 11 | public class FeignConfiguration { 12 | @Bean 13 | public ServiceFallback echoServiceFallback() { 14 | return new ServiceFallback(); 15 | } 16 | } -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-api/yuezhi-api-manager/src/main/java/com/ruiyun/feign/ServiceFallback.java: -------------------------------------------------------------------------------- 1 | package com.ruiyun.feign; 2 | 3 | import com.ruiyun.service.IDiscoveryService; 4 | 5 | /** 6 | * 描述: 服务消费类 7 | * 8 | * @author lijinhong 9 | * @date 2021年01月29日 08:36 10 | */ 11 | public class ServiceFallback implements IDiscoveryService { 12 | 13 | @Override 14 | public String echo(String str) { 15 | return "echo fallback"; 16 | } 17 | } -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-basic/yuezhi-basic-gateway/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM java:8 2 | 3 | MAINTAINER 18315107186@189.cn 4 | 5 | 6 | ADD ./target/yuezhi-basic-gateway-1.0-SNAPSHOT.jar ./yuezhi-basic-gateway-1.0-SNAPSHOT.jar 7 | 8 | ENTRYPOINT ["java","-jar","yuezhi-basic-gateway-1.0-SNAPSHOT.jar"] 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-basic/yuezhi-basic-gateway/src/main/java/com/ruiyun/GateWayApplication.java: -------------------------------------------------------------------------------- 1 | package com.ruiyun; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | 8 | @SpringBootApplication 9 | @EnableDiscoveryClient 10 | public class GateWayApplication { 11 | public static void main(String[] args) { 12 | SpringApplication.run(GateWayApplication.class, args); 13 | } 14 | } -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-basic/yuezhi-basic-gateway/src/main/resources/bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | profiles: 3 | active: dev 4 | application: 5 | name: yuezhi-basic-gateway 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 123.56.129.198:8848 10 | # 配置中心 11 | config: 12 | # 地址 13 | server-addr: ${spring.cloud.nacos.discovery.server-addr} 14 | # 配置文件格式 15 | file-extension: yml 16 | sharedConfigs: 17 | - application-monitor-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} 18 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-basic/yuezhi-basic-monitor/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM java:8 2 | 3 | MAINTAINER 18315107186@189.cn 4 | 5 | 6 | ADD ./target/yuezhi-basic-monitor-1.0-SNAPSHOT.jar ./yuezhi-basic-monitor-1.0-SNAPSHOT.jar 7 | 8 | ENTRYPOINT ["java","-jar","yuezhi-basic-monitor-1.0-SNAPSHOT.jar"] 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-basic/yuezhi-basic-monitor/src/main/java/com/ruiyun/AdminServerApplication.java: -------------------------------------------------------------------------------- 1 | package com.ruiyun; 2 | 3 | import de.codecentric.boot.admin.server.config.EnableAdminServer; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 7 | 8 | @EnableAdminServer 9 | @SpringBootApplication 10 | @EnableDiscoveryClient 11 | public class AdminServerApplication { 12 | public static void main(String[] args) { 13 | SpringApplication.run(AdminServerApplication.class, args); 14 | } 15 | } -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-basic/yuezhi-basic-monitor/src/main/resources/bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | profiles: 3 | active: dev 4 | application: 5 | name: yuezhi-basic-monitor 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 123.56.129.198:8848 10 | # 配置中心 11 | config: 12 | # 地址 13 | server-addr: ${spring.cloud.nacos.discovery.server-addr} 14 | # 配置文件格式 15 | file-extension: yml 16 | sharedConfigs: 17 | - application-monitor-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} 18 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-core/src/main/java/com/ruiyun/yuezhi/core/util/Dialect.java: -------------------------------------------------------------------------------- 1 | package com.ruiyun.yuezhi.core.util; 2 | 3 | /** 4 | * Copyright © 2016 重庆锐云科技有限公司 All rights reserved 5 | * 6 | * 分页方言 7 | * @author HKCHEN 8 | * @version 1.0 9 | */ 10 | public abstract class Dialect { 11 | 12 | public abstract String getLimitString(String sql, int skipResults, int maxResults); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-service/yuezhi-service-business/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM java:8 2 | 3 | MAINTAINER 18315107186@189.cn 4 | 5 | #EXPOSE 8010 6 | 7 | ADD ./target/yuezhi-service-business-1.0-SNAPSHOT.jar ./yuezhi-service-business-1.0-SNAPSHOT.jar 8 | 9 | ENTRYPOINT ["java","-jar","yuezhi-service-business-1.0-SNAPSHOT.jar"] 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-service/yuezhi-service-business/src/main/java/com/ruiyun/ServiceBusinessApplication.java: -------------------------------------------------------------------------------- 1 | package com.ruiyun; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | /** 8 | * 描述: 业务服务启动类 9 | * 10 | * @author lijinhong 11 | * @date 21.1.28 12 | */ 13 | @SpringBootApplication 14 | @EnableDiscoveryClient 15 | public class ServiceBusinessApplication { 16 | public static void main(String[] args) { 17 | SpringApplication.run(ServiceBusinessApplication.class, args); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-service/yuezhi-service-business/src/main/java/com/ruiyun/service/IDiscoveryService.java: -------------------------------------------------------------------------------- 1 | package com.ruiyun.service; 2 | 3 | /** 4 | * 描述: 服务接口 5 | * 6 | * @author lijinhong 7 | * @date 2021年01月29日 08:36 8 | */ 9 | public interface IDiscoveryService { 10 | String echo(String str); 11 | } -------------------------------------------------------------------------------- /springboot-alibaba-yuezhi/yuezhi-view/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | springboot-alibaba-yuezhi 7 | com.ruiyun 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | yuezhi-view 13 | 14 | 15 | -------------------------------------------------------------------------------- /springboot-bean-life-demo/.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 | -------------------------------------------------------------------------------- /springboot-bean-life-demo/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot-bean-life-demo/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /springboot-bean-life-demo/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot-bean-life-demo/IOC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-bean-life-demo/IOC.png -------------------------------------------------------------------------------- /springboot-bean-life-demo/bean创建流程.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-bean-life-demo/bean创建流程.png -------------------------------------------------------------------------------- /springboot-bean-life-demo/bean销毁流程.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-bean-life-demo/bean销毁流程.png -------------------------------------------------------------------------------- /springboot-bean-life-demo/src/main/java/com/example/springbootbeanlifedemo/SpringbootBeanLifeDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootbeanlifedemo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | import javax.naming.Context; 7 | 8 | @SpringBootApplication 9 | public class SpringbootBeanLifeDemoApplication { 10 | 11 | public static void main(String[] args) throws InterruptedException { 12 | SpringApplication.run(SpringbootBeanLifeDemoApplication.class, args); 13 | 14 | } 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /springboot-bean-life-demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | -------------------------------------------------------------------------------- /springboot-diy-starter-demo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-diy-starter-demo/.DS_Store -------------------------------------------------------------------------------- /springboot-diy-starter-demo/img/image-20210512111734551.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-diy-starter-demo/img/image-20210512111734551.png -------------------------------------------------------------------------------- /springboot-diy-starter-demo/img/image-20210512113741124.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-diy-starter-demo/img/image-20210512113741124.png -------------------------------------------------------------------------------- /springboot-diy-starter-demo/img/image-20210512113803071.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-diy-starter-demo/img/image-20210512113803071.png -------------------------------------------------------------------------------- /springboot-diy-starter-demo/img/image-20210512113806279.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-diy-starter-demo/img/image-20210512113806279.png -------------------------------------------------------------------------------- /springboot-diy-starter-demo/img/image-20210512114113367.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-diy-starter-demo/img/image-20210512114113367.png -------------------------------------------------------------------------------- /springboot-diy-starter-demo/img/image-20210512114356355.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-diy-starter-demo/img/image-20210512114356355.png -------------------------------------------------------------------------------- /springboot-diy-starter-demo/注解方式/springboot-codeant-start-demo/my-starter-demo/src/main/resources/META-INF/spring.factories: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-diy-starter-demo/注解方式/springboot-codeant-start-demo/my-starter-demo/src/main/resources/META-INF/spring.factories -------------------------------------------------------------------------------- /springboot-diy-starter-demo/注解方式/springboot-codeant-start-demo/springboot-test-starter-demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | my: 2 | bean: 3 | name: codea_bean 4 | packageStr: com.example.mystarterdemo.bean 5 | 6 | -------------------------------------------------------------------------------- /springboot-diy-starter-demo/自动配置方式/springboot-codeant-start-demo/my-starter-demo/src/main/resources/META-INF/spring.factories: -------------------------------------------------------------------------------- 1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ 2 | com.example.mystarterdemo.config.MyBeanConfig -------------------------------------------------------------------------------- /springboot-diy-starter-demo/自动配置方式/springboot-codeant-start-demo/springboot-test-starter-demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | my: 2 | bean: 3 | name: codea_bean 4 | packageStr: com.example.mystarterdemo.bean 5 | 6 | -------------------------------------------------------------------------------- /springboot-es-demo/src/main/java/com/example/springbootesdemo/SpringbootEsDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootesdemo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootEsDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootEsDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-es-demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | elasticsearch: 3 | password: '' 4 | -------------------------------------------------------------------------------- /springboot-es-demo/src/test/java/com/example/springbootesdemo/SpringbootEsDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootesdemo; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootEsDemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-git-commit-id-demo/src/test/java/com/example/springbootgitcommitiddemo/SpringbootGitCommitIdDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootgitcommitiddemo; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootGitCommitIdDemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-hibernate-validation-demo/src/main/java/com/example/springboothibernatevalidationdemo/SpringbootHibernateValidationDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.springboothibernatevalidationdemo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootHibernateValidationDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootHibernateValidationDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-hibernate-validation-demo/src/main/java/com/example/springboothibernatevalidationdemo/dto/StudentDto.java: -------------------------------------------------------------------------------- 1 | package com.example.springboothibernatevalidationdemo.dto; 2 | 3 | import javax.validation.constraints.NotEmpty; 4 | import javax.validation.constraints.Null; 5 | import java.util.List; 6 | 7 | public class StudentDto { 8 | 9 | @Null 10 | @NotEmpty 11 | private String name; 12 | private Integer age; 13 | private String address; 14 | private List score; 15 | } 16 | -------------------------------------------------------------------------------- /springboot-hibernate-validation-demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-hibernate-validation-demo/src/test/java/com/example/springboothibernatevalidationdemo/SpringbootHibernateValidationDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.springboothibernatevalidationdemo; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootHibernateValidationDemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-jiezhang-setnx-demo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-jiezhang-setnx-demo/.DS_Store -------------------------------------------------------------------------------- /springboot-jiezhang-setnx-demo/README/image-20200807081912043.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-jiezhang-setnx-demo/README/image-20200807081912043.png -------------------------------------------------------------------------------- /springboot-jiezhang-setnx-demo/README/image-20200807081956092.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-jiezhang-setnx-demo/README/image-20200807081956092.png -------------------------------------------------------------------------------- /springboot-jiezhang-setnx-demo/README/image-20200807084026899.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-jiezhang-setnx-demo/README/image-20200807084026899.png -------------------------------------------------------------------------------- /springboot-jiezhang-setnx-demo/src/main/java/com/example/miaoshademo/SpringbootRedisDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.miaoshademo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootRedisDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootRedisDemoApplication.class, args); 11 | System.out.println("http://localhost:9090/jz/pay?id=1"); 12 | System.out.println("该示例能够正常加锁, 但解锁功能有问题, 无法解锁"); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /springboot-jiezhang-setnx-demo/src/main/java/com/example/miaoshademo/lock/anno/SyncAnnotation.java: -------------------------------------------------------------------------------- 1 | package com.example.miaoshademo.lock.anno; 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 | @Target(ElementType.METHOD) 9 | @Retention(RetentionPolicy.RUNTIME) 10 | public @interface SyncAnnotation { 11 | SyncEnum value(); 12 | } 13 | -------------------------------------------------------------------------------- /springboot-jiezhang-setnx-demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | 2 | spring: 3 | redis: 4 | host: 47.103.202.12 5 | port: 6379 6 | password: codeAnt.+AAredis 7 | # 连接超时时间(记得添加单位,Duration) 8 | timeout: 10000ms 9 | # Redis默认情况下有16个分片,这里配置具体使用的分片 10 | database: 10 11 | lettuce: 12 | pool: 13 | # 连接池最大连接数(使用负值表示没有限制) 默认 8 14 | max-active: 8 15 | # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1 16 | max-wait: -1ms 17 | # 连接池中的最大空闲连接 默认 8 18 | max-idle: 8 19 | # 连接池中的最小空闲连接 默认 0 20 | min-idle: 0 21 | 22 | server: 23 | servlet: 24 | context-path: /jz 25 | port: 9090 -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/6.8/executionHistory/executionHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/6.8/executionHistory/executionHistory.bin -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/6.8/executionHistory/executionHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/6.8/executionHistory/executionHistory.lock -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/6.8/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/6.8/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/6.8/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/6.8/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/6.8/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/6.8/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/6.8/gc.properties -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Wed May 18 11:31:18 CST 2022 2 | gradle.version=6.8 3 | -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/checksums/checksums.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/checksums/checksums.lock -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/checksums/md5-checksums.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/checksums/md5-checksums.bin -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/checksums/sha1-checksums.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/checksums/sha1-checksums.bin -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/configuration-cache/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/configuration-cache/gc.properties -------------------------------------------------------------------------------- /springboot-kafka-demo/.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/.gradle/vcs-1/gc.properties -------------------------------------------------------------------------------- /springboot-kafka-demo/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # 默认忽略的文件 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /springboot-kafka-demo/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot-kafka-demo/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 16 | 17 | -------------------------------------------------------------------------------- /springboot-kafka-demo/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /springboot-kafka-demo/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot-kafka-demo/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java' 3 | } 4 | 5 | group 'org.example' 6 | version '1.0-SNAPSHOT' 7 | 8 | repositories { 9 | maven {url 'https://maven.aliyun.com/nexus/content/groups/public/'} 10 | mavenCentral() 11 | } 12 | dependencies { 13 | implementation 'org.apache.kafka:kafka-clients:2.0.0' 14 | } 15 | 16 | test { 17 | useJUnitPlatform() 18 | } -------------------------------------------------------------------------------- /springboot-kafka-demo/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-kafka-demo/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /springboot-kafka-demo/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /springboot-kafka-demo/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'springboot-kafka-demo' 2 | 3 | -------------------------------------------------------------------------------- /springboot-miaosha-incr-demo/cmd.sh: -------------------------------------------------------------------------------- 1 | 2 | #开启tomcat 3 | java -jar ./springboot-miaosha-demo-0.0.1-SNAPSHOT.jar > ./tomcat_my_hot_list.log 2>&1 & 4 | 5 | # 测试常规的秒杀接口 6 | ab -n 4000 -c 2000 -T application/x-www-form-urlencoded -p ./data http://127.0.0.1:9090/ms/buy 7 | 8 | # 测试redis秒杀接口 9 | ab -n 4000 -c 2000 -T application/x-www-form-urlencoded -p ./data http://127.0.0.1:9090/ms/buy1 10 | 11 | -------------------------------------------------------------------------------- /springboot-miaosha-incr-demo/data: -------------------------------------------------------------------------------- 1 | key=1&num=1 2 | -------------------------------------------------------------------------------- /springboot-miaosha-incr-demo/src/main/java/com/example/miaoshademo/dao/CodeantProductDao.java: -------------------------------------------------------------------------------- 1 | package com.example.miaoshademo.dao; 2 | 3 | import com.example.miaoshademo.entity.CodeantProduct; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface CodeantProductDao { 9 | CodeantProduct selectByPrimaryKey(Integer id); 10 | 11 | int update(@Param("num") int num, @Param("key") int key); 12 | } -------------------------------------------------------------------------------- /springboot-miaosha-incr-demo/src/main/java/com/example/miaoshademo/dao/CodeantProductLogDao.java: -------------------------------------------------------------------------------- 1 | package com.example.miaoshademo.dao; 2 | 3 | import com.example.miaoshademo.entity.CodeantProductLog; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CodeantProductLogDao { 8 | int insert(CodeantProductLog record); 9 | 10 | CodeantProductLog selectByPrimaryKey(Integer id); 11 | } -------------------------------------------------------------------------------- /springboot-miaosha-incr-demo/秒杀流程图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-miaosha-incr-demo/秒杀流程图.jpg -------------------------------------------------------------------------------- /springboot-multi-datasource-demo/src/main/java/com/codeant/ocean/NoWarnMapper.java: -------------------------------------------------------------------------------- 1 | package com.codeant.ocean; 2 | 3 | import org.apache.ibatis.annotations.Mapper; 4 | 5 | /** 6 | * 用于去除 o.m.s.mapper.ClassPathMapperScanner 警告信息 7 | */ 8 | @Mapper 9 | public interface NoWarnMapper { 10 | } 11 | -------------------------------------------------------------------------------- /springboot-multi-datasource-demo/src/main/java/com/codeant/ocean/mapper/account/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.codeant.ocean.mapper.account; 2 | 3 | import org.apache.ibatis.annotations.Param; 4 | 5 | import java.time.LocalDateTime; 6 | 7 | public interface UserMapper { 8 | 9 | /** 10 | * 查看总用户数 11 | * 12 | * @param start start 13 | * @param end end 14 | * @return count 15 | */ 16 | Integer selectCountUser(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end); 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /springboot-multi-datasource-demo/src/main/java/com/codeant/ocean/mapper/iceberg/ItemOrderMapper.java: -------------------------------------------------------------------------------- 1 | package com.codeant.ocean.mapper.iceberg; 2 | 3 | import org.apache.ibatis.annotations.Param; 4 | 5 | import java.time.LocalDateTime; 6 | 7 | public interface ItemOrderMapper { 8 | 9 | /** 10 | * 权益购买数(包含兑换,领取,兑换) 11 | * 12 | * @param start start 13 | * @param end end 14 | * @return count 15 | */ 16 | Integer selectCountSuccessOrder(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /springboot-multi-datasource-demo/src/main/java/com/codeant/ocean/mapper/ocean/TotalMapper.java: -------------------------------------------------------------------------------- 1 | package com.codeant.ocean.mapper.ocean; 2 | 3 | import org.apache.ibatis.annotations.Param; 4 | 5 | import java.time.LocalDateTime; 6 | 7 | public interface TotalMapper { 8 | 9 | Integer selectAllCount(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-multi-datasource-demo/src/main/resources/mapper/account/account.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | -------------------------------------------------------------------------------- /springboot-multi-datasource-demo/src/main/resources/mapper/iceberg/item_order.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | -------------------------------------------------------------------------------- /springboot-multi-datasource-demo/src/main/resources/mapper/ocean/ocean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-package-optimize-demo/.DS_Store -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level0/package-optimize-app1/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level0/package-optimize-app2/src/main/java/com/entdiy/example/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.entdiy.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level0/package-optimize-app2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level0/package-optimize-app3/src/main/java/com/entdiy/example/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.entdiy.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level0/package-optimize-app3/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level1/package-optimize-app1/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level1/package-optimize-app2/src/main/java/com/entdiy/example/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.entdiy.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level1/package-optimize-app2/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot-package-optimize-demo/package-optimize-level1/package-optimize-app2/src/main/resources/application.properties -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level1/package-optimize-app3/src/main/java/com/entdiy/example/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.entdiy.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level1/package-optimize-app3/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level2/package-optimize-app1/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level2/package-optimize-app2/src/main/java/com/entdiy/example/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.entdiy.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level2/package-optimize-app2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level2/package-optimize-app3/src/main/java/com/entdiy/example/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.entdiy.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level2/package-optimize-app3/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level3/package-optimize-app1/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level3/package-optimize-app2/src/main/java/com/entdiy/example/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.entdiy.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level3/package-optimize-app2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level3/package-optimize-app3/src/main/java/com/entdiy/example/demo/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.entdiy.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-package-optimize-demo/package-optimize-level3/package-optimize-app3/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-pay-demo/src/main/java/com/example/springbootpaydemo/SpringbootPayDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootpaydemo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootPayDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootPayDemoApplication.class, args); 11 | System.out.println("访问支付接口:http://127.0.0.1:8080/aliyun/alipay"); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /springboot-pay-demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | servlet: 4 | context-path: /aliyun 5 | -------------------------------------------------------------------------------- /springboot-redis-demo/src/main/java/com/example/springbootredisdemo/SpringbootRedisDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootredisdemo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootRedisDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootRedisDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-redis-demo/src/test/java/com/example/springbootredisdemo/SpringbootRedisDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.springbootredisdemo; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootRedisDemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-sync-demo/HELP.md: -------------------------------------------------------------------------------- 1 | ## `springboot`异步任务(有返回值的) 2 | 3 | >本`demo`的业务是:`Controller.test()`方法调用`SyncService.testSync()`方法,在该方法中异步调用`jobService.hasReturnValue()`,同时`SyncService.testSync()`继续执行本身的业务逻辑,在`testSync`方法最后通过自旋的方式来判断异步调用是否完成,自旋方法里面有个阈值,自旋达到阈值后就退出阻塞状态 4 | 5 | ## 拓展 6 | [伪命题 - 多线程事务](https://segmentfault.com/a/1190000037770701) -------------------------------------------------------------------------------- /springboot-sync-demo/src/main/java/com/example/codeant/springbootsyncdemo/SpringbootSyncDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.codeant.springbootsyncdemo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.scheduling.annotation.EnableAsync; 6 | 7 | @EnableAsync 8 | @SpringBootApplication 9 | public class SpringbootSyncDemoApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SpringbootSyncDemoApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /springboot-sync-demo/src/main/java/com/example/codeant/springbootsyncdemo/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.example.codeant.springbootsyncdemo.entity; 2 | 3 | import lombok.*; 4 | 5 | /** 6 | * 描述: 7 | * 8 | * @author lijinhong 9 | * @date 20.12.22 10 | */ 11 | @Data 12 | @AllArgsConstructor 13 | @NoArgsConstructor 14 | @Setter 15 | @Getter 16 | @ToString 17 | public class User { 18 | private String name; 19 | private String age; 20 | private String sex; 21 | } 22 | -------------------------------------------------------------------------------- /springboot-sync-demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_cache_caffeine_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | cache: 3 | caffeine: 4 | spec: initialCapacity=50,maximumSize=500,expireAfterAccess=5s,expireAfterWrite=10s,refreshAfterWrite=5s 5 | 6 | 7 | # initialCapacity=[integer]: 初始的缓存空间大小 8 | # maximumSize=[long]: 缓存的最大条数 9 | # maximumWeight=[long]: 缓存的最大权重 10 | # expireAfterAccess=[duration]: 最后一次写入或访问后经过固定时间过期 11 | # expireAfterWrite=[duration]: 最后一次写入后经过固定时间过期 12 | # refreshAfterWrite=[duration]: 创建缓存或者最近一次更新缓存后经过固定的时间间隔,刷新缓存 13 | # weakKeys: 打开key的弱引用 14 | # weakValues:打开value的弱引用 15 | # softValues:打开value的软引用 16 | # recordStats:开发统计功能 -------------------------------------------------------------------------------- /springboot_cache_caffeine_demo/src/test/java/com/example/li/springboot_cache_caffeine_demo/SpringbootCacheCaffeineDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_cache_caffeine_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 SpringbootCacheCaffeineDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_cache_guava_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_cache_guava_demo/src/test/java/com/example/li/springboot_cache_guava_demo/SpringbootCacheGuavaDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_cache_guava_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 SpringbootCacheGuavaDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_cache_redis_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | redis: 3 | host: 47.103.20.12 4 | port: 6379 5 | password: 6 | # 连接超时时间(记得添加单位,Duration) 7 | timeout: 10000ms 8 | # Redis默认情况下有16个分片,这里配置具体使用的分片 9 | database: 1 10 | lettuce: 11 | pool: 12 | # 连接池最大连接数(使用负值表示没有限制) 默认 8 13 | max-active: 8 14 | # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1 15 | max-wait: -1ms 16 | # 连接池中的最大空闲连接 默认 8 17 | max-idle: 8 18 | # 连接池中的最小空闲连接 默认 0 19 | min-idle: 0 20 | cache: 21 | # 一般来说是不用配置的,Spring Cache 会根据依赖的包自行装配 22 | type: redis 23 | logging: 24 | level: 25 | com.xkcoding: debug -------------------------------------------------------------------------------- /springboot_crawler_demo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_crawler_demo/.DS_Store -------------------------------------------------------------------------------- /springboot_crawler_demo/img/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_crawler_demo/img/0.jpg -------------------------------------------------------------------------------- /springboot_crawler_demo/img/00.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_crawler_demo/img/00.jpg -------------------------------------------------------------------------------- /springboot_crawler_demo/img/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_crawler_demo/img/1.jpg -------------------------------------------------------------------------------- /springboot_crawler_demo/src/main/java/com/example/li/springboot_crawler_demo/SpringbootCrawlerDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_crawler_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootCrawlerDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootCrawlerDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_crawler_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_crawler_demo/src/test/java/com/example/li/springboot_crawler_demo/SpringbootCrawlerDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_crawler_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 SpringbootCrawlerDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_docker_demo/.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 | -------------------------------------------------------------------------------- /springboot_docker_demo/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot_docker_demo/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /springboot_docker_demo/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot_docker_demo/src/main/java/com/example/li/springboot_docker_demo/HelloController.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_docker_demo; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.ResponseBody; 6 | 7 | /** 8 | * @author Li 9 | * @date 2019/5/20-21:54 10 | */ 11 | @Controller 12 | public class HelloController { 13 | 14 | @RequestMapping("/hello") 15 | @ResponseBody 16 | public String Hello(){ 17 | return "hello docker!"; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /springboot_docker_demo/src/main/java/com/example/li/springboot_docker_demo/SpringbootDockerDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_docker_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootDockerDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootDockerDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_docker_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_docker_demo/src/test/java/com/example/li/springboot_docker_demo/SpringbootDockerDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_docker_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 SpringbootDockerDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_dubbo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_dubbo/.DS_Store -------------------------------------------------------------------------------- /springboot_dubbo/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot_dubbo/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot_dubbo/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /springboot_dubbo/.idea/springboot_dubbo.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /springboot_dubbo/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_0_interface_demo/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_0_interface_demo/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.example.li 8 | springboot_dubbo_0_interface_demo 9 | 1.0-SNAPSHOT 10 | 11 | 12 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_0_interface_demo/src/main/java/com/example/li/springboot_dubbo_0_interface_demo/service/OrderService.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_dubbo_0_interface_demo.service; 2 | 3 | 4 | import com.example.li.springboot_dubbo_0_interface_demo.bean.UserAddress; 5 | 6 | import java.util.List; 7 | 8 | public interface OrderService { 9 | 10 | /** 11 | * 初始化订单 12 | * @param userId 13 | */ 14 | public List initOrder(String userId); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_0_interface_demo/src/main/java/com/example/li/springboot_dubbo_0_interface_demo/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_dubbo_0_interface_demo.service; 2 | 3 | import com.example.li.springboot_dubbo_0_interface_demo.bean.UserAddress; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * 用户服务 9 | * @author lfy 10 | * 11 | */ 12 | public interface UserService { 13 | 14 | /** 15 | * 按照用户id返回所有的收货地址 16 | * @param userId 17 | * @return 18 | */ 19 | public List getUserAddressList(String userId); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_1_userservice_provider_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 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_1_userservice_provider_demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_dubbo/springboot_dubbo_1_userservice_provider_demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_1_userservice_provider_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 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_1_userservice_provider_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_1_userservice_provider_demo/src/test/java/com/example/li/springboot_dubbo_1_userservice_provider_demo/SpringbootDubbo1UserserviceProviderDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_dubbo_1_userservice_provider_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 SpringbootDubbo1UserserviceProviderDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_2_orderservice_consumer_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 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_2_orderservice_consumer_demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_dubbo/springboot_dubbo_2_orderservice_consumer_demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_2_orderservice_consumer_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 | -------------------------------------------------------------------------------- /springboot_dubbo/springboot_dubbo_2_orderservice_consumer_demo/src/test/java/com/example/li/springboot_dubbo_2_orderservice_consumer_demo/SpringbootDubbo2OrderserviceConsumerDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_dubbo_2_orderservice_consumer_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 SpringbootDubbo2OrderserviceConsumerDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_fastdfs_demo/src/main/java/com/example/li/springboot_fastdfs_demo/SpringbootFastdfsDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_fastdfs_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootFastdfsDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootFastdfsDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_fastdfs_demo/src/main/java/com/example/li/springboot_fastdfs_demo/controller/PageController.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_fastdfs_demo.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | /** 7 | * @author LJH 8 | * @date 2019/7/25-17:06 9 | * @QQ 1755497577 10 | */ 11 | @Controller 12 | public class PageController { 13 | 14 | @RequestMapping("/fileupload.html") 15 | public String fileupload(){ 16 | return "fileupload"; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /springboot_fastdfs_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | # multipart.maxFileSize=10Mb是设置单个文件的大小, multipart.maxRequestSize=100Mb是设置单次请求的文件的总大小 2 | # 3 | #如果是想要不限制文件上传的大小,那么就把两个值都设置为-1就行啦 4 | spring.servlet.multipart.max-file-size: 10MB 5 | spring.servlet.multipart.max-request-size: 100MB -------------------------------------------------------------------------------- /springboot_fastdfs_demo/src/main/resources/fdfs_client.conf: -------------------------------------------------------------------------------- 1 | #连接tracker服务器超时时长 2 | connect_timeout = 2 3 | #socket连接超时时长 4 | network_timeout = 30 5 | #文件内容编码 6 | charset = UTF-8 7 | #tracker服务器端口 8 | http.tracker_http_port = 8080 9 | #http.anti_steal_token = no 10 | http.anti_steal.check_token=true 11 | http.secret_key = FastDFS1234567890 12 | #tracker服务器IP和端口(可以写多个) 13 | tracker_server = 192.168.26.101:22122 14 | -------------------------------------------------------------------------------- /springboot_fastdfs_demo/src/main/resources/templates/fileupload.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 文件上传 4 | 5 | 6 | 7 | 8 | 9 | 10 |

上传文件

11 |
12 | 13 | 14 | 15 |
16 | 17 |

删除文件

18 |
19 | 组名: 20 | ID: 21 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /springboot_fastdfs_demo/src/test/java/com/example/li/springboot_fastdfs_demo/SpringbootFastdfsDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_fastdfs_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 SpringbootFastdfsDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_filter_interceptor_demo/src/main/java/com/example/li/springboot_filter_interceptor_demo/SpringbootFilterInterceptorDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_filter_interceptor_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootFilterInterceptorDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootFilterInterceptorDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_filter_interceptor_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_filter_interceptor_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | servlet: 4 | context-path: /springboot_filter_interceptor_demo -------------------------------------------------------------------------------- /springboot_filter_interceptor_demo/src/main/resources/templates/errorpage/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 错误提示 6 | 7 | 8 |

您已经被列入黑名单中,请及时和管理员联系,接触黑名单限制

9 | 10 | -------------------------------------------------------------------------------- /springboot_filter_interceptor_demo/src/main/resources/templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | Hello World 10 | 11 | 12 |

Hello World

13 | 14 | -------------------------------------------------------------------------------- /springboot_filter_interceptor_demo/src/test/java/com/example/li/springboot_filter_interceptor_demo/SpringbootFilterInterceptorDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_filter_interceptor_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 SpringbootFilterInterceptorDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_idempotence_demo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_idempotence_demo/.DS_Store -------------------------------------------------------------------------------- /springboot_idempotence_demo/README.md: -------------------------------------------------------------------------------- 1 | ## 幂等性 2 | 幂等性的具体含义自行百度,这里的demo采用的是token机制实现幂等性。流程图如下: 3 | 4 | ![image-20210111145616963](img/image-20210111145616963.png) 5 | 6 | -------------------------------------------------------------------------------- /springboot_idempotence_demo/img/image-20210111145616963.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_idempotence_demo/img/image-20210111145616963.png -------------------------------------------------------------------------------- /springboot_idempotence_demo/src/main/java/com/example/springboot_idempotence_demo/Application.java: -------------------------------------------------------------------------------- 1 | package com.example.springboot_idempotence_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_idempotence_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_idempotence_demo/src/main/resources/application.yml -------------------------------------------------------------------------------- /springboot_jjwt_demo/src/main/java/com/example/li/springboot_jjwt_demo/SpringbootJjwtDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_jjwt_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootJjwtDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootJjwtDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_jjwt_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_jjwt_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_jjwt_demo/src/main/resources/application.yml -------------------------------------------------------------------------------- /springboot_jjwt_demo/src/test/java/com/example/li/springboot_jjwt_demo/SpringbootJjwtDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_jjwt_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 SpringbootJjwtDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_junit_demo/README.md: -------------------------------------------------------------------------------- 1 | 安装配置junit插件:https://blog.csdn.net/qq_26115733/article/details/70340243 2 | 3 | org.junit.Assert.* 判断工具类,里面全是静态方法 4 | 5 | junit测试ssm:https://www.cnblogs.com/libin6505/p/8383837.html 6 | junit测试springboot:https://blog.csdn.net/bobo_12138/article/details/77609109 -------------------------------------------------------------------------------- /springboot_junit_demo/src/main/java/com/example/li/springboot_junit_demo/SpringbootJunitDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_junit_demo; 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.example.li.springboot_junit_demo.dao.base")//将项目中对应的mapper类的路径加进来就可以了 9 | public class SpringbootJunitDemoApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SpringbootJunitDemoApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /springboot_junit_demo/src/main/java/com/example/li/springboot_junit_demo/service/IUserService.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_junit_demo.service; 2 | 3 | 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | public interface IUserService { 8 | 9 | public List> login(String user_id, String user_password); 10 | 11 | public Map register(String user_id, String user_password); 12 | 13 | public Map updateUser(Map properties); 14 | 15 | public Map getUserById(String user_id); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /springboot_junit_demo/src/test/java/com/example/li/springboot_junit_demo/SpringbootJunitDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_junit_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 SpringbootJunitDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_junit_demo/src/test/java/com/example/li/springboot_junit_demo/service/Impl/UserServiceImplTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_junit_demo/src/test/java/com/example/li/springboot_junit_demo/service/Impl/UserServiceImplTest.java -------------------------------------------------------------------------------- /springboot_justauth_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8443 2 | 3 | spring.thymeleaf.cache=false 4 | 5 | # spring.devtools 6 | spring.devtools.restart.additional-paths=src/main/java 7 | spring.devtools.restart.exclude=static/**,public/** 8 | -------------------------------------------------------------------------------- /springboot_justauth_demo/src/main/resources/logback-spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %d{yyyy-MM-dd HH:mm:ss} [%class:%line] %-5level - %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /springboot_justauth_demo/src/test/java/com/example/li/springboot_justauth_demo/SpringbootJustauthDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_justauth_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 SpringbootJustauthDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_logging_demo/src/main/java/com/example/li/springboot_logging_demo/SpringbootLoggingDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_logging_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootLoggingDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootLoggingDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_logging_demo/src/test/java/com/example/li/springboot_logging_demo/SpringbootLoggingDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_logging_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 SpringbootLoggingDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_mail_demo/src/main/java/com/example/li/springboot_mail_demo/Application.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_mail_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_mail_demo/src/main/java/com/example/li/springboot_mail_demo/service/MailService.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_mail_demo.service; 2 | 3 | /** 4 | * 描述: 邮件服务接口类 5 | * 6 | * @author LJH-1755497577 2019/8/24 21:39 7 | */ 8 | public interface MailService { 9 | /** 10 | * 描述: 发送邮件 11 | * 12 | * @author LJH-1755497577 2019/8/24 21:40 13 | * @param to 发送给谁 14 | * @param subject 标题 15 | * @param content 内容 16 | * @return void 17 | */ 18 | void sendSimpleMail(String to, String subject, String content); 19 | } 20 | -------------------------------------------------------------------------------- /springboot_mail_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # 163\u90AE\u7BB1\u5F00\u901Asmtp\u670D\u52A1\uFF1Ahttps://jingyan.baidu.com/article/c275f6ba33a95de33d7567d9.html 3 | spring.mail.host=smtp.163.com 4 | spring.mail.username=yang13260906172@163.com 5 | spring.mail.password=yang13260906172 6 | spring.mail.default-encoding=UTF-8 7 | 8 | mail.fromMail.addr=yang13260906172@163.com -------------------------------------------------------------------------------- /springboot_mail_demo/src/test/java/com/example/li/springboot_mail_demo/SpringbootMailDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_mail_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 SpringbootMailDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_modle_demo/README.md: -------------------------------------------------------------------------------- 1 | **Model、ModelMap、ModelAndView的简单用法** 2 | **Ajax局部刷新** 3 | 4 | -------------------------------------------------------------------------------- /springboot_modle_demo/src/main/java/com/example/li/springboot_modle_demo/SpringbootModleDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_modle_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootModleDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootModleDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_modle_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_modle_demo/src/main/resources/templates/insert1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Title 6 | 7 | 8 |

这是插入的html片段

9 |

10 | 11 | -------------------------------------------------------------------------------- /springboot_modle_demo/src/test/java/com/example/li/springboot_modle_demo/SpringbootModleDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_modle_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 SpringbootModleDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_mybatis_demo/src/main/java/com/example/li/springboot_mybatis_demo/service/IUserService.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_mybatis_demo.service; 2 | 3 | 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | public interface IUserService { 8 | 9 | public List> login(String user_id, String user_password); 10 | 11 | public Map register(String user_id, String user_password); 12 | 13 | public Map updateUser(Map properties); 14 | 15 | public Map getUserById(String user_id); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /springboot_mybatis_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_mybatis_demo/src/test/java/com/example/li/springboot_mybatis_demo/SpringbootMybatisDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_mybatis_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 SpringbootMybatisDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_mybatis_shiro_demo/src/main/java/com/example/li/springboot_mybatis_shiro_demo/redis/MybatisRedisCacheTransfer.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_mybatis_shiro_demo.redis; 2 | 3 | 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.data.redis.core.RedisTemplate; 6 | import org.springframework.stereotype.Component; 7 | 8 | @Component 9 | public class MybatisRedisCacheTransfer { 10 | 11 | @Autowired 12 | public void setRedisTemplate(RedisTemplate redisTemplate) { 13 | MybatisRedisCache.setRedisTemplate(redisTemplate); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_mybatis_shiro_demo/src/main/java/com/example/li/springboot_mybatis_shiro_demo/service/IUserService.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_mybatis_shiro_demo.service; 2 | 3 | import java.util.Map; 4 | 5 | /** 6 | * @author Li 7 | * @date 2018/10/23-11:59 8 | */ 9 | public interface IUserService { 10 | 11 | Map add(Map properties); 12 | 13 | Map getById(String user_id); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /springboot_mybatis_shiro_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_mybatis_shiro_demo/src/test/java/com/example/li/springboot_mybatis_shiro_demo/SpringbootMybatisShiroDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_mybatis_shiro_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 SpringbootMybatisShiroDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_neo4j_example-master/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_neo4j_example-master/.DS_Store -------------------------------------------------------------------------------- /springboot_neo4j_example-master/img/sdn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_neo4j_example-master/img/sdn.png -------------------------------------------------------------------------------- /springboot_neo4j_example-master/src/main/java/org/neo4jdemo/Neo4jDemoApplication.java: -------------------------------------------------------------------------------- 1 | package org.neo4jdemo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Neo4jDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Neo4jDemoApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot_neo4j_example-master/src/main/java/org/neo4jdemo/model/result/PersonMovie.java: -------------------------------------------------------------------------------- 1 | package org.neo4jdemo.model.result; 2 | 3 | import lombok.Getter; 4 | import lombok.NoArgsConstructor; 5 | import lombok.Setter; 6 | import org.neo4jdemo.model.node.Movie; 7 | import org.neo4jdemo.model.node.Person; 8 | import org.springframework.data.neo4j.annotation.QueryResult; 9 | 10 | import java.util.Set; 11 | 12 | @Getter 13 | @Setter 14 | @NoArgsConstructor 15 | @QueryResult 16 | public class PersonMovie { 17 | private Person person; 18 | 19 | private Set movies; 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /springboot_neo4j_example-master/src/main/java/org/neo4jdemo/repository/MovieRepository.java: -------------------------------------------------------------------------------- 1 | package org.neo4jdemo.repository; 2 | 3 | import org.neo4jdemo.model.node.Movie; 4 | import org.springframework.data.neo4j.repository.Neo4jRepository; 5 | 6 | 7 | /** 8 | * 描述:Movie的dao层,继承Neo4jRepository,就自带crud 9 | * 10 | * @author LJH 11 | * @date 2019/11/14-14:37 12 | * @QQ 1755497577 13 | */ 14 | public interface MovieRepository extends Neo4jRepository { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_neo4j_example-master/src/main/java/org/neo4jdemo/service/MovieService.java: -------------------------------------------------------------------------------- 1 | package org.neo4jdemo.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | /** 6 | * 描述:Movie服务类 7 | * 8 | * @author LJH 9 | * @date 2019/11/14-14:54 10 | * @QQ 1755497577 11 | */ 12 | @Service 13 | public class MovieService { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /springboot_neo4j_example-master/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # \u914D\u7F6E\u94FE\u63A5neo4j\uFF0C\u8FD9\u91CC\u4F7F\u7528\u7684\u662Fbolt\u9A71\u52A8 2 | spring.data.neo4j.username=neo4j 3 | spring.data.neo4j.password=codeant 4 | #spring.data.neo4j.uri=bolt://116.62.48.220:7687 5 | spring.data.neo4j.uri=bolt://127.0.0.1:7687 6 | -------------------------------------------------------------------------------- /springboot_poi_demo/README.md: -------------------------------------------------------------------------------- 1 | 最简单的poi操作 2 | - 导出(可导出本地图片/网络图片 + 内容) 3 | - 导入(例子中给出的是将图片能够上传至fastdfs的思路,如果不需要上传至fastdfs,则将MyExcelImportService.java删除,并将ExcelUtils中的new MyExcelImportService(),更换为new ExcelImportService()) 4 | 5 | 简单讲一下导入,easypoi只有两种保存图片方式:一种保存到服务器目录下,一种保存到数据库,这也对应了@Excel里面的注释描述; 6 | 如需要将文件上传至文件服务器? 7 | 解决方法:自己重写ExcelImportService.java(实际上是重写他的saveImage里面保存图片的方法)。 8 | 然后直接使用这个自定义的ExcelImportService进行导入,不能在使用之前easypoi提供的导入入口。 -------------------------------------------------------------------------------- /springboot_poi_demo/src/main/java/com/example/li/springboot_poi_demo/Application.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_poi_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_poi_demo/src/main/resources/static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 文件上传 4 | 5 | 6 | 7 | 8 | 9 |

下载文件

10 | 下载1 11 | 12 |

上传文件

13 |
14 | 15 | 16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /springboot_poi_demo/src/main/resources/static/user1-128x128.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_poi_demo/src/main/resources/static/user1-128x128.jpg -------------------------------------------------------------------------------- /springboot_poi_demo/src/test/java/com/example/li/springboot_poi_demo/SpringbootPoiDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_poi_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 SpringbootPoiDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_poi_demo_v2/README.md: -------------------------------------------------------------------------------- 1 | 本例子实现了excel的简单导出入、excel的不定对象导出入、excel大数据量的导出入 -------------------------------------------------------------------------------- /springboot_poi_demo_v2/src/main/java/com/example/li/springboot_poi_demo_v2/Application.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_poi_demo_v2; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_poi_demo_v2/src/main/java/com/example/li/springboot_poi_demo_v2/controller/importExcel/MapExcelImportController.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_poi_demo_v2.controller.importExcel; 2 | 3 | 4 | import org.springframework.stereotype.Controller; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | 7 | /** 8 | * @author LJH 9 | * @date 2019/8/2-23:10 10 | * @QQ 1755497577 11 | */ 12 | @Controller 13 | @RequestMapping("/MapExcelImportController") 14 | public class MapExcelImportController { 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /springboot_poi_demo_v2/src/main/java/com/example/li/springboot_poi_demo_v2/service/IDogService.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_poi_demo_v2.service; 2 | 3 | import com.example.li.springboot_poi_demo_v2.pojo.Dog; 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | /** 9 | * @author LJH 10 | * @date 2019/8/2-18:59 11 | * @QQ 1755497577 12 | */ 13 | public interface IDogService { 14 | 15 | List getDogsList(); 16 | 17 | List> getDogsListMap(); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /springboot_poi_demo_v2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_poi_demo_v2/src/test/java/com/example/li/springboot_poi_demo_v2/SpringbootPoiDemoV2ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_poi_demo_v2; 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 SpringbootPoiDemoV2ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_poi_demo_v3/README.md: -------------------------------------------------------------------------------- 1 | easypoi模板导出--未完成 -------------------------------------------------------------------------------- /springboot_poi_demo_v3/src/main/java/com/example/li/springboot_poi_demo_v3/SpringbootPoiDemoV3Application.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_poi_demo_v3; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootPoiDemoV3Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootPoiDemoV3Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_poi_demo_v3/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_poi_demo_v3/src/test/java/com/example/li/springboot_poi_demo_v3/SpringbootPoiDemoV3ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_poi_demo_v3; 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 SpringbootPoiDemoV3ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/image-20200612094704997.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_poi_excel-operate-demo/image-20200612094704997.png -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/image-20200612095157230.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_poi_excel-operate-demo/image-20200612095157230.png -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/image-20200612110823803.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_poi_excel-operate-demo/image-20200612110823803.png -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/image-20200612111220292.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_poi_excel-operate-demo/image-20200612111220292.png -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/image-20200612112222420.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_poi_excel-operate-demo/image-20200612112222420.png -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/src/main/java/com/example/exceloperatedemo/ExcelOperateDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.exceloperatedemo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ExcelOperateDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ExcelOperateDemoApplication.class, args); 11 | System.out.println("导出 : http://localhost:8082/codeAntExcel/export"); 12 | System.out.println("导入 : http://localhost:8082/codeAntExcel/upload.html"); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server.port: 8082 2 | server.servlet.context-path: /codeAntExcel 3 | -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/src/main/resources/static/upload.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 上传导入 6 | 7 | 8 | 请选择项目路径下的resources/static/导入学生信息汇总表.xls 9 |
10 | 11 | 12 |
13 | 14 | -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/src/main/resources/static/xls/学生信息汇总表.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_poi_excel-operate-demo/src/main/resources/static/xls/学生信息汇总表.xls -------------------------------------------------------------------------------- /springboot_poi_excel-operate-demo/src/main/resources/static/xls/导入学生信息汇总表.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_poi_excel-operate-demo/src/main/resources/static/xls/导入学生信息汇总表.xls -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_client_demo/.DS_Store -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/assets/image-20190107103229408-6828349.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_client_demo/assets/image-20190107103229408-6828349.png -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/assets/image-20190107103258291-6828378.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_client_demo/assets/image-20190107103258291-6828378.png -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/assets/image-20190107103358744-6828438.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_client_demo/assets/image-20190107103358744-6828438.png -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/assets/image-20190107103429430-6828469.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_client_demo/assets/image-20190107103429430-6828469.png -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/assets/image-20190107103451240-6828491.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_client_demo/assets/image-20190107103451240-6828491.png -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/assets/image-20190107103509943-6828509.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_client_demo/assets/image-20190107103509943-6828509.png -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/src/main/java/com/example/li/springboot_rabbitmq_client_demo/SpringbootRabbitmqClientDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_rabbitmq_client_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootRabbitmqClientDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootRabbitmqClientDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_rabbitmq_client_demo/src/test/java/com/example/li/springboot_rabbitmq_client_demo/SpringbootRabbitmqClientDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_rabbitmq_client_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 SpringbootRabbitmqClientDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/.DS_Store -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/README.md: -------------------------------------------------------------------------------- 1 | ## 说明 2 | 3 | 阅读该部分的代码以及文章,必须了解的知识有: 4 | 5 | - 搭建安装好rabbitmq - server 6 | - rabbitmq 四种路由规则中的三种(direct、topic、fanout) -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/consumer-demo/src/main/java/com/consumer/consumerdemo/config/MyAMQPConfig.java: -------------------------------------------------------------------------------- 1 | package com.consumer.consumerdemo.config; 2 | 3 | import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter; 4 | import org.springframework.amqp.support.converter.MessageConverter; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.Configuration; 7 | 8 | @Configuration 9 | public class MyAMQPConfig { 10 | 11 | @Bean 12 | public MessageConverter messageConverter(){ 13 | return new Jackson2JsonMessageConverter(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/consumer-demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #spring.rabbitmq.host=118.24.44.169 2 | #spring.rabbitmq.username=guest 3 | #spring.rabbitmq.password=guest 4 | ##spring.rabbitmq.virtual-host= 5 | 6 | spring: 7 | rabbitmq: 8 | host: 116.62.48.220 9 | username: admin 10 | password: admin 11 | virtual-host: /java_mmr # \u659C\u6760\u5FC5\u987B\u8981\u5199 12 | port: 5672 13 | server: 14 | port: 8081 -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/consumer-demo/src/test/java/com/consumer/consumerdemo/ConsumerDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.consumer.consumerdemo; 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 ConsumerDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/bind - fanout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/bind - fanout.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/binds - direct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/binds - direct.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/create-exchanges.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/create-exchanges.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/create-queue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/create-queue.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/fanout - 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/fanout - 1.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/fanout - 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/fanout - 2.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/fanout - 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/fanout - 3.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/fanout - 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/fanout - 4.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/sendMsgD - 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/sendMsgD - 1.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/sendMsgD - 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/img/sendMsgD - 2.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/provider-demo/src/main/java/com/provider/providerdemo/config/MyAMQPConfig.java: -------------------------------------------------------------------------------- 1 | package com.provider.providerdemo.config; 2 | 3 | import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter; 4 | import org.springframework.amqp.support.converter.MessageConverter; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.Configuration; 7 | 8 | @Configuration 9 | public class MyAMQPConfig { 10 | 11 | @Bean 12 | public MessageConverter messageConverter(){ 13 | return new Jackson2JsonMessageConverter(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/provider-demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #spring.rabbitmq.host=118.24.44.169 2 | #spring.rabbitmq.username=guest 3 | #spring.rabbitmq.password=guest 4 | ##spring.rabbitmq.virtual-host= 5 | 6 | spring: 7 | rabbitmq: 8 | host: 116.62.48.220 9 | username: admin 10 | password: admin 11 | virtual-host: /java_mmr # 斜杠必须写上,该虚拟主机需要手动创建,在rabbit管理界面admin->virtual-host 12 | port: 5672 -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(单播、广播)/provider-demo/src/test/java/com/provider/providerdemo/ProviderDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.provider.providerdemo; 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 ProviderDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时消费/img/1延时消费.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时消费/img/1延时消费.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时消费/img/2延时消费实际流程图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时消费/img/2延时消费实际流程图.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时消费/springboot-rabbitmq-delay-message/src/main/java/com/codeant/spring_boot/rabbitmq/delay/queue/Application.java: -------------------------------------------------------------------------------- 1 | package com.codeant.spring_boot.rabbitmq.delay.queue; 2 | 3 | import org.springframework.amqp.rabbit.annotation.EnableRabbit; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | @EnableRabbit 8 | @SpringBootApplication 9 | public class Application { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(Application.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时消费/springboot-rabbitmq-delay-message/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #spring.rabbitmq.host=118.24.44.169 2 | #spring.rabbitmq.username=guest 3 | #spring.rabbitmq.password=guest 4 | ##spring.rabbitmq.virtual-host= 5 | 6 | spring: 7 | rabbitmq: 8 | host: 116.62.48.220 9 | username: admin 10 | password: admin 11 | virtual-host: /java_mmr # \u659C\u6760\u5FC5\u987B\u5199\u4E0A\uFF0C\u8BE5\u865A\u62DF\u4E3B\u673A\u9700\u8981\u624B\u52A8\u521B\u5EFA\uFF0C\u5728rabbit\u7BA1\u7406\u754C\u9762admin->virtual-host 12 | port: 5672 -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时消费/springboot-rabbitmq-delay-queue/src/main/java/com/codeant/spring_boot/rabbitmq/delay/queue/Application.java: -------------------------------------------------------------------------------- 1 | package com.codeant.spring_boot.rabbitmq.delay.queue; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时消费/springboot-rabbitmq-delay-queue/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #spring.rabbitmq.host=118.24.44.169 2 | #spring.rabbitmq.username=guest 3 | #spring.rabbitmq.password=guest 4 | ##spring.rabbitmq.virtual-host= 5 | 6 | spring: 7 | rabbitmq: 8 | host: 116.62.48.220 9 | username: admin 10 | password: admin 11 | virtual-host: /java_mmr # \u659C\u6760\u5FC5\u987B\u5199\u4E0A\uFF0C\u8BE5\u865A\u62DF\u4E3B\u673A\u9700\u8981\u624B\u52A8\u521B\u5EFA\uFF0C\u5728rabbit\u7BA1\u7406\u754C\u9762admin->virtual-host 12 | port: 5672 -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时重试/img/延时重试.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时重试/img/延时重试.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时重试/img/延时重试实际流程图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时重试/img/延时重试实际流程图.png -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时重试/springboot-rabbitmq-delay-message/src/main/java/com/codeant/spring_boot/rabbitmq/delay/queue/Application.java: -------------------------------------------------------------------------------- 1 | package com.codeant.spring_boot.rabbitmq.delay.queue; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时重试/springboot-rabbitmq-delay-message/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #spring.rabbitmq.host=118.24.44.169 2 | #spring.rabbitmq.username=guest 3 | #spring.rabbitmq.password=guest 4 | ##spring.rabbitmq.virtual-host= 5 | 6 | spring: 7 | rabbitmq: 8 | host: 116.62.48.220 9 | username: admin 10 | password: admin 11 | virtual-host: /java_mmr # \u659C\u6760\u5FC5\u987B\u5199\u4E0A\uFF0C\u8BE5\u865A\u62DF\u4E3B\u673A\u9700\u8981\u624B\u52A8\u521B\u5EFA\uFF0C\u5728rabbit\u7BA1\u7406\u754C\u9762admin->virtual-host 12 | port: 5672 -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时重试/springboot-rabbitmq-delay-queue/src/main/java/com/codeant/spring_boot/rabbitmq/delay/queue/Application.java: -------------------------------------------------------------------------------- 1 | package com.codeant.spring_boot.rabbitmq.delay.queue; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot_rabbitmq_demo/rabbitmq-demo(延时队列)/延时重试/springboot-rabbitmq-delay-queue/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #spring.rabbitmq.host=118.24.44.169 2 | #spring.rabbitmq.username=guest 3 | #spring.rabbitmq.password=guest 4 | ##spring.rabbitmq.virtual-host= 5 | 6 | spring: 7 | rabbitmq: 8 | host: 116.62.48.220 9 | username: admin 10 | password: admin 11 | virtual-host: /java_mmr # \u659C\u6760\u5FC5\u987B\u5199\u4E0A\uFF0C\u8BE5\u865A\u62DF\u4E3B\u673A\u9700\u8981\u624B\u52A8\u521B\u5EFA\uFF0C\u5728rabbit\u7BA1\u7406\u754C\u9762admin->virtual-host 12 | port: 5672 -------------------------------------------------------------------------------- /springboot_shiro_jwt_demo/src/main/java/com/example/li/springboot_shiro_jwt_demo/SpringbootShiroJwtDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_shiro_jwt_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootShiroJwtDemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootShiroJwtDemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot_shiro_jwt_demo/src/main/java/com/example/li/springboot_shiro_jwt_demo/exception/UnauthorizedException.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_shiro_jwt_demo.exception; 2 | 3 | public class UnauthorizedException extends RuntimeException { 4 | public UnauthorizedException(String msg) { 5 | super(msg); 6 | } 7 | 8 | public UnauthorizedException() { 9 | super(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /springboot_shiro_jwt_demo/src/main/java/com/example/li/springboot_shiro_jwt_demo/shiro/JWTToken.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_shiro_jwt_demo.shiro; 2 | 3 | import org.apache.shiro.authc.AuthenticationToken; 4 | 5 | public class JWTToken implements AuthenticationToken { 6 | 7 | // 密钥 8 | private String token; 9 | 10 | public JWTToken(String token) { 11 | this.token = token; 12 | } 13 | 14 | @Override 15 | public Object getPrincipal() { 16 | return token; 17 | } 18 | 19 | @Override 20 | public Object getCredentials() { 21 | return token; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /springboot_shiro_jwt_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_shiro_jwt_demo/src/test/java/com/example/li/springboot_shiro_jwt_demo/SpringbootShiroJwtDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_shiro_jwt_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 SpringbootShiroJwtDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_swagger_demo/src/main/java/com/example/li/springboot_swagger_demo/SpringbootSwaggerDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_swagger_demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.web.servlet.config.annotation.EnableWebMvc; 6 | 7 | @SpringBootApplication 8 | @EnableWebMvc//开启MVC 9 | public class SpringbootSwaggerDemoApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SpringbootSwaggerDemoApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /springboot_swagger_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_swagger_demo/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | #指定访问项目路径的项目名 4 | #SpringBoot版本 配置 5 | #1.x server.context-path=/demo 6 | #2.x server.servlet.context-path=/demo 7 | servlet.context-path: /swagger 8 | 9 | swagger: 10 | #项目标题 11 | title: SpringBoot学习 12 | #项目描述 13 | description: SpringBoot快速入门 14 | #版本 15 | version: 1.0.0 16 | #开发者名字 17 | name: codeAnt 18 | #开发者个人主页 19 | url: https://lijinhongpassion.github.io/ 20 | #开发者邮箱 21 | email: 1755497577@qq.com -------------------------------------------------------------------------------- /springboot_swagger_demo/src/test/java/com/example/li/springboot_swagger_demo/SpringbootSwaggerDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_swagger_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 SpringbootSwaggerDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_websocket_demo/src/main/java/com/example/li/springboot_websocket_demo/SpringbootWebsocketDemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_websocket_demo; 2 | 3 | 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | @SpringBootApplication 8 | public class SpringbootWebsocketDemoApplication { 9 | 10 | public static void main(String[] args) { 11 | SpringApplication.run(SpringbootWebsocketDemoApplication.class, args); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /springboot_websocket_demo/src/main/java/com/example/li/springboot_websocket_demo/entity/Greeting.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_websocket_demo.entity; 2 | 3 | /** 4 | * @author Li 5 | * @date 2019/5/17-13:20 6 | */ 7 | 8 | public class Greeting { 9 | 10 | private String content; 11 | 12 | public Greeting() { 13 | } 14 | 15 | public Greeting(String content) { 16 | this.content = content; 17 | } 18 | 19 | public String getContent() { 20 | return content; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /springboot_websocket_demo/src/main/java/com/example/li/springboot_websocket_demo/entity/HelloMessage.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_websocket_demo.entity; 2 | 3 | /** 4 | * @author Li 5 | * @date 2019/5/17-13:18 6 | */ 7 | 8 | public class HelloMessage { 9 | 10 | private String name; 11 | 12 | public HelloMessage() { 13 | } 14 | 15 | public HelloMessage(String name) { 16 | this.name = name; 17 | } 18 | 19 | public String getName() { 20 | return name; 21 | } 22 | 23 | public void setName(String name) { 24 | this.name = name; 25 | } 26 | } -------------------------------------------------------------------------------- /springboot_websocket_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_websocket_demo/src/test/java/com/example/li/springboot_websocket_demo/SpringbootWebsocketDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_websocket_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 SpringbootWebsocketDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot_websocket_demo/效果图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springboot_websocket_demo/效果图.png -------------------------------------------------------------------------------- /springboot_websocket_simplechat_demo/src/main/java/com/example/li/springboot_websocket_simplechat_demo/entity/Greeting.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_websocket_simplechat_demo.entity; 2 | 3 | /** 4 | * @author Li 5 | * @date 2019/5/17-13:20 6 | */ 7 | 8 | public class Greeting { 9 | 10 | private String content; 11 | 12 | public Greeting() { 13 | } 14 | 15 | public Greeting(String content) { 16 | this.content = content; 17 | } 18 | 19 | public String getContent() { 20 | return content; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /springboot_websocket_simplechat_demo/src/main/java/com/example/li/springboot_websocket_simplechat_demo/entity/HelloMessage.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_websocket_simplechat_demo.entity; 2 | 3 | /** 4 | * @author Li 5 | * @date 2019/5/17-13:18 6 | */ 7 | 8 | public class HelloMessage { 9 | 10 | private String name; 11 | 12 | public HelloMessage() { 13 | } 14 | 15 | public HelloMessage(String name) { 16 | this.name = name; 17 | } 18 | 19 | public String getName() { 20 | return name; 21 | } 22 | 23 | public void setName(String name) { 24 | this.name = name; 25 | } 26 | } -------------------------------------------------------------------------------- /springboot_websocket_simplechat_demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot_websocket_simplechat_demo/src/test/java/com/example/li/springboot_websocket_simplechat_demo/SpringbootWebsocketSimplechatDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.li.springboot_websocket_simplechat_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 SpringbootWebsocketSimplechatDemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springbt_security_jwt/src/main/java/cn/codesheep/springbt_security_jwt/SpringbtSecurityJwtApplication.java: -------------------------------------------------------------------------------- 1 | package cn.codesheep.springbt_security_jwt; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @author LJH 8 | * @date 2019/8/23-10:35 9 | * @QQ 1755497577 10 | */ 11 | @SpringBootApplication 12 | public class SpringbtSecurityJwtApplication { 13 | 14 | public static void main(String[] args) { 15 | SpringApplication.run(SpringbtSecurityJwtApplication.class, args); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /springbt_security_jwt/src/main/java/cn/codesheep/springbt_security_jwt/comm/Const.java: -------------------------------------------------------------------------------- 1 | package cn.codesheep.springbt_security_jwt.comm; 2 | 3 | /** 4 | * @author LJH 5 | * @date 2019/8/23-10:35 6 | * @QQ 1755497577 7 | */ 8 | public class Const { 9 | 10 | public static final long EXPIRATION_TIME = 432_000_000; // 5天(以毫秒ms计) 11 | public static final String SECRET = "CodeAntSecret"; // JWT密钥 12 | public static final String TOKEN_PREFIX = "Bearer"; // Token前缀 13 | public static final String HEADER_STRING = "authorization"; // 存放Token的Header Key 14 | } 15 | -------------------------------------------------------------------------------- /springbt_security_jwt/src/main/java/cn/codesheep/springbt_security_jwt/service/AuthService.java: -------------------------------------------------------------------------------- 1 | package cn.codesheep.springbt_security_jwt.service; 2 | 3 | import cn.codesheep.springbt_security_jwt.model.entity.User; 4 | 5 | /** 6 | * @author LJH 7 | * @date 2019/8/23-10:35 8 | * @QQ 1755497577 9 | */ 10 | public interface AuthService { 11 | 12 | User register( User userToAdd ); 13 | String login( String username, String password ); 14 | } 15 | -------------------------------------------------------------------------------- /springbt_security_jwt/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9991 2 | -------------------------------------------------------------------------------- /springbt_security_jwt/src/test/java/cn/codesheep/springbt_security_jwt/SpringbtSecurityJwtApplicationTests.java: -------------------------------------------------------------------------------- 1 | package cn.codesheep.springbt_security_jwt; 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 SpringbtSecurityJwtApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springbt_sso_jwt/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/springbt_sso_jwt/.DS_Store -------------------------------------------------------------------------------- /springbt_sso_jwt/codeant-client1/src/main/java/cn/codeant/Client1Application.java: -------------------------------------------------------------------------------- 1 | package cn.codeant; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Client1Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Client1Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springbt_sso_jwt/codeant-client1/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | auth-server: http://localhost:8085/uac 2 | server: 3 | port: 8086 4 | 5 | security: 6 | oauth2: 7 | client: 8 | client-id: ant1 9 | client-secret: 123456 10 | user-authorization-uri: ${auth-server}/oauth/authorize 11 | access-token-uri: ${auth-server}/oauth/token 12 | resource: 13 | jwt: 14 | key-uri: ${auth-server}/oauth/token_key -------------------------------------------------------------------------------- /springbt_sso_jwt/codeant-client2/src/main/java/cn/codeant/Client2Application.java: -------------------------------------------------------------------------------- 1 | package cn.codeant; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Client2Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Client2Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springbt_sso_jwt/codeant-server/src/main/java/cn/codeant/ServerApplication.java: -------------------------------------------------------------------------------- 1 | package cn.codeant; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; 6 | 7 | @SpringBootApplication(exclude={DataSourceAutoConfiguration.class}) 8 | public class ServerApplication { 9 | 10 | public static void main(String[] args) { 11 | SpringApplication.run(ServerApplication.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /springbt_sso_jwt/codeant-server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8085 3 | servlet: 4 | context-path: /uac 5 | -------------------------------------------------------------------------------- /springbt_sso_jwt/springbt_sso_jwt.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /sql/REMIAN.md: -------------------------------------------------------------------------------- 1 | # 说明 2 | 3 | 改数据库是所有例子使用的数据库 -------------------------------------------------------------------------------- /voice/jacob-1.18-x64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/voice/jacob-1.18-x64.dll -------------------------------------------------------------------------------- /vxzf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/vxzf.png -------------------------------------------------------------------------------- /wechat.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/wechat.gif -------------------------------------------------------------------------------- /wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiJinHongPassion/springboot/0fcdb001efd0cac3e20fbeb4d46e0d44825bdc98/wechat.png --------------------------------------------------------------------------------