diff --git a/day06/.idea/.gitignore b/day06/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/day06/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/day06/.idea/compiler.xml b/day06/.idea/compiler.xml deleted file mode 100644 index 9245515..0000000 --- a/day06/.idea/compiler.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/.idea/day06.iml b/day06/.idea/day06.iml deleted file mode 100644 index d6ebd48..0000000 --- a/day06/.idea/day06.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/day06/.idea/encodings.xml b/day06/.idea/encodings.xml deleted file mode 100644 index 0d8b505..0000000 --- a/day06/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/day06/.idea/jarRepositories.xml b/day06/.idea/jarRepositories.xml deleted file mode 100644 index e6b00eb..0000000 --- a/day06/.idea/jarRepositories.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/day06/.idea/misc.xml b/day06/.idea/misc.xml deleted file mode 100644 index 0c4aef1..0000000 --- a/day06/.idea/misc.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/.idea/modules.xml b/day06/.idea/modules.xml deleted file mode 100644 index 17a2e94..0000000 --- a/day06/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/day06/.idea/vcs.xml b/day06/.idea/vcs.xml deleted file mode 100644 index 6c0b863..0000000 --- a/day06/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/.gitignore b/day06/jvm-optimize/.idea/.gitignore deleted file mode 100644 index 73f69e0..0000000 --- a/day06/jvm-optimize/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml -# Editor-based HTTP Client requests -/httpRequests/ diff --git a/day06/jvm-optimize/.idea/compiler.xml b/day06/jvm-optimize/.idea/compiler.xml deleted file mode 100644 index d03d254..0000000 --- a/day06/jvm-optimize/.idea/compiler.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/dataSources.xml b/day06/jvm-optimize/.idea/dataSources.xml deleted file mode 100644 index d7937fb..0000000 --- a/day06/jvm-optimize/.idea/dataSources.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - mysql.8 - true - com.mysql.cj.jdbc.Driver - jdbc:mysql://localhost:3306/jvm_test - $ProjectFileDir$ - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/easyCodeTableSetting.xml b/day06/jvm-optimize/.idea/easyCodeTableSetting.xml deleted file mode 100644 index 1a45fcc..0000000 --- a/day06/jvm-optimize/.idea/easyCodeTableSetting.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/encodings.xml b/day06/jvm-optimize/.idea/encodings.xml deleted file mode 100644 index 63e9001..0000000 --- a/day06/jvm-optimize/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/inspectionProfiles/Project_Default.xml b/day06/jvm-optimize/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 6560a98..0000000 --- a/day06/jvm-optimize/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/jarRepositories.xml b/day06/jvm-optimize/.idea/jarRepositories.xml deleted file mode 100644 index a9c88c4..0000000 --- a/day06/jvm-optimize/.idea/jarRepositories.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_12.xml deleted file mode 100644 index 5756609..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_12.xml deleted file mode 100644 index 4e4a6dc..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__cn_hutool_hutool_all_5_8_16.xml b/day06/jvm-optimize/.idea/libraries/Maven__cn_hutool_hutool_all_5_8_16.xml deleted file mode 100644 index 619eecd..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__cn_hutool_hutool_all_5_8_16.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_3_3_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_3_3_2.xml deleted file mode 100644 index ddfeb75..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_3_3_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_core_3_3_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_core_3_3_2.xml deleted file mode 100644 index 1e3ee9a..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_core_3_3_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_support_3_3_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_support_3_3_2.xml deleted file mode 100644 index ebeab54..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_alibaba_easyexcel_support_3_3_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_13_5.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_13_5.xml deleted file mode 100644 index 26088bf..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_13_5.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_13_5.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_13_5.xml deleted file mode 100644 index fe70acf..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_13_5.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_13_5.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_13_5.xml deleted file mode 100644 index 1972d6b..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_13_5.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_13_5.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_13_5.xml deleted file mode 100644 index 7d20d35..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_13_5.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_13_5.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_13_5.xml deleted file mode 100644 index 59de5d2..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_13_5.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_13_5.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_13_5.xml deleted file mode 100644 index b948660..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_13_5.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_github_ben_manes_caffeine_caffeine_2_9_3.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_github_ben_manes_caffeine_caffeine_2_9_3.xml deleted file mode 100644 index 8dac95d..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_github_ben_manes_caffeine_caffeine_2_9_3.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_github_virtuald_curvesapi_1_06.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_github_virtuald_curvesapi_1_06.xml deleted file mode 100644 index d156c18..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_github_virtuald_curvesapi_1_06.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_10_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_10_0.xml deleted file mode 100644 index 21872ce..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_10_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml deleted file mode 100644 index d08a596..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_7_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_7_0.xml deleted file mode 100644 index 65ee6e6..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_7_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_rabbitmq_amqp_client_5_14_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_rabbitmq_amqp_client_5_14_2.xml deleted file mode 100644 index ca032ad..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_rabbitmq_amqp_client_5_14_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_sun_activation_jakarta_activation_1_2_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_sun_activation_jakarta_activation_1_2_2.xml deleted file mode 100644 index fea99f0..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_sun_activation_jakarta_activation_1_2_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_12.xml deleted file mode 100644 index 9f0fc05..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_3_0_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml deleted file mode 100644 index b8581a6..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_zaxxer_HikariCP_4_0_3.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_zaxxer_HikariCP_4_0_3.xml deleted file mode 100644 index 9314c36..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_zaxxer_HikariCP_4_0_3.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__com_zaxxer_SparseBitSet_1_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__com_zaxxer_SparseBitSet_1_2.xml deleted file mode 100644 index 6ce4aae..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__com_zaxxer_SparseBitSet_1_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__commons_codec_commons_codec_1_15.xml b/day06/jvm-optimize/.idea/libraries/Maven__commons_codec_commons_codec_1_15.xml deleted file mode 100644 index c88c2b7..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__commons_codec_commons_codec_1_15.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__commons_io_commons_io_2_11_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__commons_io_commons_io_2_11_0.xml deleted file mode 100644 index f94fc5a..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__commons_io_commons_io_2_11_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__io_micrometer_micrometer_core_1_9_11.xml b/day06/jvm-optimize/.idea/libraries/Maven__io_micrometer_micrometer_core_1_9_11.xml deleted file mode 100644 index aa825c9..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__io_micrometer_micrometer_core_1_9_11.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__io_micrometer_micrometer_registry_prometheus_1_9_11.xml b/day06/jvm-optimize/.idea/libraries/Maven__io_micrometer_micrometer_registry_prometheus_1_9_11.xml deleted file mode 100644 index b8bdfcb..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__io_micrometer_micrometer_registry_prometheus_1_9_11.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_0_15_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_0_15_0.xml deleted file mode 100644 index 4091481..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_0_15_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_common_0_15_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_common_0_15_0.xml deleted file mode 100644 index 81eb635..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_common_0_15_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_common_0_15_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_common_0_15_0.xml deleted file mode 100644 index f35a43c..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_common_0_15_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_otel_0_15_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_otel_0_15_0.xml deleted file mode 100644 index 3118b37..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_otel_0_15_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_otel_agent_0_15_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_otel_agent_0_15_0.xml deleted file mode 100644 index 416fd44..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__io_prometheus_simpleclient_tracer_otel_agent_0_15_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml deleted file mode 100644 index be90656..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml b/day06/jvm-optimize/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml deleted file mode 100644 index cba9dd2..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml b/day06/jvm-optimize/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml deleted file mode 100644 index 04213f7..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__javax_cache_cache_api_1_1_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__javax_cache_cache_api_1_1_1.xml deleted file mode 100644 index bb51cd8..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__javax_cache_cache_api_1_1_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml b/day06/jvm-optimize/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml deleted file mode 100644 index d0a05d1..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_12_23.xml b/day06/jvm-optimize/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_12_23.xml deleted file mode 100644 index 80961a6..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_12_23.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_12_23.xml b/day06/jvm-optimize/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_12_23.xml deleted file mode 100644 index 5df1219..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_12_23.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__net_minidev_accessors_smart_2_4_11.xml b/day06/jvm-optimize/.idea/libraries/Maven__net_minidev_accessors_smart_2_4_11.xml deleted file mode 100644 index e0b4d98..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__net_minidev_accessors_smart_2_4_11.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__net_minidev_json_smart_2_4_11.xml b/day06/jvm-optimize/.idea/libraries/Maven__net_minidev_json_smart_2_4_11.xml deleted file mode 100644 index 3e094f2..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__net_minidev_json_smart_2_4_11.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_collections4_4_4.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_collections4_4_4.xml deleted file mode 100644 index 5871c95..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_collections4_4_4.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_compress_1_19.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_compress_1_19.xml deleted file mode 100644 index 7c25fef..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_compress_1_19.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_csv_1_8.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_csv_1_8.xml deleted file mode 100644 index c88f83f..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_csv_1_8.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_12_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_12_0.xml deleted file mode 100644 index 28b8682..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_12_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_math3_3_6_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_math3_3_6_1.xml deleted file mode 100644 index ebfe0a8..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_commons_commons_math3_3_6_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_17_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_17_2.xml deleted file mode 100644 index 0a8d4ff..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_17_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_17_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_17_2.xml deleted file mode 100644 index a4f1650..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_17_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_4_1_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_4_1_2.xml deleted file mode 100644 index c706d5b..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_4_1_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_ooxml_4_1_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_ooxml_4_1_2.xml deleted file mode 100644 index 905ca0c..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_ooxml_4_1_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_4_1_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_4_1_2.xml deleted file mode 100644 index 93d965d..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_4_1_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_75.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_75.xml deleted file mode 100644 index d845667..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_75.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_75.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_75.xml deleted file mode 100644 index 793a442..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_75.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_75.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_75.xml deleted file mode 100644 index b8090b8..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_75.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_3_1_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_3_1_0.xml deleted file mode 100644 index 0695d4b..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_3_1_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_2.xml deleted file mode 100644 index 6ac1c42..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_assertj_assertj_core_3_22_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_assertj_assertj_core_3_22_0.xml deleted file mode 100644 index a084174..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_assertj_assertj_core_3_22_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_checkerframework_checker_qual_3_19_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_checkerframework_checker_qual_3_19_0.xml deleted file mode 100644 index ec11a25..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_checkerframework_checker_qual_3_19_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_ehcache_ehcache_3_10_8.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_ehcache_ehcache_3_10_8.xml deleted file mode 100644 index d004b4f..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_ehcache_ehcache_3_10_8.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_8.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_8.xml deleted file mode 100644 index e23be42..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_2_3_8.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_8.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_8.xml deleted file mode 100644 index 8789537..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_glassfish_jaxb_txw2_2_3_8.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_hamcrest_hamcrest_2_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_hamcrest_hamcrest_2_2.xml deleted file mode 100644 index 6b5496f..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_hamcrest_hamcrest_2_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml deleted file mode 100644 index 6908885..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_8_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_8_2.xml deleted file mode 100644 index 4f367e7..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_8_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_8_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_8_2.xml deleted file mode 100644 index 8e50783..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_8_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_8_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_8_2.xml deleted file mode 100644 index fc8291b..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_8_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_8_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_8_2.xml deleted file mode 100644 index 4b3ffb1..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_8_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_8_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_8_2.xml deleted file mode 100644 index 181d095..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_8_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_8_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_8_2.xml deleted file mode 100644 index 5f3aebe..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_8_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml deleted file mode 100644 index bf68169..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_mockito_mockito_core_4_5_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_mockito_mockito_core_4_5_1.xml deleted file mode 100644 index 68542c2..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_mockito_mockito_core_4_5_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_4_5_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_4_5_1.xml deleted file mode 100644 index 42f334f..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_4_5_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_mybatis_3_5_13.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_mybatis_3_5_13.xml deleted file mode 100644 index 120700f..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_mybatis_3_5_13.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_1_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_1_1.xml deleted file mode 100644 index 519b0a7..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_1_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_3_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_3_1.xml deleted file mode 100644 index 636121c..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_3_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_3_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_3_1.xml deleted file mode 100644 index fb5645f..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_3_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_objenesis_objenesis_3_2.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_objenesis_objenesis_3_2.xml deleted file mode 100644 index 6613def..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_objenesis_objenesis_3_2.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_openjdk_jol_jol_core_0_9.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_openjdk_jol_jol_core_0_9.xml deleted file mode 100644 index 366b137..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_openjdk_jol_jol_core_0_9.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml deleted file mode 100644 index fbc1b16..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_ow2_asm_asm_9_3.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_ow2_asm_asm_9_3.xml deleted file mode 100644 index ce5a26c..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_ow2_asm_asm_9_3.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_projectlombok_lombok_1_18_26.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_projectlombok_lombok_1_18_26.xml deleted file mode 100644 index 76fa15b..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_projectlombok_lombok_1_18_26.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_1.xml deleted file mode 100644 index 56582d6..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_36.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_36.xml deleted file mode 100644 index 5d5c14b..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_36.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_36.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_36.xml deleted file mode 100644 index 2d759c1..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_36.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_amqp_spring_amqp_2_4_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_amqp_spring_amqp_2_4_12.xml deleted file mode 100644 index 20e751b..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_amqp_spring_amqp_2_4_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_amqp_spring_rabbit_2_4_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_amqp_spring_rabbit_2_4_12.xml deleted file mode 100644 index a4e7151..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_amqp_spring_rabbit_2_4_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_7_12.xml deleted file mode 100644 index 5455c99..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_2_7_12.xml deleted file mode 100644 index 03979d2..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_7_12.xml deleted file mode 100644 index 5a78876..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_7_12.xml deleted file mode 100644 index f6fa6cb..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_7_12.xml deleted file mode 100644 index 8eeb289..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_actuator_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_actuator_2_7_12.xml deleted file mode 100644 index 075dd3f..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_actuator_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_amqp_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_amqp_2_7_12.xml deleted file mode 100644 index 55b237d..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_amqp_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_7_12.xml deleted file mode 100644 index 2e4e82b..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_7_12.xml deleted file mode 100644 index 1c3c154..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_7_12.xml deleted file mode 100644 index bf4e71a..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_7_12.xml deleted file mode 100644 index c0bab51..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_7_12.xml deleted file mode 100644 index b9e38ad..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_7_12.xml deleted file mode 100644 index 6c3b5af..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_7_12.xml deleted file mode 100644 index e2247e0..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_7_12.xml deleted file mode 100644 index af30708..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_7_12.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_7_12.xml deleted file mode 100644 index f7a571c..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_7_12.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_retry_spring_retry_1_3_4.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_retry_spring_retry_1_3_4.xml deleted file mode 100644 index d8f2003..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_retry_spring_retry_1_3_4.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_aop_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_aop_5_3_27.xml deleted file mode 100644 index b5179f7..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_aop_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_beans_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_beans_5_3_27.xml deleted file mode 100644 index 3699ce3..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_beans_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_context_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_context_5_3_27.xml deleted file mode 100644 index e28c5b5..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_context_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_core_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_core_5_3_27.xml deleted file mode 100644 index 0cfd4fe..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_core_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_expression_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_expression_5_3_27.xml deleted file mode 100644 index a6dd498..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_expression_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_27.xml deleted file mode 100644 index 0dc8d66..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_jcl_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_27.xml deleted file mode 100644 index d8c6d8d..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_jdbc_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_messaging_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_messaging_5_3_27.xml deleted file mode 100644 index 7bf47b9..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_messaging_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_test_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_test_5_3_27.xml deleted file mode 100644 index f4ff0f9..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_test_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_tx_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_tx_5_3_27.xml deleted file mode 100644 index 6944cd0..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_tx_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_web_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_web_5_3_27.xml deleted file mode 100644 index 515fe77..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_web_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_27.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_27.xml deleted file mode 100644 index 14e9d13..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_springframework_spring_webmvc_5_3_27.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_9_1.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_9_1.xml deleted file mode 100644 index e2f6d14..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_9_1.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/libraries/Maven__org_yaml_snakeyaml_1_30.xml b/day06/jvm-optimize/.idea/libraries/Maven__org_yaml_snakeyaml_1_30.xml deleted file mode 100644 index 7eda891..0000000 --- a/day06/jvm-optimize/.idea/libraries/Maven__org_yaml_snakeyaml_1_30.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/misc.xml b/day06/jvm-optimize/.idea/misc.xml deleted file mode 100644 index 5755a99..0000000 --- a/day06/jvm-optimize/.idea/misc.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/modules.xml b/day06/jvm-optimize/.idea/modules.xml deleted file mode 100644 index 84c7602..0000000 --- a/day06/jvm-optimize/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/runConfigurations.xml b/day06/jvm-optimize/.idea/runConfigurations.xml deleted file mode 100644 index 797acea..0000000 --- a/day06/jvm-optimize/.idea/runConfigurations.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/uiDesigner.xml b/day06/jvm-optimize/.idea/uiDesigner.xml deleted file mode 100644 index e96534f..0000000 --- a/day06/jvm-optimize/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/.idea/workspace_冲突文件_xiadong_20230615174726.xml b/day06/jvm-optimize/.idea/workspace_冲突文件_xiadong_20230615174726.xml deleted file mode 100644 index 0e65eb8..0000000 --- a/day06/jvm-optimize/.idea/workspace_冲突文件_xiadong_20230615174726.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1684890228284 - - - - - - \ No newline at end of file diff --git a/day06/jvm-optimize/pom.xml b/day06/jvm-optimize/pom.xml deleted file mode 100644 index 141ed48..0000000 --- a/day06/jvm-optimize/pom.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - 4.0.0 - - org.springframework.boot - spring-boot-starter-parent - 2.7.12 - - - com.woniu - jvm-optimize - 0.0.1-SNAPSHOT - jvm-optimize - jvm-optimize - - 8 - - - - org.springframework.boot - spring-boot-starter-web - - - - org.projectlombok - lombok - true - - - org.springframework.boot - spring-boot-starter-test - test - - - org.apache.commons - commons-lang3 - 3.12.0 - - - - - - - - org.springframework.boot - spring-boot-starter-actuator - - - - org.springframework.boot - spring-boot-starter-logging - - - - - - - - - - - - mysql - mysql-connector-java - 8.0.30 - - - - org.openjdk.jol - jol-core - 0.9 - - - - org.mybatis.spring.boot - mybatis-spring-boot-starter - 2.3.1 - - - - org.springframework.data - spring-data-commons - - - - org.apache.poi - poi - 4.1.2 - - - org.apache.poi - poi-ooxml - 4.1.2 - - - - cn.hutool - hutool-all - 5.8.16 - - - - - com.alibaba - easyexcel - 3.3.2 - - - - com.github.ben-manes.caffeine - caffeine - 2.9.3 - - - - - - - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - org.projectlombok - lombok - - - - - - - - - diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/JvmOptimizeApplication.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/JvmOptimizeApplication.java deleted file mode 100644 index 93f5e8d..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/JvmOptimizeApplication.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.woniu.jvmoptimize; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.ConfigurableApplicationContext; - -//-Xmx100m -Xms100m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:/jvm/heapdemo.hprof -@SpringBootApplication -public class JvmOptimizeApplication { - - public static void main(String[] args) { - ConfigurableApplicationContext run = SpringApplication.run(JvmOptimizeApplication.class, args); - } - -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/LeakController.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/LeakController.java deleted file mode 100644 index b9062f8..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/LeakController.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.woniu.jvmoptimize.controller; - -import com.woniu.jvmoptimize.entity.UserEntity; -import org.springframework.web.bind.annotation.*; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -@RestController -@RequestMapping("/leak") -public class LeakController { - private static Map userCache = new HashMap<>(); - private static List bigheap = new ArrayList<>(); - - /** - * 大量数据 + 处理慢 - */ - @GetMapping("/test") - public void test1() throws InterruptedException { - byte[] bytes = new byte[1024 * 1024 * 100];//100m - Thread.sleep(10 * 1000L); - } - - /** - * 登录接口 传递名字和id,放入hashmap中 - */ - @PostMapping("/login") - public void login(String name,Long id){ - userCache.put(id,new UserEntity(id,name)); - } - - - @GetMapping("/bigheap") - public void bigheap(){ - //3g - for (int i = 0; i < 1024; i++) { - bigheap.add(new byte[1024 * 1024 * 3]); - } - - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/OOMController.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/OOMController.java deleted file mode 100644 index 3d0bc24..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/OOMController.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.woniu.jvmoptimize.controller; - -import com.woniu.jvmoptimize.entity.UserEntity; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import javax.annotation.PostConstruct; -import java.util.HashMap; -import java.util.Map; - -@RestController -@RequestMapping("/user") -public class OOMController { - private static Map userCache = new HashMap<>(); - - @PostConstruct - public void init(){ - userCache.put(0L,new UserEntity(0L,"张三")); - } - - //根据id获取用户信息 - @GetMapping("/{id}") - public UserEntity user(@PathVariable("id") Long id){ - return userCache.get(id); - } - - //批量创建缓存 - @GetMapping("/createCache") - public void createCache() - { - for (long i = 0; i < 10000000L; i++) { - userCache.put(i,new UserEntity(i,String.valueOf(i))); - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/Student.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/Student.java deleted file mode 100644 index ac74343..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/Student.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.woniu.jvmoptimize.entity; - -import java.util.Objects; - -public class Student { - private int id; - private String name; - private int classId; - - public int getId() { - return id; - } - - public void setId(int id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public int getClassId() { - return classId; - } - - public void setClassId(int classId) { - this.classId = classId; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - Student student = (Student) o; - return id == student.id; - } - - @Override - public int hashCode() { - return Objects.hash(id); - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/UserEntity.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/UserEntity.java deleted file mode 100644 index ba3559a..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/UserEntity.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.woniu.jvmoptimize.entity; - -import lombok.AllArgsConstructor; -import lombok.Data; - -@Data -public class UserEntity { - private Long id; - private String name; - //每个对象增加1MB的额外内存,让溢出来的更快一些 - //private byte[] bytes = new byte[1024 * 1024]; - - public UserEntity(Long id, String name) { - this.id = id; - this.name = name; - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo1/Demo1.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo1/Demo1.java deleted file mode 100644 index 831e089..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo1/Demo1.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo1; - -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.net.URL; -import java.net.URLConnection; -import java.sql.*; - -//-Xmx50m -Xms50m -public class Demo1 { - - // JDBC driver name and database URL - static final String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver"; - static final String DB_URL = "jdbc:mysql:///bank1"; - - // Database credentials - static final String USER = "root"; - static final String PASS = "123456"; - - public static void leak() { - //Connection conn = null; - Statement stmt = null; - try (Connection conn = DriverManager.getConnection(DB_URL, USER, PASS)){ - - // executes a valid query - stmt = conn.createStatement(); - String sql; - sql = "SELECT id, account_name FROM account_info"; - ResultSet rs = stmt.executeQuery(sql); - - //STEP 4: Extract data from result set - while (rs.next()) { - //Retrieve by column name - int id = rs.getInt("id"); - String name = rs.getString("account_name"); - - //Display values - System.out.print("ID: " + id); - System.out.print(", Name: " + name + "\n"); - } - } catch(SQLException sqlEx) { - sqlEx.printStackTrace(); - } - } - - public static void main(String[] args) throws InterruptedException { - while(true){ - leak(); - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Demo0.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Demo0.java deleted file mode 100644 index fbe3d9f..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Demo0.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo2; - -public class Demo0 { - public static long count = 0; - public static void main(String[] args) throws InterruptedException { - while (true){ - Student student = new Student(); - student.setId(1); - student.setName("张三"); - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Demo2.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Demo2.java deleted file mode 100644 index 5f8146e..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Demo2.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo2; - -import java.util.HashMap; -import java.util.Map; - -public class Demo2 { - public static long count = 0; - public static Map map = new HashMap<>(); - public static void main(String[] args) throws InterruptedException { - while (true){ - if(count++ % 100 == 0){ - Thread.sleep(10); - } - Student student = new Student(); - student.setId(1); - student.setName("张三"); - map.put(student,1L); - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Student.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Student.java deleted file mode 100644 index e25fdaa..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo2/Student.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo2; - -import org.apache.commons.lang3.builder.EqualsBuilder; -import org.apache.commons.lang3.builder.HashCodeBuilder; - -public class Student { - private String name; - private Integer id; - private byte[] bytes = new byte[1024 * 1024]; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - Student student = (Student) o; - - return new EqualsBuilder().append(id, student.id).isEquals(); - } - - @Override - public int hashCode() { - return new HashCodeBuilder(17, 37).append(id).toHashCode(); - } -} - - diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo3/Outer.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo3/Outer.java deleted file mode 100644 index 143970b..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo3/Outer.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo3; - -import java.io.IOException; -import java.util.ArrayList; - -public class Outer{ - private byte[] bytes = new byte[1024 * 1024]; //外部类持有数据 - private static String name = "测试"; - static class Inner{ - private String name; - public Inner() { - this.name = Outer.name; - } - } - - public static void main(String[] args) throws IOException, InterruptedException { -// System.in.read(); - int count = 0; - ArrayList inners = new ArrayList<>(); - while (true){ - if(count++ % 100 == 0){ - Thread.sleep(10); - } - inners.add(new Inner()); - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo4/Outer.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo4/Outer.java deleted file mode 100644 index 5baa5dc..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo4/Outer.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo4; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -public class Outer { - private byte[] bytes = new byte[1024]; - public static List newList() { - List list = new ArrayList() {{ - add("1"); - add("2"); - }}; - return list; - } - - public static void main(String[] args) throws IOException { - System.in.read(); - int count = 0; - ArrayList objects = new ArrayList<>(); - while (true){ - System.out.println(++count); - objects.add(newList()); - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo5/Demo5.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo5/Demo5.java deleted file mode 100644 index 62a8c5d..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo5/Demo5.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo5; - -import java.util.concurrent.*; - -public class Demo5 { - public static ThreadLocal threadLocal = new ThreadLocal<>(); - - public static void main(String[] args) throws InterruptedException { - ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(Integer.MAX_VALUE, Integer.MAX_VALUE, - 0, TimeUnit.DAYS, new SynchronousQueue<>()); - int count = 0; - while (true) { - System.out.println(++count); - threadPoolExecutor.execute(() -> { - threadLocal.set(new byte[1024 * 1024]); - threadLocal.remove(); - }); - Thread.sleep(10); - } - - - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo5/Demo5_1.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo5/Demo5_1.java deleted file mode 100644 index 22f7a08..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo5/Demo5_1.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo5; - -import java.util.concurrent.SynchronousQueue; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; - -public class Demo5_1 { - public static ThreadLocal threadLocal = new ThreadLocal<>(); - - public static void main(String[] args) throws InterruptedException { - while (true) { - new Thread(() -> { - threadLocal.set(new byte[1024 * 1024 * 10]); - }).start(); - Thread.sleep(10); - } - - - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo6/Demo6.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo6/Demo6.java deleted file mode 100644 index cba30d5..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo6/Demo6.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo6; - -import org.apache.commons.lang3.RandomStringUtils; - -import java.util.ArrayList; -import java.util.List; - -public class Demo6 { - public static void main(String[] args) { - while (true){ - List list = new ArrayList(); - int i = 0; - while (true) { - //String.valueOf(i++).intern(); //JDK1.6 perm gen 不会溢出 - list.add(String.valueOf(i++).intern()); //溢出 - } - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo7/CaffineDemo.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo7/CaffineDemo.java deleted file mode 100644 index 173d35f..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo7/CaffineDemo.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo7; - -import com.github.benmanes.caffeine.cache.Cache; -import com.github.benmanes.caffeine.cache.Caffeine; - -import java.time.Duration; - -public class CaffineDemo { - public static void main(String[] args) throws InterruptedException { - Cache build = Caffeine.newBuilder() - .expireAfterWrite(Duration.ofMillis(100)) - .build(); - int count = 0; - while (true){ - build.put(count++,new byte[1024 * 1024 * 10]); - Thread.sleep(100L); - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo7/TestLazy.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo7/TestLazy.java deleted file mode 100644 index 05e8649..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/leakdemo/demo7/TestLazy.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.woniu.jvmoptimize.leakdemo.demo7; - -import org.springframework.context.annotation.Lazy; -import org.springframework.stereotype.Component; - -@Lazy //懒加载 -@Component -public class TestLazy { - private byte[] bytes = new byte[1024 * 1024 * 1024]; -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/HeapDemo.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/HeapDemo.java deleted file mode 100644 index 3859b3b..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/HeapDemo.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.woniu.jvmoptimize.matdemo; - -import java.util.ArrayList; -import java.util.List; - -//-XX:+HeapDumpBeforeFullGC -XX:HeapDumpPath=D:/jvm/dump/mattest.hprof -public class HeapDemo { - public static void main(String[] args) { - TestClass a1 = new TestClass(); - TestClass a2 = new TestClass(); - TestClass a3 = new TestClass(); - String s1 = "itheima1"; - String s2 = "itheima2"; - String s3 = "itheima3"; - - a1.list.add(s1); - - a2.list.add(s1); - a2.list.add(s2); - - a3.list.add(s3); - - //System.out.print(ClassLayout.parseClass(TestClass.class).toPrintable()); - s1 = null; - s2 = null; - s3 = null; - System.gc(); - } -} - -class TestClass { - public List list = new ArrayList<>(10); -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/HeapDemo2.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/HeapDemo2.java deleted file mode 100644 index c36c74f..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/HeapDemo2.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.woniu.jvmoptimize.matdemo; - -import java.util.ArrayList; -import java.util.List; - -//-XX:+HeapDumpBeforeFullGC -XX:HeapDumpPath=D:/jvm/heapdemo.hprof -public class HeapDemo2 { - public static void main(String[] args) { - TestClass2 a1 = new TestClass2(); - TestClass2 a2 = new TestClass2(); - TestClass2 a3 = new TestClass2(); - - byte[] bytes1 = new byte[1024 * 1024 * 10]; - byte[] bytes2 = new byte[1024 * 1024 * 10]; - byte[] bytes3 = new byte[1024 * 1024 * 10]; - - a1.list.add(bytes1); - - a2.list.add(bytes1); - a2.list.add(bytes2); - - a3.list.add(bytes3); - - //System.out.print(ClassLayout.parseClass(TestClass.class).toPrintable()); - bytes1 = null; - bytes2 = null; - bytes3 = null; - - System.gc(); - } -} - -class TestClass2 { - public List list = new ArrayList(10); -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/StringSize.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/StringSize.java deleted file mode 100644 index c9480fe..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/matdemo/StringSize.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.woniu.jvmoptimize.matdemo; - -import org.openjdk.jol.info.ClassLayout; - -public class StringSize { - public static void main(String[] args) { - //使用JOL打印String对象 - System.out.print(ClassLayout.parseClass(String.class).toPrintable()); - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/common/UserDataContextHolder.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/common/UserDataContextHolder.java deleted file mode 100644 index 1bceebf..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/common/UserDataContextHolder.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.common; - -public class UserDataContextHolder { - public static ThreadLocal userData = new ThreadLocal<>(); - - public static class UserData{ - byte[] data = new byte[1024 * 1024 * 10]; //模拟保存10m的用户数据 - } -} - diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/AsyncThreadPoolTaskConfig.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/AsyncThreadPoolTaskConfig.java deleted file mode 100644 index f0d27ae..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/AsyncThreadPoolTaskConfig.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.config; - -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.scheduling.annotation.EnableAsync; -import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; - -import java.util.concurrent.ThreadPoolExecutor; - -@Configuration -@EnableAsync -public class AsyncThreadPoolTaskConfig { - - private static final int corePoolSize = 50; // 核心线程数(默认线程数) - private static final int maxPoolSize = 100; // 最大线程数 - private static final int keepAliveTime = 10; // 允许线程空闲时间(单位:默认为秒) - private static final int queueCapacity = 200; // 缓冲队列数 - private static final String threadNamePrefix = "Async-Task-"; // 线程池名前缀 - - @Bean("asyncTaskExecutor") - public ThreadPoolTaskExecutor getAsyncExecutor(){ - ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); - executor.setCorePoolSize(corePoolSize); - //executor.setMaxPoolSize(Integer.MAX_VALUE); - executor.setMaxPoolSize(maxPoolSize); - executor.setQueueCapacity(queueCapacity); - executor.setKeepAliveSeconds(keepAliveTime); - executor.setThreadNamePrefix(threadNamePrefix); - // 线程池对拒绝任务的处理策略 - executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy()); - // 初始化 - executor.initialize(); - return executor; - } -} \ No newline at end of file diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/LoginConfig.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/LoginConfig.java deleted file mode 100644 index cd43fb3..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/LoginConfig.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.config; - -import org.springframework.context.annotation.Configuration; -import org.springframework.web.servlet.config.annotation.InterceptorRegistry; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -@Configuration -public class LoginConfig implements WebMvcConfigurer { - - @Override - public void addInterceptors(InterceptorRegistry registry) { - //注册拦截器 - registry.addInterceptor(new UserInterceptor()) - .addPathPatterns("/threadlocal/**"); - - } -} \ No newline at end of file diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/ThreadPoolTaskConfig.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/ThreadPoolTaskConfig.java deleted file mode 100644 index 9ed3398..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/ThreadPoolTaskConfig.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.config; - -import com.woniu.jvmoptimize.practice.demo.pojo.ArticleDto; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.scheduling.annotation.EnableAsync; -import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; - -import java.util.concurrent.BlockingQueue; -import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.ThreadPoolExecutor; - -@Configuration -@EnableAsync -public class ThreadPoolTaskConfig { - - public static final BlockingQueue BUFFER_QUEUE = new LinkedBlockingQueue<>(2000); - private static final int corePoolSize = 50; // 核心线程数(默认线程数) - private static final int maxPoolSize = 100; // 最大线程数 - private static final int keepAliveTime = 10; // 允许线程空闲时间(单位:默认为秒) - private static final int queueCapacity = 200; // 缓冲队列数 - private static final String threadNamePrefix = "Async-Service-"; // 线程池名前缀 - - @Bean("taskExecutor") - public ThreadPoolTaskExecutor getAsyncExecutor(){ - ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); - executor.setCorePoolSize(corePoolSize); - executor.setMaxPoolSize(Integer.MAX_VALUE); - //executor.setMaxPoolSize(maxPoolSize); - executor.setQueueCapacity(queueCapacity); - executor.setKeepAliveSeconds(keepAliveTime); - executor.setThreadNamePrefix(threadNamePrefix); - // 线程池对拒绝任务的处理策略 - executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy()); - // 初始化 - executor.initialize(); - return executor; - } -} \ No newline at end of file diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/UserInterceptor.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/UserInterceptor.java deleted file mode 100644 index e544907..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/config/UserInterceptor.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.config; - -import com.woniu.jvmoptimize.practice.demo.common.UserDataContextHolder; -import org.springframework.web.servlet.HandlerInterceptor; -import org.springframework.web.servlet.ModelAndView; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * 拦截器的实现,模拟放入数据到threadlocal中 - */ -public class UserInterceptor implements HandlerInterceptor { - - @Override - public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { - UserDataContextHolder.userData.set(new UserDataContextHolder.UserData()); - return true; - } - - @Override - public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { - UserDataContextHolder.userData.remove(); - } - - @Override - public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception { - - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/Demo1ArticleController.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/Demo1ArticleController.java deleted file mode 100644 index 5d7b808..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/Demo1ArticleController.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.controller; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.woniu.jvmoptimize.practice.demo.pojo.ArticleDto; -import com.woniu.jvmoptimize.practice.demo.service.ArticleService; -import org.springframework.amqp.rabbit.core.RabbitTemplate; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -/** - * -XX:+HeapDumpOnOutOfMemoryError - */ -@RestController -@RequestMapping("/article") -public class Demo1ArticleController { -// volatile int count = 0; -// @PostConstruct -// public void init(){ -// -// ExecutorService executorService = Executors.newCachedThreadPool(); -// while (true){ -// executorService.submit(new Runnable() { -// @Override -// public void run() { -// System.out.println(++count); -// try { -// Thread.sleep(1000 * 1000); -// } catch (InterruptedException e) { -// e.printStackTrace(); -// } -// } -// }); -// } -// -// } - - @Autowired - private ArticleService articleService; - - @PostMapping("/demo1/{id}") - public void article1(@PathVariable("id") long id, @RequestBody ArticleDto article){ - article.setId(id); - articleService.asyncSaveArticle(article); - } - - @PostMapping("/demo2/{id}") - public void article2(@PathVariable("id") long id, @RequestBody ArticleDto article){ - article.setId(id); - articleService.saveArticle(article); - } - - @Autowired - private RabbitTemplate rabbitTemplate; - @Autowired - private ObjectMapper objectMapper; - - @PostMapping("/demo3/{id}") - public void article3(@PathVariable("id") long id, @RequestBody ArticleDto article) throws JsonProcessingException { - article.setId(id); - rabbitTemplate.convertAndSend("jvm-test",null, objectMapper.writeValueAsString(article)); - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/Demo2ExcelController.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/Demo2ExcelController.java deleted file mode 100644 index 7258c07..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/Demo2ExcelController.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.controller; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.poi.excel.BigExcelWriter; -import cn.hutool.poi.excel.ExcelUtil; -import com.alibaba.excel.EasyExcel; -import com.alibaba.excel.ExcelWriter; -import com.alibaba.excel.write.metadata.WriteSheet; -import com.woniu.jvmoptimize.practice.demo.pojo.DemoData; -import org.apache.commons.lang3.RandomStringUtils; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.ss.usermodel.Sheet; -import org.apache.poi.ss.usermodel.Workbook; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; -import org.springframework.web.bind.annotation.*; - -import java.io.FileOutputStream; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * -XX:+HeapDumpOnOutOfMemoryError - */ -@RestController -@RequestMapping("/excel") -public class Demo2ExcelController { - - @GetMapping("/export") - public void export(int size, String path) throws IOException { - // 1 、创建工作薄 - Workbook workbook = new XSSFWorkbook(); - // 2、在工作薄中创建sheet - Sheet sheet = workbook.createSheet("测试"); - - for (int i = 0; i < size; i++) { - // 3、在sheet中创建行 - Row row0 = sheet.createRow(i); - // 4、创建单元格并存入数据 - row0.createCell(0).setCellValue(RandomStringUtils.randomAlphabetic(1000)); - } - - - // 将文件输出到指定文件 - FileOutputStream fileOutputStream = null; - try { - fileOutputStream = new FileOutputStream(path + RandomStringUtils.randomAlphabetic(10) + ".xlsx"); - workbook.write(fileOutputStream); - } catch (Exception e) { - e.printStackTrace(); - } finally { - if (fileOutputStream != null) { - fileOutputStream.close(); - } - if (workbook != null) { - workbook.close(); - } - } - - } - - - //http://www.hutool.cn/docs/#/poi/Excel%E5%A4%A7%E6%95%B0%E6%8D%AE%E7%94%9F%E6%88%90-BigExcelWriter - @GetMapping("/export_hutool") - public void export_hutool(int size, String path) throws IOException { - - - List> rows = new ArrayList<>(); - for (int i = 0; i < size; i++) { - rows.add( CollUtil.newArrayList(RandomStringUtils.randomAlphabetic(1000))); - } - - BigExcelWriter writer= ExcelUtil.getBigWriter(path + RandomStringUtils.randomAlphabetic(10) + ".xlsx"); -// 一次性写出内容,使用默认样式 - writer.write(rows); -// 关闭writer,释放内存 - writer.close(); - - - } - - - //https://easyexcel.opensource.alibaba.com/docs/current/quickstart/write#%E9%87%8D%E5%A4%8D%E5%A4%9A%E6%AC%A1%E5%86%99%E5%85%A5%E5%86%99%E5%88%B0%E5%8D%95%E4%B8%AA%E6%88%96%E8%80%85%E5%A4%9A%E4%B8%AAsheet - @GetMapping("/export_easyexcel") - public void export_easyexcel(int size, String path,int batch) throws IOException { - - // 方法1: 如果写到同一个sheet - String fileName = path + RandomStringUtils.randomAlphabetic(10) + ".xlsx"; - // 这里注意 如果同一个sheet只要创建一次 - WriteSheet writeSheet = EasyExcel.writerSheet("测试").build(); - // 这里 需要指定写用哪个class去写 - try (ExcelWriter excelWriter = EasyExcel.write(fileName, DemoData.class).build()) { - // 分100次写入 - for (int i = 0; i < batch; i++) { - // 分页去数据库查询数据 这里可以去数据库查询每一页的数据 - List datas = new ArrayList<>(); - for (int j = 0; j < size / batch; j++) { - DemoData demoData = new DemoData(); - demoData.setString(RandomStringUtils.randomAlphabetic(1000)); - datas.add(demoData); - } - excelWriter.write(datas, writeSheet); - //写入之后datas数据就可以释放了 - } - } - - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoQueryController.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoQueryController.java deleted file mode 100644 index 098330d..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoQueryController.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.controller; - -import com.woniu.jvmoptimize.practice.demo.pojo.TbArticle; -import com.woniu.jvmoptimize.practice.demo.service.TbArticleService; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; - -/** - * -Xmx1g -Xms1g - * -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:/jvm/dump/heapdemo.hprof - */ -@RestController -@RequestMapping("/hugequery") -public class DemoQueryController { - - /** - * 服务对象 - */ - @Resource - private TbArticleService articleService; - - /** - * 分页查询 - * - * @param tbArticle 筛选条件 - * @return 查询结果 - */ - @GetMapping - public ResponseEntity> queryByPage(TbArticle tbArticle, int page,int size) { -// size = Math.min(100,size); - return ResponseEntity.ok(this.articleService.queryByPage(tbArticle, PageRequest.of(page,size))); - } - - /** - * 通过主键查询单条数据 - * - * @param id 主键 - * @return 单条数据 - */ - @GetMapping("{id}") - public ResponseEntity queryById(@PathVariable("id") Long id) { - return ResponseEntity.ok(this.articleService.queryById(id)); - } - - /** - * 新增数据 - * - * @param tbArticle 实体 - * @return 新增结果 - */ - @PostMapping - public ResponseEntity add(TbArticle tbArticle) { - return ResponseEntity.ok(this.articleService.insert(tbArticle)); - } - - /** - * 编辑数据 - * - * @param tbArticle 实体 - * @return 编辑结果 - */ - @PutMapping - public ResponseEntity edit(TbArticle tbArticle) { - return ResponseEntity.ok(this.articleService.update(tbArticle)); - } - - /** - * 删除数据 - * - * @param id 主键 - * @return 删除是否成功 - */ - @DeleteMapping - public ResponseEntity deleteById(Long id) { - return ResponseEntity.ok(this.articleService.deleteById(id)); - } - -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoSqlJointController.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoSqlJointController.java deleted file mode 100644 index a50889d..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoSqlJointController.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.controller; - -import com.woniu.jvmoptimize.practice.demo.service.TbArticleService; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.util.List; -import java.util.Random; -import java.util.stream.Collectors; - -/** - * -Xmx1g -Xms1g - * -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:/jvm/dump/heapdemo.hprof - */ -@RestController -@RequestMapping("/sqljoint") -public class DemoSqlJointController { - - /** - * 服务对象 - */ - @Resource - private TbArticleService articleService; - - /** - * 判断批量id存在多少个 - * - */ - @GetMapping - public ResponseEntity countIfAbsent(int size) { - //随机生成批量id - List ids = new Random().ints(0, 1000000). - limit(size).boxed().collect(Collectors.toList()); - - return ResponseEntity.ok(this.articleService.countIfAbsent(ids)); - } - -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoThreadLocal.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoThreadLocal.java deleted file mode 100644 index e7d35e0..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/controller/DemoThreadLocal.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.controller; - -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * -Xmx1g -Xms1g - * -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:/jvm/dump/heapdemo.hprof - */ -@RestController -@RequestMapping("/threadlocal") -public class DemoThreadLocal { - - @GetMapping - public ResponseEntity test() { - error(); - return ResponseEntity.ok().build(); - } - - private void error() { - throw new RuntimeException("出错了"); - } - -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/dao/TbArticleDao.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/dao/TbArticleDao.java deleted file mode 100644 index 14a1f02..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/dao/TbArticleDao.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.dao; - -import com.woniu.jvmoptimize.practice.demo.pojo.TbArticle; -import org.apache.ibatis.annotations.Mapper; -import org.apache.ibatis.annotations.Param; -import org.springframework.data.domain.Pageable; - -import java.util.List; - -/** - * (TbArticle)表数据库访问层 - * - * @author makejava - * @since 2023-10-06 23:55:58 - */ -@Mapper -public interface TbArticleDao { - - /** - * 通过ID查询单条数据 - * - * @param id 主键 - * @return 实例对象 - */ - TbArticle queryById(Long id); - - /** - * 查询指定行数据 - * - * @param tbArticle 查询条件 - * @param pageable 分页对象 - * @return 对象列表 - */ - List queryAllByLimit(@Param("article") TbArticle tbArticle, @Param("pageable") Pageable pageable); - - /** - * 统计总行数 - * - * @param tbArticle 查询条件 - * @return 总行数 - */ - long count(TbArticle tbArticle); - - /** - * 新增数据 - * - * @param tbArticle 实例对象 - * @return 影响行数 - */ - int insert(TbArticle tbArticle); - - /** - * 批量新增数据(MyBatis原生foreach方法) - * - * @param entities List 实例对象列表 - * @return 影响行数 - */ - int insertBatch(@Param("entities") List entities); - - /** - * 批量新增或按主键更新数据(MyBatis原生foreach方法) - * - * @param entities List 实例对象列表 - * @return 影响行数 - * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 - */ - int insertOrUpdateBatch(@Param("entities") List entities); - - /** - * 修改数据 - * - * @param tbArticle 实例对象 - * @return 影响行数 - */ - int update(TbArticle tbArticle); - - /** - * 通过主键删除数据 - * - * @param id 主键 - * @return 影响行数 - */ - int deleteById(Long id); - - Long countIfAbsent(@Param("ids") List ids); -} - diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/ArticleDto.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/ArticleDto.java deleted file mode 100644 index 3d1ec27..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/ArticleDto.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.pojo; - -import lombok.AllArgsConstructor; -import lombok.Data; - -@Data -@AllArgsConstructor -public class ArticleDto { - private Long id; - /* 标题 - */ - private String title; - /* 内容 - */ - private String content; -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/DemoData.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/DemoData.java deleted file mode 100644 index c915955..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/DemoData.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.pojo; - -import com.alibaba.excel.annotation.ExcelIgnore; -import com.alibaba.excel.annotation.ExcelProperty; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.Getter; - -@Data -public class DemoData { - @ExcelProperty("测试") - private String string; - -} \ No newline at end of file diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/TbArticle.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/TbArticle.java deleted file mode 100644 index 7cdb9ce..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/pojo/TbArticle.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.pojo; - -import java.io.Serializable; - -/** - * (TbArticle)实体类 - * - * @author makejava - * @since 2023-10-06 23:55:59 - */ -public class TbArticle implements Serializable { - private static final long serialVersionUID = -48799947125707294L; - - private Long id; - - private String title; - - private String content; - - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getTitle() { - return title; - } - - public void setTitle(String title) { - this.title = title; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - -} - diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/ArticleService.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/ArticleService.java deleted file mode 100644 index e9b2022..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/ArticleService.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.service; - -import com.woniu.jvmoptimize.practice.demo.pojo.ArticleDto; - -public interface ArticleService { - void saveArticle(ArticleDto article); - void asyncSaveArticle(ArticleDto article); -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/TbArticleService.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/TbArticleService.java deleted file mode 100644 index e76705d..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/TbArticleService.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.service; - -import com.woniu.jvmoptimize.practice.demo.pojo.TbArticle; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; - -import java.util.List; - -/** - * (TbArticle)表服务接口 - * - * @author makejava - * @since 2023-10-06 23:55:59 - */ -public interface TbArticleService { - - /** - * 通过ID查询单条数据 - * - * @param id 主键 - * @return 实例对象 - */ - TbArticle queryById(Long id); - - /** - * 分页查询 - * - * @param tbArticle 筛选条件 - * @param pageRequest 分页对象 - * @return 查询结果 - */ - Page queryByPage(TbArticle tbArticle, PageRequest pageRequest); - - /** - * 新增数据 - * - * @param tbArticle 实例对象 - * @return 实例对象 - */ - TbArticle insert(TbArticle tbArticle); - - /** - * 修改数据 - * - * @param tbArticle 实例对象 - * @return 实例对象 - */ - TbArticle update(TbArticle tbArticle); - - /** - * 通过主键删除数据 - * - * @param id 主键 - * @return 是否成功 - */ - boolean deleteById(Long id); - - Long countIfAbsent(List ids); -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/impl/ArticleServiceImpl.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/impl/ArticleServiceImpl.java deleted file mode 100644 index 834eef8..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/impl/ArticleServiceImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.service.impl; - -import com.woniu.jvmoptimize.practice.demo.pojo.ArticleDto; -import com.woniu.jvmoptimize.practice.demo.service.ArticleService; -import com.woniu.jvmoptimize.practice.demo.utils.AliyunUtil; -import com.woniu.jvmoptimize.practice.demo.config.ThreadPoolTaskConfig; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Service; - -@Service -public class ArticleServiceImpl implements ArticleService { - - @Autowired - private AliyunUtil aliyunUtil; - - @Override - public void saveArticle(ArticleDto article) { - ThreadPoolTaskConfig.BUFFER_QUEUE.add(article); - int size = ThreadPoolTaskConfig.BUFFER_QUEUE.size(); - if( size > 0 && size % 10000 == 0){ - System.out.println(size); - } - } - - @Override - @Async("asyncTaskExecutor") - public void asyncSaveArticle(ArticleDto article) { - aliyunUtil.verify(article.getTitle() + "。" + article.getContent()); - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/impl/TbArticleServiceImpl.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/impl/TbArticleServiceImpl.java deleted file mode 100644 index be5eea4..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/service/impl/TbArticleServiceImpl.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.service.impl; - -import com.woniu.jvmoptimize.practice.demo.dao.TbArticleDao; -import com.woniu.jvmoptimize.practice.demo.pojo.TbArticle; -import com.woniu.jvmoptimize.practice.demo.service.TbArticleService; -import org.springframework.stereotype.Service; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageImpl; -import org.springframework.data.domain.PageRequest; - -import javax.annotation.Resource; -import java.util.List; - -/** - * (TbArticle)表服务实现类 - * - * @author makejava - * @since 2023-10-06 23:55:59 - */ -@Service("articleService") -public class TbArticleServiceImpl implements TbArticleService { - @Resource - private TbArticleDao articleDao; - - /** - * 通过ID查询单条数据 - * - * @param id 主键 - * @return 实例对象 - */ - @Override - public TbArticle queryById(Long id) { - return this.articleDao.queryById(id); - } - - /** - * 分页查询 - * - * @param tbArticle 筛选条件 - * @param pageRequest 分页对象 - * @return 查询结果 - */ - @Override - public Page queryByPage(TbArticle tbArticle, PageRequest pageRequest) { - //long total = this.articleDao.count(tbArticle); - return new PageImpl<>(this.articleDao.queryAllByLimit(tbArticle, pageRequest), pageRequest, 0); - } - - /** - * 新增数据 - * - * @param tbArticle 实例对象 - * @return 实例对象 - */ - @Override - public TbArticle insert(TbArticle tbArticle) { - this.articleDao.insert(tbArticle); - return tbArticle; - } - - /** - * 修改数据 - * - * @param tbArticle 实例对象 - * @return 实例对象 - */ - @Override - public TbArticle update(TbArticle tbArticle) { - this.articleDao.update(tbArticle); - return this.queryById(tbArticle.getId()); - } - - /** - * 通过主键删除数据 - * - * @param id 主键 - * @return 是否成功 - */ - @Override - public boolean deleteById(Long id) { - return this.articleDao.deleteById(id) > 0; - } - - @Override - public Long countIfAbsent(List ids) { - return articleDao.countIfAbsent(ids); - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/task/ArticleSaveTask.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/task/ArticleSaveTask.java deleted file mode 100644 index de04d35..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/task/ArticleSaveTask.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.task; - -import com.woniu.jvmoptimize.practice.demo.pojo.ArticleDto; -import com.woniu.jvmoptimize.practice.demo.config.ThreadPoolTaskConfig; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; - -import javax.annotation.PostConstruct; - -//@Component -public class ArticleSaveTask { - @Autowired - @Qualifier("taskExecutor") - private ThreadPoolTaskExecutor threadPoolTaskExecutor; - - @PostConstruct - public void pullArticleTask(){ - for (int i = 0; i < 50; i++) { - threadPoolTaskExecutor.submit((Runnable) () -> { - while (true){ - try { - ArticleDto data = ThreadPoolTaskConfig.BUFFER_QUEUE.take(); - /** - * 获取到队列中的数据之后,调用第三方接口审核数据,但是此时网络出现问题, - * 第三方接口长时间没有响应,此处使用休眠来模式30秒 - */ - Thread.sleep(30 * 1000); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - }); - } - } -} diff --git a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/utils/AliyunUtil.java b/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/utils/AliyunUtil.java deleted file mode 100644 index 15346e6..0000000 --- a/day06/jvm-optimize/src/main/java/com/woniu/jvmoptimize/practice/demo/utils/AliyunUtil.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.woniu.jvmoptimize.practice.demo.utils; - -import org.springframework.stereotype.Component; - -@Component -public class AliyunUtil { - - //阿里云审核接口调用 - public void verify(String content){ - try { - /** - * 调用第三方接口审核数据,但是此时网络出现问题, - * 第三方接口长时间没有响应,此处使用休眠来模拟30秒 - */ - Thread.sleep(30 * 1000); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } -} diff --git a/day06/jvm-optimize/src/main/resources/application.yml b/day06/jvm-optimize/src/main/resources/application.yml deleted file mode 100644 index 8684361..0000000 --- a/day06/jvm-optimize/src/main/resources/application.yml +++ /dev/null @@ -1,43 +0,0 @@ - -#设置应用名 -spring: - application: - name: jvm-service - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/jvm_test?serverTimeZone=UTC&useUnicode=true&characterEncoding=UTF-8 - username: root - password: 123456 -# url: jdbc:mysql://rm-cn-zpr3eymps0008cso.rwlb.rds.aliyuncs.com:3306/jvm?serverTimeZone=UTC&useUnicode=true&characterEncoding=UTF-8 -# url: jdbc:mysql://rm-cn-zpr3eymps0008c.rwlb.rds.aliyuncs.com:3306/jvm?serverTimeZone=UTC&useUnicode=true&characterEncoding=UTF-8 -# username: jvm -# password: itheima123456@ -# rabbitmq: -# host: localhost # rabbitMQ的ip地址 -# port: 5672 # 端口 -# username: guest -# password: guest -# virtual-host: / - -#arthas: -# #tunnel地址,目前是部署在同一台服务器,正式环境需要拆分 -# tunnel-server: ws://localhost:7777/ws -# #tunnel显示的应用名称,直接使用应用名 -# app-name: ${spring.application.name} -# #arthas http访问的端口和远程连接的端口 -# http-port: 8888 -# telnet-port: 9999 - -server: - port: 8881 - tomcat: - threads: - min-spare: 50 - max: 500 - - -mybatis: - mapper-locations: classpath:mapper/*xml - type-aliases-package: com.woniu.jvmoptimize.practice.demo.pojo - - diff --git a/day06/jvm-optimize/src/main/resources/mapper/TbArticleDao.xml b/day06/jvm-optimize/src/main/resources/mapper/TbArticleDao.xml deleted file mode 100644 index fae3677..0000000 --- a/day06/jvm-optimize/src/main/resources/mapper/TbArticleDao.xml +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - insert into article(title, content) - values (#{title}, #{content}) - - - - insert into article(title, content) - values - - (#{entity.title}, #{entity.content}) - - - - - insert into article(title, content) - values - - (#{entity.title}, #{entity.content}) - - on duplicate key update - title = values(title), - content = values(content) - - - - - update article - - - title = #{title}, - - - content = #{content}, - - - where id = #{id} - - - - - delete - from article - where id = #{id} - - - - diff --git a/day06/jvm-optimize/src/test/java/com/woniu/jvmoptimize/JvmOptimizeApplicationTests.java b/day06/jvm-optimize/src/test/java/com/woniu/jvmoptimize/JvmOptimizeApplicationTests.java deleted file mode 100644 index 2250a82..0000000 --- a/day06/jvm-optimize/src/test/java/com/woniu/jvmoptimize/JvmOptimizeApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.woniu.jvmoptimize; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class JvmOptimizeApplicationTests { - - @Test - void contextLoads() { - } - -} diff --git a/day06/jvm-optimize/target/classes/application.yml b/day06/jvm-optimize/target/classes/application.yml deleted file mode 100644 index 4cd1901..0000000 --- a/day06/jvm-optimize/target/classes/application.yml +++ /dev/null @@ -1,60 +0,0 @@ - -management: - endpoint: - metrics: - enabled: true #支持metrics - prometheus: - enabled: true #支持Prometheus - metrics: - export: - prometheus: - enabled: true - tags: - application: jvm-test #实例名采集 - endpoints: - web: - exposure: - include: '*' #开放所有端口 - -#设置应用名 -spring: - application: - name: jvm-service - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/jvm_test?serverTimeZone=UTC&useUnicode=true&characterEncoding=UTF-8 - username: root - password: 123456 -# url: jdbc:mysql://rm-cn-zpr3eymps0008cso.rwlb.rds.aliyuncs.com:3306/jvm?serverTimeZone=UTC&useUnicode=true&characterEncoding=UTF-8 -# url: jdbc:mysql://rm-cn-zpr3eymps0008c.rwlb.rds.aliyuncs.com:3306/jvm?serverTimeZone=UTC&useUnicode=true&characterEncoding=UTF-8 -# username: jvm -# password: itheima123456@ - rabbitmq: - host: localhost # rabbitMQ的ip地址 - port: 5672 # 端口 - username: guest - password: guest - virtual-host: / - -arthas: - #tunnel地址,目前是部署在同一台服务器,正式环境需要拆分 - tunnel-server: ws://localhost:7777/ws - #tunnel显示的应用名称,直接使用应用名 - app-name: ${spring.application.name} - #arthas http访问的端口和远程连接的端口 - http-port: 8888 - telnet-port: 9999 - -server: - port: 8881 - tomcat: - threads: - min-spare: 50 - max: 500 - - -mybatis: - mapper-locations: classpath:mapper/*xml - type-aliases-package: com.itheima.jvmoptimize.practice.demo.pojo - - diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/JvmOptimizeApplication.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/JvmOptimizeApplication.class deleted file mode 100644 index 9ef28b4..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/JvmOptimizeApplication.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/btrace/FileCreator.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/btrace/FileCreator.class deleted file mode 100644 index 861b0ee..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/btrace/FileCreator.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/btrace/UserEntityTest.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/btrace/UserEntityTest.class deleted file mode 100644 index b721902..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/btrace/UserEntityTest.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/controller/LeakController.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/controller/LeakController.class deleted file mode 100644 index eeef889..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/controller/LeakController.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/controller/OOMController.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/controller/OOMController.class deleted file mode 100644 index 6575a3e..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/controller/OOMController.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/entity/Student.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/entity/Student.class deleted file mode 100644 index dc5719f..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/entity/Student.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/entity/UserEntity.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/entity/UserEntity.class deleted file mode 100644 index d483a44..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/entity/UserEntity.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo1/Demo1.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo1/Demo1.class deleted file mode 100644 index f4535c7..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo1/Demo1.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Demo0.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Demo0.class deleted file mode 100644 index 2d7e910..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Demo0.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Demo2.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Demo2.class deleted file mode 100644 index 3d68602..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Demo2.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Student.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Student.class deleted file mode 100644 index 2172954..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo2/Student.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo3/Outer$Inner.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo3/Outer$Inner.class deleted file mode 100644 index 66d2aaa..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo3/Outer$Inner.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo3/Outer.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo3/Outer.class deleted file mode 100644 index 82c9fb1..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo3/Outer.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo4/Outer$1.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo4/Outer$1.class deleted file mode 100644 index 35be3ea..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo4/Outer$1.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo4/Outer.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo4/Outer.class deleted file mode 100644 index b4e2a84..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo4/Outer.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo5/Demo5.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo5/Demo5.class deleted file mode 100644 index 7c0452a..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo5/Demo5.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo5/Demo5_1.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo5/Demo5_1.class deleted file mode 100644 index cdff8df..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo5/Demo5_1.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo6/Demo6.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo6/Demo6.class deleted file mode 100644 index 83e4714..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo6/Demo6.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo7/CaffineDemo.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo7/CaffineDemo.class deleted file mode 100644 index 65c708f..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo7/CaffineDemo.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo7/TestLazy.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo7/TestLazy.class deleted file mode 100644 index 2dc4db2..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/leakdemo/demo7/TestLazy.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/HeapDemo.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/HeapDemo.class deleted file mode 100644 index 76d3be8..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/HeapDemo.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/HeapDemo2.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/HeapDemo2.class deleted file mode 100644 index 2686ce2..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/HeapDemo2.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/StringSize.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/StringSize.class deleted file mode 100644 index 5789933..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/StringSize.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/TestClass.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/TestClass.class deleted file mode 100644 index fe2b9a2..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/TestClass.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/TestClass2.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/TestClass2.class deleted file mode 100644 index 4aa858d..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/matdemo/TestClass2.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/common/UserDataContextHolder$UserData.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/common/UserDataContextHolder$UserData.class deleted file mode 100644 index a1ed302..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/common/UserDataContextHolder$UserData.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/common/UserDataContextHolder.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/common/UserDataContextHolder.class deleted file mode 100644 index cf8e90f..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/common/UserDataContextHolder.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/AsyncThreadPoolTaskConfig.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/AsyncThreadPoolTaskConfig.class deleted file mode 100644 index b0bd980..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/AsyncThreadPoolTaskConfig.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/LoginConfig.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/LoginConfig.class deleted file mode 100644 index 7cf768c..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/LoginConfig.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/ThreadPoolTaskConfig.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/ThreadPoolTaskConfig.class deleted file mode 100644 index b7a255e..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/ThreadPoolTaskConfig.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/UserInterceptor.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/UserInterceptor.class deleted file mode 100644 index 09dd791..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/config/UserInterceptor.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/Demo1ArticleController.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/Demo1ArticleController.class deleted file mode 100644 index a4ba4da..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/Demo1ArticleController.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/Demo2ExcelController.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/Demo2ExcelController.class deleted file mode 100644 index e1e37e0..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/Demo2ExcelController.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoQueryController.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoQueryController.class deleted file mode 100644 index b126235..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoQueryController.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoSqlJointController.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoSqlJointController.class deleted file mode 100644 index 7507f9a..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoSqlJointController.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoThreadLocal.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoThreadLocal.class deleted file mode 100644 index 6756a84..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/controller/DemoThreadLocal.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/dao/TbArticleDao.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/dao/TbArticleDao.class deleted file mode 100644 index 4380d3f..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/dao/TbArticleDao.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/ArticleDto.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/ArticleDto.class deleted file mode 100644 index 901157d..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/ArticleDto.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/DemoData.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/DemoData.class deleted file mode 100644 index cac4c62..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/DemoData.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/TbArticle.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/TbArticle.class deleted file mode 100644 index 896c048..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/pojo/TbArticle.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/ArticleService.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/ArticleService.class deleted file mode 100644 index 2ca1994..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/ArticleService.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/TbArticleService.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/TbArticleService.class deleted file mode 100644 index 33b4634..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/TbArticleService.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/impl/ArticleServiceImpl.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/impl/ArticleServiceImpl.class deleted file mode 100644 index 91e4de6..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/impl/ArticleServiceImpl.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/impl/TbArticleServiceImpl.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/impl/TbArticleServiceImpl.class deleted file mode 100644 index ecbd099..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/service/impl/TbArticleServiceImpl.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/task/ArticleSaveTask.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/task/ArticleSaveTask.class deleted file mode 100644 index 6007543..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/task/ArticleSaveTask.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/utils/AliyunUtil.class b/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/utils/AliyunUtil.class deleted file mode 100644 index 833e37b..0000000 Binary files a/day06/jvm-optimize/target/classes/com/itheima/jvmoptimize/practice/demo/utils/AliyunUtil.class and /dev/null differ diff --git a/day06/jvm-optimize/target/classes/mapper/TbArticleDao.xml b/day06/jvm-optimize/target/classes/mapper/TbArticleDao.xml deleted file mode 100644 index a7440bd..0000000 --- a/day06/jvm-optimize/target/classes/mapper/TbArticleDao.xml +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - insert into article(title, content) - values (#{title}, #{content}) - - - - insert into article(title, content) - values - - (#{entity.title}, #{entity.content}) - - - - - insert into article(title, content) - values - - (#{entity.title}, #{entity.content}) - - on duplicate key update - title = values(title), - content = values(content) - - - - - update article - - - title = #{title}, - - - content = #{content}, - - - where id = #{id} - - - - - delete - from article - where id = #{id} - - - - diff --git a/day06/jvm-optimize/target/jvm-optimize-0.0.1-SNAPSHOT.jar.original b/day06/jvm-optimize/target/jvm-optimize-0.0.1-SNAPSHOT.jar.original deleted file mode 100644 index 9f189bf..0000000 Binary files a/day06/jvm-optimize/target/jvm-optimize-0.0.1-SNAPSHOT.jar.original and /dev/null differ diff --git a/day06/jvm-optimize/target/maven-archiver/pom.properties b/day06/jvm-optimize/target/maven-archiver/pom.properties deleted file mode 100644 index 163d279..0000000 --- a/day06/jvm-optimize/target/maven-archiver/pom.properties +++ /dev/null @@ -1,3 +0,0 @@ -artifactId=jvm-optimize -groupId=com.itheima -version=0.0.1-SNAPSHOT diff --git a/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst deleted file mode 100644 index cb1ad54..0000000 --- a/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ /dev/null @@ -1,45 +0,0 @@ -com\itheima\jvmoptimize\practice\demo\service\ArticleService.class -com\itheima\jvmoptimize\practice\demo\service\impl\ArticleServiceImpl.class -com\itheima\jvmoptimize\practice\demo\config\UserInterceptor.class -com\itheima\jvmoptimize\leakdemo\demo1\Demo1.class -com\itheima\jvmoptimize\JvmOptimizeApplication.class -com\itheima\jvmoptimize\leakdemo\demo7\CaffineDemo.class -com\itheima\jvmoptimize\matdemo\TestClass2.class -com\itheima\jvmoptimize\practice\demo\config\ThreadPoolTaskConfig.class -com\itheima\jvmoptimize\practice\demo\controller\DemoQueryController.class -com\itheima\jvmoptimize\practice\demo\controller\Demo1ArticleController.class -com\itheima\jvmoptimize\practice\demo\controller\Demo2ExcelController.class -com\itheima\jvmoptimize\matdemo\StringSize.class -com\itheima\jvmoptimize\leakdemo\demo4\Outer$1.class -com\itheima\jvmoptimize\practice\demo\pojo\TbArticle.class -com\itheima\jvmoptimize\practice\demo\pojo\DemoData.class -com\itheima\jvmoptimize\practice\demo\config\LoginConfig.class -com\itheima\jvmoptimize\practice\demo\task\ArticleSaveTask.class -com\itheima\jvmoptimize\controller\LeakController.class -com\itheima\jvmoptimize\leakdemo\demo3\Outer$Inner.class -com\itheima\jvmoptimize\leakdemo\demo2\Student.class -com\itheima\jvmoptimize\practice\demo\common\UserDataContextHolder.class -com\itheima\jvmoptimize\btrace\UserEntityTest.class -com\itheima\jvmoptimize\matdemo\TestClass.class -com\itheima\jvmoptimize\entity\Student.class -com\itheima\jvmoptimize\leakdemo\demo7\TestLazy.class -com\itheima\jvmoptimize\practice\demo\controller\DemoSqlJointController.class -com\itheima\jvmoptimize\practice\demo\config\AsyncThreadPoolTaskConfig.class -com\itheima\jvmoptimize\practice\demo\service\impl\TbArticleServiceImpl.class -com\itheima\jvmoptimize\leakdemo\demo3\Outer.class -com\itheima\jvmoptimize\leakdemo\demo4\Outer.class -com\itheima\jvmoptimize\practice\demo\service\TbArticleService.class -com\itheima\jvmoptimize\leakdemo\demo5\Demo5.class -com\itheima\jvmoptimize\leakdemo\demo2\Demo2.class -com\itheima\jvmoptimize\practice\demo\pojo\ArticleDto.class -com\itheima\jvmoptimize\btrace\FileCreator.class -com\itheima\jvmoptimize\matdemo\HeapDemo.class -com\itheima\jvmoptimize\controller\OOMController.class -com\itheima\jvmoptimize\leakdemo\demo5\Demo5_1.class -com\itheima\jvmoptimize\entity\UserEntity.class -com\itheima\jvmoptimize\matdemo\HeapDemo2.class -com\itheima\jvmoptimize\practice\demo\controller\DemoThreadLocal.class -com\itheima\jvmoptimize\leakdemo\demo2\Demo0.class -com\itheima\jvmoptimize\practice\demo\dao\TbArticleDao.class -com\itheima\jvmoptimize\practice\demo\common\UserDataContextHolder$UserData.class -com\itheima\jvmoptimize\leakdemo\demo6\Demo6.class diff --git a/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst deleted file mode 100644 index f3d7065..0000000 --- a/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ /dev/null @@ -1,40 +0,0 @@ -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\service\TbArticleService.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo7\TestLazy.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo2\Student.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo3\Outer.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\task\ArticleSaveTask.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo5\Demo5.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\matdemo\StringSize.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo7\CaffineDemo.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo4\Outer.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo6\Demo6.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\JvmOptimizeApplication.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\controller\Demo2ExcelController.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\config\ThreadPoolTaskConfig.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\controller\DemoQueryController.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\entity\Student.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\matdemo\HeapDemo.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\config\AsyncThreadPoolTaskConfig.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo1\Demo1.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\pojo\ArticleDto.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo2\Demo0.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\config\UserInterceptor.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo5\Demo5_1.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\controller\DemoThreadLocal.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\pojo\DemoData.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\service\impl\TbArticleServiceImpl.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\matdemo\HeapDemo2.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\service\ArticleService.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\btrace\FileCreator.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\btrace\UserEntityTest.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\config\LoginConfig.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\controller\Demo1ArticleController.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\entity\UserEntity.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\pojo\TbArticle.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\dao\TbArticleDao.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\controller\OOMController.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\common\UserDataContextHolder.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\controller\LeakController.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\leakdemo\demo2\Demo2.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\service\impl\ArticleServiceImpl.java -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\main\java\com\itheima\jvmoptimize\practice\demo\controller\DemoSqlJointController.java diff --git a/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst deleted file mode 100644 index 7c9ee3d..0000000 --- a/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +++ /dev/null @@ -1 +0,0 @@ -com\itheima\jvmoptimize\JvmOptimizeApplicationTests.class diff --git a/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst deleted file mode 100644 index fe2530e..0000000 --- a/day06/jvm-optimize/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ /dev/null @@ -1 +0,0 @@ -D:\教学\同步课程资料\BaiduSyncdisk\实战Java虚拟机\代码\jvm-optimize\src\test\java\com\itheima\jvmoptimize\JvmOptimizeApplicationTests.java diff --git a/day06/jvm-optimize/target/test-classes/com/itheima/jvmoptimize/JvmOptimizeApplicationTests.class b/day06/jvm-optimize/target/test-classes/com/itheima/jvmoptimize/JvmOptimizeApplicationTests.class deleted file mode 100644 index 749e3a7..0000000 Binary files a/day06/jvm-optimize/target/test-classes/com/itheima/jvmoptimize/JvmOptimizeApplicationTests.class and /dev/null differ diff --git a/day06/测试脚本/内存溢出测试.jmx b/day06/测试脚本/内存溢出测试.jmx deleted file mode 100644 index f733eb1..0000000 --- a/day06/测试脚本/内存溢出测试.jmx +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - false - true - false - - - - - - - - continue - - false - -1 - - 30 - 0 - false - - - true - - - - - - - false - ${__Random(1,10000000,)} - = - true - id - - - false - ${__RandomString(10,abcdefghijklmnopqrstuvwxyz,)} - = - true - name - - - - 112.126.28.66 - 8081 - http - - /leak/login - POST - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - 500 - false - - - - - false - false - - - - - - diff --git a/day06/测试脚本/案例-SQL拼接.jmx b/day06/测试脚本/案例-SQL拼接.jmx deleted file mode 100644 index 0fc1574..0000000 --- a/day06/测试脚本/案例-SQL拼接.jmx +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - false - true - false - - - - - - - - continue - - false - 50 - - 5 - 1 - false - - - true - - - - - - - 112.126.28.66 - 8881 - http - - /sqljoint?size=300 - GET - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - - diff --git a/day06/测试脚本/案例-threadlocal内存泄漏.jmx b/day06/测试脚本/案例-threadlocal内存泄漏.jmx deleted file mode 100644 index 14ea5a9..0000000 --- a/day06/测试脚本/案例-threadlocal内存泄漏.jmx +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - false - true - false - - - - - - - - continue - - false - 1 - - 50 - 0 - false - - - true - - - - - - - localhost - 8881 - http - - /threadlocal - GET - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - - diff --git a/day06/测试脚本/案例-导出大文件.jmx b/day06/测试脚本/案例-导出大文件.jmx deleted file mode 100644 index 2098173..0000000 --- a/day06/测试脚本/案例-导出大文件.jmx +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - false - true - false - - - - - - - - continue - - false - 1 - - 5 - 0 - false - - - true - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - - - localhost - 8881 - http - - /excel/export_hutool?size=100000&path=D:/jvm/data/excel/&batch=100 - GET - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - - diff --git a/day06/测试脚本/案例-查询巨大数据量.jmx b/day06/测试脚本/案例-查询巨大数据量.jmx deleted file mode 100644 index 9474f01..0000000 --- a/day06/测试脚本/案例-查询巨大数据量.jmx +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - false - true - false - - - - - - - - continue - - false - -1 - - 200 - 0 - false - - - true - - - - - - - localhost - 8881 - http - - /hugequery?page=1&size=10 - GET - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - 1000 - false - - - - - false - false - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - 500 - false - - - - - false - false - - - - - - diff --git a/day06/测试脚本/案例-生产者消费者问题.jmx b/day06/测试脚本/案例-生产者消费者问题.jmx deleted file mode 100644 index 4031f34..0000000 --- a/day06/测试脚本/案例-生产者消费者问题.jmx +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - false - true - false - - - - - - - - continue - - false - -1 - - 50 - 1 - false - - - true - - - - true - - - - false - { - "title" : "测试", - "content" :"8月24日,由山西省工业和信息化厅和大同市人民政府共同主办的“晋阳湖·数字经济发展峰会暨第二届云冈数字新基建发展论坛”在山西省大同市顺利召开,各级领导、知名专家学者、行业龙头企业齐聚一堂,共话大同数字经济未来。\",\"云冈数字新基建发展论坛\",\"大同市委副书记、市长张强,工业和信息化部信息技术发展司二级巡视员王少朋,山西省工业和信息化厅副厅长李鑫发表致辞,大同市人民政府副市长孟维君主持开场。传智教育受邀参会,并与大同市数字城市投资建设有限责任公司(简称“数投公司”)签署数字化人才输送协议。\",\"本次论坛以“数智大同、云服天下”为主题,旨在进一步加快“数字大同”建设,夯实数字经济发展基础。\",\"会上,来自全国各地的优秀数字领域专家深入探讨数字新基建发展课题,其中有京东科技、华为、科大讯飞、浪潮等知名科技企业代表进行主题演讲,表示将不断把行业资源和数据创新发展先进经验植入大同,推动产业发展、行业应用的有机结合。\",\"论坛集中签约仪式\",\"近年来,大同市大力发展大数据、云计算等战略性新兴产业,数字经济正成为引领大同高质量发展的新引擎,传智教育顺“数”而为,率先在大同建设了一所具有鲜明数字化特色的大学——大同互联网职业技术学院。\",\"学院紧紧围绕战略新兴产业,重点布局数字经济与“互联网+”方向,致力于培养数字经济时代的高素质技术技能人才,解决因数字化人才供给不足导致传统产业升级困难,产业链竞争力不强的问题,推动职业教育改革发展,助力数字中国建设。\",\"传智教育在大同市就职业教育发展和数字化产业升级方面的深度探索,得到了政府部门的关注和鼓励,为促进大同市数字化人才培养,在本次论坛上,传智教育与大同市数字城市投资建设有限责任公司正式签署合作协议,双方将基于大同互联网职业技术学院人才就业输送、社会人才培训及品牌联动等方面达成合作。\",\"未来,传智教育与数投公司,将展开全方位的深度合作,包括但不限于:基于数投公司汇集的各领域信息系统整合、数字政府、智慧城市等资源,由传智教育承接数投公司方所需的数字化人才培养及培训工作;大同互联网职业技术学院的优秀毕业生将被优先推荐到数投公司生态企业实习或就业等。双方未来将实时互通资源,通过开展多维度的合作联动,提高双方的核心竞争力和社会影响力。\",\"据介绍,大同市数字城市投资建设有限责任公司是大同市政府汇合数智企业,承接全市大数据资源的整合、互联互通、开放共享的建设与服务,负责全市数据资产安全运营工作,培育大同市大数据产业生态体系,引导大同市大数据产业发展。\",\"此次合作的达成,是双方秉承“互利共赢,协同赋能大同市数字产业发展”的一致目标,依托各自在科技领域的育人经验、技术成果及企业人才需求等,促成的企业资源和人才培养对接,是双方在产教融合、校企合作领域的进一步创新探索。" -} - = - - - - localhost - 8881 - http - utf-8 - /article/demo3/1 - POST - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - - content-type - application/json - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - 500 - false - - - - - false - false - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - 500 - false - - - - - false - false - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - 1000 - false - - - - - false - false - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - - diff --git a/day06/测试脚本/聚合报告.jmx b/day06/测试脚本/聚合报告.jmx deleted file mode 100644 index 81e5988..0000000 --- a/day06/测试脚本/聚合报告.jmx +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - false - true - false - - - - - - - - continue - - false - -1 - - 100 - 0 - false - - - true - - - - - - - localhost - 8881 - http - - /leak/test - GET - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - continue - - false - -1 - - 100 - 0 - false - - - true - - - - - - - false - ${__Random(1,100000,)} - = - true - id - - - false - ${__RandomString(10000,abcdefghijk1mn,)} - = - true - name - - - - localhost - 8881 - http - - /leak/login - POST - true - false - true - false - - - - - - - false - - saveConfig - - - true - true - true - - true - true - true - true - false - true - true - false - false - false - true - false - false - false - true - 0 - true - true - true - true - true - true - - - - - - - - - diff --git a/demo-codes-master/.idea/.gitignore b/demo-codes-master/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/demo-codes-master/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/demo-codes-master/.idea/compiler.xml b/demo-codes-master/.idea/compiler.xml deleted file mode 100644 index 55b13d8..0000000 --- a/demo-codes-master/.idea/compiler.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/demo-codes-master/.idea/demo-codes-master.iml b/demo-codes-master/.idea/demo-codes-master.iml deleted file mode 100644 index d6ebd48..0000000 --- a/demo-codes-master/.idea/demo-codes-master.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/demo-codes-master/.idea/encodings.xml b/demo-codes-master/.idea/encodings.xml deleted file mode 100644 index 2255ffe..0000000 --- a/demo-codes-master/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/demo-codes-master/.idea/jarRepositories.xml b/demo-codes-master/.idea/jarRepositories.xml deleted file mode 100644 index e6b00eb..0000000 --- a/demo-codes-master/.idea/jarRepositories.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/demo-codes-master/.idea/misc.xml b/demo-codes-master/.idea/misc.xml deleted file mode 100644 index 6ed2cda..0000000 --- a/demo-codes-master/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/demo-codes-master/.idea/modules.xml b/demo-codes-master/.idea/modules.xml deleted file mode 100644 index fce887e..0000000 --- a/demo-codes-master/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/demo-codes-master/.idea/vcs.xml b/demo-codes-master/.idea/vcs.xml deleted file mode 100644 index 6c0b863..0000000 --- a/demo-codes-master/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/demo-codes-master/demo-codes-master/.gitignore b/demo-codes-master/demo-codes-master/.gitignore deleted file mode 100644 index 5ff6309..0000000 --- a/demo-codes-master/demo-codes-master/.gitignore +++ /dev/null @@ -1,38 +0,0 @@ -target/ -!.mvn/wrapper/maven-wrapper.jar -!**/src/main/**/target/ -!**/src/test/**/target/ - -### IntelliJ IDEA ### -.idea/modules.xml -.idea/jarRepositories.xml -.idea/compiler.xml -.idea/libraries/ -*.iws -*.iml -*.ipr - -### Eclipse ### -.apt_generated -.classpath -.factorypath -.project -.settings -.springBeans -.sts4-cache - -### NetBeans ### -/nbproject/private/ -/nbbuild/ -/dist/ -/nbdist/ -/.nb-gradle/ -build/ -!**/src/main/**/build/ -!**/src/test/**/build/ - -### VS Code ### -.vscode/ - -### Mac OS ### -.DS_Store \ No newline at end of file diff --git a/demo-codes-master/demo-codes-master/.idea/.gitignore b/demo-codes-master/demo-codes-master/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/demo-codes-master/demo-codes-master/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/demo-codes-master/demo-codes-master/.idea/aws.xml b/demo-codes-master/demo-codes-master/.idea/aws.xml deleted file mode 100644 index b63b642..0000000 --- a/demo-codes-master/demo-codes-master/.idea/aws.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/demo-codes-master/demo-codes-master/.idea/encodings.xml b/demo-codes-master/demo-codes-master/.idea/encodings.xml deleted file mode 100644 index aa00ffa..0000000 --- a/demo-codes-master/demo-codes-master/.idea/encodings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/demo-codes-master/demo-codes-master/.idea/misc.xml b/demo-codes-master/demo-codes-master/.idea/misc.xml deleted file mode 100644 index 132404b..0000000 --- a/demo-codes-master/demo-codes-master/.idea/misc.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/demo-codes-master/demo-codes-master/.idea/uiDesigner.xml b/demo-codes-master/demo-codes-master/.idea/uiDesigner.xml deleted file mode 100644 index 2b63946..0000000 --- a/demo-codes-master/demo-codes-master/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/demo-codes-master/demo-codes-master/.idea/vcs.xml b/demo-codes-master/demo-codes-master/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/demo-codes-master/demo-codes-master/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/demo-codes-master/demo-codes-master/pom.xml b/demo-codes-master/demo-codes-master/pom.xml deleted file mode 100644 index d4a52b9..0000000 --- a/demo-codes-master/demo-codes-master/pom.xml +++ /dev/null @@ -1,62 +0,0 @@ - - 4.0.0 - - org.example - demo-codes - 1.0-SNAPSHOT - jar - - demo-codes - http://maven.apache.org - - - UTF-8 - - - - org.springframework.boot - spring-boot-starter-parent - 2.7.12 - - - - - - - junit - junit - 3.8.1 - test - - - org.projectlombok - lombok - 1.18.6 - - - org.springframework.boot - spring-boot-starter-web - - - com.alibaba - fastjson - 1.2.62 - - - org.springframework.boot - spring-boot-starter-jdbc - - - cn.hutool - hutool-all - 5.7.10 - - - org.redisson - redisson - 3.16.1 - - - - diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/App.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/App.java deleted file mode 100644 index 5f21d2e..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.example; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/common/util/DateUtil.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/common/util/DateUtil.java deleted file mode 100644 index 318b8ea..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/common/util/DateUtil.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.example.common.util; - -import java.time.LocalDateTime; - -public class DateUtil { - - public static LocalDateTime firstDayOfLastMonth() { - //返回上个月第一天第一毫秒 - return LocalDateTime.now().minusMonths(1) - .withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0).withNano(0); - } - public static int lastDayOfMont(LocalDateTime time) { - return time.withDayOfMonth(time.getMonth().length(time.toLocalDate().isLeapYear())) - .withHour(23).withMinute(59).withSecond(59).withNano(999999999).getDayOfMonth(); - } - - public static int milliSecondBetween(LocalDateTime a, LocalDateTime b) { - return (int) (b.toInstant(java.time.ZoneOffset.of("+8")).toEpochMilli() - a.toInstant(java.time.ZoneOffset.of("+8")).toEpochMilli()); - } - -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/common/BusinessException.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/common/BusinessException.java deleted file mode 100644 index 0f1c112..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/common/BusinessException.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.example.multi_sys_consist.common; - -public class BusinessException extends RuntimeException{ - public BusinessException(String message) { - super(message); - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/constant/TransactionJobType.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/constant/TransactionJobType.java deleted file mode 100644 index 97e4657..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/constant/TransactionJobType.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.example.multi_sys_consist.constant; - -public enum TransactionJobType { - /** - * 更新待办 - */ - UPDATE_TODO, - /** - * 创建财务日志 - */ - CREATE_FINANCE_LOG, - /** - * 类型4 - */ - PUSH_FINANCE_LOG; - - public static TransactionJobType parse(String type) { - for (TransactionJobType transactionJobType : TransactionJobType.values()) { - if (transactionJobType.name().equals(type)) { - return transactionJobType; - } - } - return null; - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/mapper/ApplyMapper.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/mapper/ApplyMapper.java deleted file mode 100644 index c33dc94..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/mapper/ApplyMapper.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.example.multi_sys_consist.mapper; - -import org.example.multi_sys_consist.pojo.dto.ApplyApproveVo; -import org.example.multi_sys_consist.pojo.entity.ApplyEntity; - -public interface ApplyMapper { - - void saveInfo(ApplyApproveVo vo); - - ApplyEntity selectById(Long id); -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/mapper/TransactionJobMapper.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/mapper/TransactionJobMapper.java deleted file mode 100644 index 048f744..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/mapper/TransactionJobMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.example.multi_sys_consist.mapper; - -import org.example.multi_sys_consist.pojo.entity.TransactionJob; - -import java.util.List; - -public interface TransactionJobMapper { - - void add(TransactionJob job); - - List selectList(int offset, int size); - - /** - * update transaction_job set - * error_message = #{errorMessage}, - * update_time = #{time} - * retry_times = retry_times + 1 where id = #{id} - */ - void updateError(Long id, String errorMessage, Long time); - - void updateSuccess(Long id, long l); -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/CreateFinanceLogExecutor.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/CreateFinanceLogExecutor.java deleted file mode 100644 index 09b9cbc..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/CreateFinanceLogExecutor.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.example.multi_sys_consist.module; - -import com.alibaba.fastjson.JSONObject; -import org.example.multi_sys_consist.constant.TransactionJobType; -import org.example.multi_sys_consist.pojo.entity.FinanceLog; -import org.example.multi_sys_consist.pojo.entity.TransactionJob; -import org.example.multi_sys_consist.service.FinanceLogService; -import org.example.multi_sys_consist.service.TransactionJobService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -@Component -public class CreateFinanceLogExecutor implements TransactionJobExecutor { - @Autowired - private FinanceLogService financeLogService; - @Autowired - private TransactionJobService transactionJobService; - @Override - @Transactional(rollbackFor = Exception.class) - public void execute(TransactionJob job) { - JSONObject jo = JSONObject.parseObject(job.getData()); - List financeLog = financeLogService.createFinanceLog(jo.getLong("applyId")); - - //留下任务:推送财务日志 - JSONObject data = new JSONObject(); - data.put("applyId", jo.getLong("applyId")); - transactionJobService.create(TransactionJobType.PUSH_FINANCE_LOG, data); - } - - @Override - public TransactionJobType type() { - return TransactionJobType.CREATE_FINANCE_LOG; - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/PushFinanceLogExecutor.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/PushFinanceLogExecutor.java deleted file mode 100644 index 9cc12f4..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/PushFinanceLogExecutor.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.example.multi_sys_consist.module; - -import com.alibaba.fastjson.JSONObject; -import org.example.multi_sys_consist.constant.TransactionJobType; -import org.example.multi_sys_consist.pojo.entity.TransactionJob; -import org.example.multi_sys_consist.remote.FinanceLogSystemService; -import org.example.multi_sys_consist.service.FinanceLogService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -import static org.example.multi_sys_consist.constant.TransactionJobType.PUSH_FINANCE_LOG; - -@Component -public class PushFinanceLogExecutor implements TransactionJobExecutor { - - @Autowired - private FinanceLogService financeLogService; - @Autowired - private FinanceLogSystemService financeLogSystemService; - - @Override - public void execute(TransactionJob job) { - JSONObject jo = JSONObject.parseObject(job.getData()); - financeLogSystemService.pushFinanceLog(financeLogService.getByApplyId(jo.getLong("applyId"))); - } - - @Override - public TransactionJobType type() { - return PUSH_FINANCE_LOG; - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/TransactionJobExecutor.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/TransactionJobExecutor.java deleted file mode 100644 index 9fe5416..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/TransactionJobExecutor.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.example.multi_sys_consist.module; - -import org.example.multi_sys_consist.constant.TransactionJobType; -import org.example.multi_sys_consist.pojo.entity.TransactionJob; - -public interface TransactionJobExecutor { - void execute(TransactionJob job); - - TransactionJobType type(); -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/impl/UpdateTodoExecutor.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/impl/UpdateTodoExecutor.java deleted file mode 100644 index d24f6e3..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/module/impl/UpdateTodoExecutor.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.example.multi_sys_consist.module.impl; - -import com.alibaba.fastjson.JSONObject; -import org.example.multi_sys_consist.constant.TransactionJobType; -import org.example.multi_sys_consist.module.TransactionJobExecutor; -import org.example.multi_sys_consist.pojo.entity.TransactionJob; -import org.example.multi_sys_consist.remote.WorkflowService; -import org.example.multi_sys_consist.service.TodoService; -import org.example.multi_sys_consist.service.TransactionJobService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -import static org.example.multi_sys_consist.constant.TransactionJobType.UPDATE_TODO; - -@Component -public class UpdateTodoExecutor implements TransactionJobExecutor { - - @Autowired - private TodoService todoService; - @Autowired - private WorkflowService workflowService; - @Autowired - private TransactionJobService transactionJobService; - - @Override - @Transactional(rollbackFor = Exception.class) - public void execute(TransactionJob job) { - JSONObject jo = JSONObject.parseObject(job.getData()); - List todoList = workflowService.getTodoList(jo.getString("workflowId")); - if (todoList != null && todoList.size() > 0) { - todoService.save(jo.getLong("applyId"), todoList); - } else { - //留下生成财务日志的任务 - JSONObject data = new JSONObject(); - data.put("applyId", jo.getLong("applyId")); - transactionJobService.create(TransactionJobType.CREATE_FINANCE_LOG, data); - } - } - - @Override - public TransactionJobType type() { - return UPDATE_TODO; - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/package-info.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/package-info.java deleted file mode 100644 index 9282fc4..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/package-info.java +++ /dev/null @@ -1,3 +0,0 @@ -package org.example.multi_sys_consist; - -//多系统一致性问题 \ No newline at end of file diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/dto/ApplyApproveVo.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/dto/ApplyApproveVo.java deleted file mode 100644 index 6948b94..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/dto/ApplyApproveVo.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.example.multi_sys_consist.pojo.dto; - -public class ApplyApproveVo { -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/dto/TransactionDto.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/dto/TransactionDto.java deleted file mode 100644 index 6e97ec1..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/dto/TransactionDto.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.example.multi_sys_consist.pojo.dto; - -public class TransactionDto { -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/ApplyEntity.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/ApplyEntity.java deleted file mode 100644 index 28e5fb4..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/ApplyEntity.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.example.multi_sys_consist.pojo.entity; - -import lombok.Data; - -@Data -public class ApplyEntity { - private Long id; - private String bpmId; -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/BizEntity.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/BizEntity.java deleted file mode 100644 index 9dd7e48..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/BizEntity.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.example.multi_sys_consist.pojo.entity; - -import lombok.Data; - -/** - * 模拟业务数据 - */ -@Data -public class BizEntity { - private Long id; -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/DemoUser.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/DemoUser.java deleted file mode 100644 index d969c81..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/DemoUser.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.example.multi_sys_consist.pojo.entity; - -import lombok.Data; - -@Data -public class DemoUser { - - private Long id; - private String account; - private String name; - -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/FinanceLog.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/FinanceLog.java deleted file mode 100644 index 1a7a883..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/FinanceLog.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.example.multi_sys_consist.pojo.entity; - -import lombok.Data; - -@Data -public class FinanceLog { - private Long applyId; - /** - * 1-未推送 2-推送成功 3-推送失败 - */ - private Integer status; -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/TransactionJob.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/TransactionJob.java deleted file mode 100644 index 35de500..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/pojo/entity/TransactionJob.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.example.multi_sys_consist.pojo.entity; - -import lombok.Data; -import org.example.multi_sys_consist.constant.TransactionJobType; - -@Data -public class TransactionJob { - private Long id; - /** - * 任务类型{@link TransactionJobType} - */ - private String type; - /** - * 任务数据 - */ - private String data; - - private String errorMessage; - /** - * 任务上下文 - */ - private String context; - - private Long createTime; - - private Long updateTime; - - private Integer retryTimes; -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/remote/FinanceLogSystemService.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/remote/FinanceLogSystemService.java deleted file mode 100644 index 004e7c8..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/remote/FinanceLogSystemService.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.example.multi_sys_consist.remote; - -import org.example.multi_sys_consist.pojo.entity.FinanceLog; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 第三方系统:财务日志系统 - */ -@Service -public class FinanceLogSystemService { - - /** - * 推送财务日志 - * @param logs - */ - public void pushFinanceLog(List logs) { - - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/remote/WorkflowService.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/remote/WorkflowService.java deleted file mode 100644 index d562f82..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/remote/WorkflowService.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.example.multi_sys_consist.remote; - -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 工作流远程服务 - */ -@Service -public class WorkflowService { - - /** - * 审核通过 - */ - public void approve(String id) { - - } - - public List getTodoList(String id) { - return null; - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/ApplyService.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/ApplyService.java deleted file mode 100644 index 89c5469..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/ApplyService.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.example.multi_sys_consist.service; - -import org.example.multi_sys_consist.mapper.ApplyMapper; -import org.example.multi_sys_consist.pojo.dto.ApplyApproveVo; -import org.example.multi_sys_consist.pojo.entity.ApplyEntity; -import org.example.multi_sys_consist.pojo.entity.FinanceLog; -import org.example.multi_sys_consist.remote.FinanceLogSystemService; -import org.example.multi_sys_consist.remote.WorkflowService; -import org.example.multi_sys_consist.service.impl.LogService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * 申请服务 - */ -@Service -public class ApplyService { - - @Autowired - private CurrentService currentService; - @Autowired - private ApplyMapper applyMapper; - @Autowired - private WorkflowService bpmService; - @Autowired - private LogService logService; - @Autowired - private TodoService todoService; - @Autowired - private FinanceLogService financeLogService; - @Autowired - private FinanceLogSystemService financeLogSystemService; - @Autowired - private ApplyService applyService; - - /** - * 审核通过 - * 1. 记录有任务数据和日志 本地 - * 2. 调用工作流服务-通过 远程写 - * 3. 更新待办人 远程读+本地 - * 4. 如果审核完成,还需要创建财务日志 本地 - * 5. 推送财务日志 远程写 - */ - @Transactional(rollbackFor = Exception.class) - public void approve(Long id, ApplyApproveVo vo) { - //---------第一步----------- - //记录业务数据 - applyMapper.saveInfo(vo); - //记录审核通过日志 - logService.addLog(currentService.currentUser().getAccount() + "审核通过了申请单" + id); - //删除本地所有待办人 - todoService.deleteByApplyId(id); - //调用工作流服务 - ApplyEntity applyEntity = applyMapper.selectById(id); - bpmService.approve(applyEntity.getBpmId()); - //---------第二步----------- - //更新待办人 - List todoList = bpmService.getTodoList(applyEntity.getBpmId()); - if (todoList != null && todoList.size() > 0) { - todoService.save(id, todoList); - } else { - //---------第三步----------- - //没有待办人,则说明已经审完了,生成财务日志,并推送财务日志系统 - List financeLog = financeLogService.createFinanceLog(id); - financeLogSystemService.pushFinanceLog(financeLog); - } - } - - public void approve2(Long id, ApplyApproveVo vo) { - applyService.approveBpm(id, vo); - List todoList = applyService.updateTodo(id); - if (todoList.isEmpty()) { - List financeLog = applyService.createFinanceLog(id); - applyService.pushFinanceLog(financeLog); - } - } - - @Transactional(rollbackFor = Exception.class) - public void approveBpm(Long id, ApplyApproveVo vo) { - //记录业务数据 - applyMapper.saveInfo(vo); - //记录审核通过日志 - logService.addLog(currentService.currentUser().getAccount() + "审核通过了申请单" + id); - //删除本地所有待办人 - todoService.deleteByApplyId(id); - //调用工作流服务 - ApplyEntity applyEntity = applyMapper.selectById(id); - bpmService.approve(applyEntity.getBpmId()); - } - - @Transactional(rollbackFor = Exception.class) - public List updateTodo(Long id) { - ApplyEntity applyEntity = applyMapper.selectById(id); - - List todoList = bpmService.getTodoList(applyEntity.getBpmId()); - if (todoList != null && todoList.size() > 0) { - todoService.save(id, todoList); - } - return todoList; - } - - @Transactional(rollbackFor = Exception.class) - public List createFinanceLog(Long id) { - return financeLogService.createFinanceLog(id); - } - - @Transactional(rollbackFor = Exception.class) - public void pushFinanceLog(List financeLog) { - financeLogSystemService.pushFinanceLog(financeLog); - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/ApplyService2.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/ApplyService2.java deleted file mode 100644 index 7843143..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/ApplyService2.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.example.multi_sys_consist.service; - -import com.alibaba.fastjson.JSONObject; -import org.example.multi_sys_consist.constant.TransactionJobType; -import org.example.multi_sys_consist.mapper.ApplyMapper; -import org.example.multi_sys_consist.pojo.dto.ApplyApproveVo; -import org.example.multi_sys_consist.pojo.entity.ApplyEntity; -import org.example.multi_sys_consist.remote.FinanceLogSystemService; -import org.example.multi_sys_consist.remote.WorkflowService; -import org.example.multi_sys_consist.service.impl.LogService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -/** - * 拆分事务后的优化方案 - */ -@Service -public class ApplyService2 { - - @Autowired - private CurrentService currentService; - @Autowired - private ApplyMapper applyMapper; - @Autowired - private WorkflowService workflowService; - @Autowired - private LogService logService; - @Autowired - private TodoService todoService; - @Autowired - private TransactionJobService transactionJobService; - - @Transactional(rollbackFor = Exception.class) - public void approve(Long id, ApplyApproveVo vo) { - //---------第一步----------- - //记录业务数据 - applyMapper.saveInfo(vo); - //记录审核通过日志 - logService.addLog(currentService.currentUser().getAccount() + "审核通过了申请单" + id); - //调用工作流服务 - ApplyEntity applyEntity = applyMapper.selectById(id); - //删除本地所有待办人 - todoService.deleteByApplyId(id); - - //留下任务:更新待办 - JSONObject data = new JSONObject(); - data.put("workflowId", applyEntity.getBpmId()); - data.put("applyId", id); - transactionJobService.create(TransactionJobType.UPDATE_TODO, data); - - //调用第三方接口:审核通过 - workflowService.approve(applyEntity.getBpmId()); - - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/CurrentService.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/CurrentService.java deleted file mode 100644 index 2943487..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/CurrentService.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.example.multi_sys_consist.service; - -import org.example.multi_sys_consist.pojo.entity.DemoUser; - -/** - * 当前用户 - */ -public interface CurrentService { - DemoUser currentUser(); - - void setCurrentUser(DemoUser user); - - void clearAll(); - - long currentTimeMillis(); - -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/FinanceLogService.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/FinanceLogService.java deleted file mode 100644 index 07edf73..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/FinanceLogService.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.example.multi_sys_consist.service; - -import org.example.multi_sys_consist.pojo.entity.FinanceLog; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 财务日志服务 - */ -@Service -public class FinanceLogService { - /** - * 创建财务日志 - * @param applyId - * @return - */ - public List createFinanceLog(Long applyId) { - return null; - } - - public List getByApplyId(Long applyId) { - return null; - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/TodoService.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/TodoService.java deleted file mode 100644 index 1b9e87f..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/TodoService.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.example.multi_sys_consist.service; - -import java.util.List; - -public class TodoService { - - /** - * 保存待办人 - */ - public void save(Long applyId, List todoList) { - - } - - /** - * 删除待办人 - * - * @param id - */ - public void deleteByApplyId(Long id) { - - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/TransactionJobService.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/TransactionJobService.java deleted file mode 100644 index 48153da..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/TransactionJobService.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.example.multi_sys_consist.service; - -import com.alibaba.fastjson.JSONObject; -import org.example.multi_sys_consist.constant.TransactionJobType; -import org.example.multi_sys_consist.pojo.entity.TransactionJob; - -/** - * 大型事务拆分后的小事务 - */ -public interface TransactionJobService { - - TransactionJob create(TransactionJobType type, JSONObject data); - - void findAndExecute(); -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/CurrentServiceImpl.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/CurrentServiceImpl.java deleted file mode 100644 index ec18c97..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/CurrentServiceImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.example.multi_sys_consist.service.impl; - -import org.example.multi_sys_consist.pojo.entity.DemoUser; -import org.example.multi_sys_consist.service.CurrentService; -import org.springframework.stereotype.Service; - -@Service -public class CurrentServiceImpl implements CurrentService { - - private final ThreadLocal holder = new ThreadLocal<>(); - private final ThreadLocal timeHolder = new ThreadLocal<>(); - - @Override - public DemoUser currentUser() { - DemoUser demoUser = holder.get(); - if (demoUser != null) { - return demoUser; - } - //todo 用项目中的方法去替换 - return new DemoUser(); - } - - @Override - public void setCurrentUser(DemoUser user) { - holder.set(user); - } - - @Override - public void clearAll() { - holder.remove(); - timeHolder.remove(); - } - - @Override - public long currentTimeMillis() { - Long time = timeHolder.get(); - return time != null ? time : System.currentTimeMillis(); - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/LogService.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/LogService.java deleted file mode 100644 index a97944e..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/LogService.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.example.multi_sys_consist.service.impl; - -import org.example.multi_sys_consist.service.CurrentService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -/** - * 模拟日志服务 - */ -@Service -public class LogService { - - @Autowired - private CurrentService currentService; - - public void addLog(String log) { - System.out.println(currentService.currentUser().getAccount() + "add log: " + log); - } -} diff --git a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/TransactionJobServiceImpl.java b/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/TransactionJobServiceImpl.java deleted file mode 100644 index e267778..0000000 --- a/demo-codes-master/demo-codes-master/src/main/java/org/example/multi_sys_consist/service/impl/TransactionJobServiceImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -package org.example.multi_sys_consist.service.impl; - -import cn.hutool.core.exceptions.ExceptionUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import lombok.extern.java.Log; -import org.example.multi_sys_consist.common.BusinessException; -import org.example.multi_sys_consist.constant.TransactionJobType; -import org.example.multi_sys_consist.mapper.TransactionJobMapper; -import org.example.multi_sys_consist.module.TransactionJobExecutor; -import org.example.multi_sys_consist.pojo.entity.DemoUser; -import org.example.multi_sys_consist.pojo.entity.TransactionJob; -import org.example.multi_sys_consist.service.CurrentService; -import org.example.multi_sys_consist.service.TransactionJobService; -import org.redisson.api.RedissonClient; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Service; -import org.springframework.transaction.support.TransactionSynchronization; -import org.springframework.transaction.support.TransactionSynchronizationAdapter; -import org.springframework.transaction.support.TransactionSynchronizationManager; -import org.springframework.web.bind.annotation.PostMapping; - -import javax.annotation.PostConstruct; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.locks.Lock; - - -@Service -public abstract class TransactionJobServiceImpl implements TransactionJobService { - private final Logger logger = LoggerFactory.getLogger(TransactionJobServiceImpl.class); - @Autowired - private TransactionJobMapper mapper; - @Autowired - private CurrentService currentService; - @Autowired - private RedissonClient redissonClient; - - private final Map executorMap = new HashMap<>(); - private final Map retryInterval = new HashMap<>(); - - { - retryInterval.put(1, 1); - retryInterval.put(2, 2); - retryInterval.put(3, 5); - retryInterval.put(4, 30); - retryInterval.put(5, 60); - retryInterval.put(6, 60 * 12); - retryInterval.put(7, 60 * 24); - retryInterval.put(8, 60 * 24 * 2); - } - - @Autowired - public void initExecutor(List executors) { - executors.forEach(e -> executorMap.put(e.type().name(), e)); - } - - @Override - public TransactionJob create(TransactionJobType type, JSONObject data) { - if (!TransactionSynchronizationManager.isActualTransactionActive()) { - throw new BusinessException("执行此方法时,必须在事务中"); - } - - TransactionJob job = new TransactionJob(); - job.setType(type.name()); - job.setData(data.toJSONString()); - job.setContext(JSON.toJSONString(currentService.currentUser())); - job.setCreateTime(System.currentTimeMillis()); - mapper.add(job); - - TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronization() { - @Override - public void afterCommit() { - doExecute(job); - } - }); - - return job; - } - - /** - * 定时任务:每分钟执行一次 - */ - @Override - @Scheduled(cron = "0 0/1 * * * ?") - public void findAndExecute() { - int offset = 0; - int limit = 100; - while (true) { - List jobs = mapper.selectList(offset, limit); - if (jobs.isEmpty()) { - return; - } - for (TransactionJob job : jobs) { - //判断重试次数,重试时间间隔随着次数的增多而逐渐增大 - Integer re = job.getRetryTimes(); - if (re == 0) { - this.doExecute(job); - } - //超过8次都没有成功,就不再重试了 - if (re > 0 && re < 8) { - Integer interval = retryInterval.get(re); - if (System.currentTimeMillis() - job.getUpdateTime() > interval * 60 * 1000) { - this.doExecute(job); - } - } - } - offset += limit; - } - } - - /** - * 注意:这里一定不能加事务,否则会因为内层事务抛异常导致外层事务被回滚,从而无法记录下报错原因 - */ - private void doExecute(TransactionJob job) { - Lock lock = getLock(job); - if (lock.tryLock()) { - try { - //设置上下文,因为是异步执行的,所以可能需要执行前设置好当时的操作用户 - DemoUser user = JSON.parseObject(job.getContext(), DemoUser.class); - currentService.setCurrentUser(user); - try { - TransactionJobExecutor executor = executorMap.get(job.getType()); - executor.execute(job); - mapper.updateSuccess(job.getId(), System.currentTimeMillis()); - } catch (Exception e) { - logger.error("error execute job:{}", job.getId(), e); - String errorMessage = ExceptionUtil.stacktraceToString(e, 10000); - mapper.updateError(job.getId(), errorMessage, System.currentTimeMillis()); - } finally { - currentService.clearAll(); - } - } finally { - lock.unlock(); - } - } - } - - private Lock getLock(TransactionJob job) { - //使用redisson获取分布式锁 - //todo 按照自己业务的需求,生成唯一的key - String key = ""; - return redissonClient.getLock(key); - } - -} diff --git a/demo-codes-master/demo-codes-master/src/test/java/org/example/AppTest.java b/demo-codes-master/demo-codes-master/src/test/java/org/example/AppTest.java deleted file mode 100644 index d5f435d..0000000 --- a/demo-codes-master/demo-codes-master/src/test/java/org/example/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.example; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/.gitignore b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/.name b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/.name deleted file mode 100644 index 9d07aa0..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -111 \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/compiler.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/compiler.xml deleted file mode 100644 index 9245515..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/compiler.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/encodings.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/encodings.xml deleted file mode 100644 index 229b726..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/encodings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/jarRepositories.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/jarRepositories.xml deleted file mode 100644 index e6b00eb..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/jarRepositories.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/misc.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/misc.xml deleted file mode 100644 index 707bae2..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/misc.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/setting.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/setting.xml deleted file mode 100644 index ed05fd8..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/setting.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/uiDesigner.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/uiDesigner.xml deleted file mode 100644 index 2b63946..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/vcs.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/vcs.xml deleted file mode 100644 index 6c0b863..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/内存溢出.iml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/内存溢出.iml deleted file mode 100644 index d6ebd48..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/.idea/内存溢出.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/.gitignore b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/compiler.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/compiler.xml deleted file mode 100644 index 9245515..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/compiler.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/encodings.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/encodings.xml deleted file mode 100644 index 63e9001..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/jarRepositories.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/jarRepositories.xml deleted file mode 100644 index e6b00eb..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/jarRepositories.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/misc.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/misc.xml deleted file mode 100644 index 5231f12..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/misc.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/uiDesigner.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/uiDesigner.xml deleted file mode 100644 index 2b63946..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/vcs.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/vcs.xml deleted file mode 100644 index b2bdec2..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/pom.xml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/pom.xml deleted file mode 100644 index 4411b8a..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/pom.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - 4.0.0 - - org.springframework.boot - spring-boot-starter-parent - 2.7.12 - - - com.itheima - jvm-optimize - 0.0.1-SNAPSHOT - jvm-optimize - jvm-optimize - - 8 - - - - org.springframework.boot - spring-boot-starter-web - - - - org.projectlombok - lombok - true - - - org.springframework.boot - spring-boot-starter-test - test - - - org.apache.commons - commons-lang3 - 3.12.0 - - - org.springframework.boot - spring-boot-starter-actuator - - - - org.springframework.boot - spring-boot-starter-logging - - - - - - org.openjdk.jol - jol-core - 0.9 - - - - org.springframework.data - spring-data-commons - - - - cn.hutool - hutool-all - 5.8.16 - - - - com.github.ben-manes.caffeine - caffeine - 2.9.3 - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - org.projectlombok - lombok - - - - - - - - - diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/JvmOptimizeApplication.java b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/JvmOptimizeApplication.java deleted file mode 100644 index 9c3a6fd..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/JvmOptimizeApplication.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.woniu.jvmoptimize; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication -public class JvmOptimizeApplication { - - public static void main(String[] args) { - SpringApplication.run(JvmOptimizeApplication.class, args); - } - -} diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/config/DemoConfiguration.java b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/config/DemoConfiguration.java deleted file mode 100644 index 56d6870..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/config/DemoConfiguration.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.woniu.jvmoptimize.config;/** - * @className: Configuration - * @author: Kevin - * @date: 2023/12/9 - **/ -* - * @Author LiuMiss - * @Description //TODO $ - * @Date $ $ - * @Param $ - * @return $ - **/ -public class Configuration { -} diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/DemoMemoryController.java b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/DemoMemoryController.java deleted file mode 100644 index 01836d5..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/controller/DemoMemoryController.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.woniu.jvmoptimize.controller; - -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * -Xmx1g -Xms1g - * 系统不处理业务的时候 也占用大量的内存 该如何排查并解决? - */ -@RestController -@RequestMapping("/dealMemory") -public class DemoMemoryController { - - @GetMapping - public ResponseEntity test() { - error(); - return ResponseEntity.ok().build(); - } - - private void error() { - throw new RuntimeException("出错了"); - } - -} diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/dao/ProductRepository.java b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/dao/ProductRepository.java deleted file mode 100644 index 54a88fa..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/dao/ProductRepository.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.woniu.jvmoptimize.dao;/** - * @className: ProductRepository - * @author: Kevin - * @date: 2023/12/9 - **/ -* - * @Author LiuMiss - * @Description //TODO $ - * @Date $ $ - * @Param $ - * @return $ - **/ -public class ProductRepository { -} diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/Product.java b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/Product.java deleted file mode 100644 index 98614ca..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/java/com/woniu/jvmoptimize/entity/Product.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.woniu.jvmoptimize.entity;/** - * @className: Product - * @author: Kevin - * @date: 2023/12/9 - **/ -* - * @Author LiuMiss - * @Description //TODO $ - * @Date $ $ - * @Param $ - * @return $ - **/ -public class Product { -} diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/resources/application.yml b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/resources/application.yml deleted file mode 100644 index 39a79cc..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/main/resources/application.yml +++ /dev/null @@ -1,18 +0,0 @@ - -#设置应用名 -spring: - application: - name: jvm-service - - - - -server: - port: 8881 - tomcat: - threads: - min-spare: 100 - max: 500 - - - diff --git a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/test/java/com/woniu/jvmoptimize/JvmOptimizeApplicationTests.java b/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/test/java/com/woniu/jvmoptimize/JvmOptimizeApplicationTests.java deleted file mode 100644 index 2250a82..0000000 --- a/系统不处理业务的时候 也占用大量的内存 该如何排查并解决?/jvm-optimize/src/test/java/com/woniu/jvmoptimize/JvmOptimizeApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.woniu.jvmoptimize; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class JvmOptimizeApplicationTests { - - @Test - void contextLoads() { - } - -}