From 7dd938ec90fcd1726d20f68ab9e93d4b937b7a4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=91=E9=87=91=E6=88=90?= <2693239786@qq.com>
Date: Sun, 24 Sep 2023 11:08:19 +0800
Subject: [PATCH] update
---
.idea/medicine.iml | 12 +++++
src/medicine/.idea/compiler.xml | 2 +
src/medicine/.idea/encodings.xml | 2 +
...__ch_qos_logback_logback_classic_1_4_8.xml | 13 ------
src/medicine/.idea/misc.xml | 1 +
src/medicine/.idea/modules.xml | 1 +
.../197bfd3ed06240b421d21990e0f9a694f132bfac | 0
.../2ad2a1260dac6c01c8b352bb0e2ca62f513676a9 | 2 +
.../40a2343a36c9747fa26c52f19f82c0a493b5c2e0 | 2 +
.../42d62ad23989879b1e669e84287f32b9ec3b7df5 | 10 +++++
.../5feb9f75e1bc678660918562fd0ce2745899be29 | 11 +++++
.../69a341fae4073fedbb8b01a3b078c3012c70ce5f | 0
.../bc14878c6e46b0ed0df34c90b21fc25660f0e1f1 | 0
.../da7c5892671567272f27695c433f21af25c378a9 | 0
.../edeacc9d294f3b307d4238fb3f381c6838218bb6 | 2 +
.../f61ac2808b4dc885ec9d8e0a2e3a842098bfb484 | 0
.../.idea/sonarlint/issuestore/index.pb | 32 +++++++++-----
.../197bfd3ed06240b421d21990e0f9a694f132bfac | 0
.../2ad2a1260dac6c01c8b352bb0e2ca62f513676a9 | 0
.../40a2343a36c9747fa26c52f19f82c0a493b5c2e0 | 0
.../42d62ad23989879b1e669e84287f32b9ec3b7df5 | 0
.../5feb9f75e1bc678660918562fd0ce2745899be29 | 0
.../69a341fae4073fedbb8b01a3b078c3012c70ce5f | 0
.../bc14878c6e46b0ed0df34c90b21fc25660f0e1f1 | 0
.../da7c5892671567272f27695c433f21af25c378a9 | 0
.../edeacc9d294f3b307d4238fb3f381c6838218bb6 | 0
.../f61ac2808b4dc885ec9d8e0a2e3a842098bfb484 | 0
.../sonarlint/securityhotspotstore/index.pb | 32 +++++++++-----
.../Control/CancerDetectController.java | 44 +++++++++++++++++++
.../springboot/Control/WebHomeController.java | 3 +-
.../Service/CancerDetectService.java | 30 +++++++++++++
.../src/main/resources/application.properties | 3 +-
.../src/main/resources/application.yaml | 3 +-
src/medicine/test_model/test_model.iml | 19 ++++++++
34 files changed, 183 insertions(+), 41 deletions(-)
create mode 100644 .idea/medicine.iml
delete mode 100644 src/medicine/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_4_8.xml
create mode 100644 src/medicine/.idea/sonarlint/issuestore/1/9/197bfd3ed06240b421d21990e0f9a694f132bfac
create mode 100644 src/medicine/.idea/sonarlint/issuestore/2/a/2ad2a1260dac6c01c8b352bb0e2ca62f513676a9
create mode 100644 src/medicine/.idea/sonarlint/issuestore/4/0/40a2343a36c9747fa26c52f19f82c0a493b5c2e0
create mode 100644 src/medicine/.idea/sonarlint/issuestore/4/2/42d62ad23989879b1e669e84287f32b9ec3b7df5
create mode 100644 src/medicine/.idea/sonarlint/issuestore/5/f/5feb9f75e1bc678660918562fd0ce2745899be29
create mode 100644 src/medicine/.idea/sonarlint/issuestore/6/9/69a341fae4073fedbb8b01a3b078c3012c70ce5f
create mode 100644 src/medicine/.idea/sonarlint/issuestore/b/c/bc14878c6e46b0ed0df34c90b21fc25660f0e1f1
create mode 100644 src/medicine/.idea/sonarlint/issuestore/d/a/da7c5892671567272f27695c433f21af25c378a9
create mode 100644 src/medicine/.idea/sonarlint/issuestore/e/d/edeacc9d294f3b307d4238fb3f381c6838218bb6
create mode 100644 src/medicine/.idea/sonarlint/issuestore/f/6/f61ac2808b4dc885ec9d8e0a2e3a842098bfb484
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/1/9/197bfd3ed06240b421d21990e0f9a694f132bfac
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/2/a/2ad2a1260dac6c01c8b352bb0e2ca62f513676a9
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/4/0/40a2343a36c9747fa26c52f19f82c0a493b5c2e0
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/4/2/42d62ad23989879b1e669e84287f32b9ec3b7df5
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/5/f/5feb9f75e1bc678660918562fd0ce2745899be29
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/6/9/69a341fae4073fedbb8b01a3b078c3012c70ce5f
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/b/c/bc14878c6e46b0ed0df34c90b21fc25660f0e1f1
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/d/a/da7c5892671567272f27695c433f21af25c378a9
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/e/d/edeacc9d294f3b307d4238fb3f381c6838218bb6
create mode 100644 src/medicine/.idea/sonarlint/securityhotspotstore/f/6/f61ac2808b4dc885ec9d8e0a2e3a842098bfb484
create mode 100644 src/medicine/springboot/src/main/java/com/xht/springboot/Control/CancerDetectController.java
create mode 100644 src/medicine/springboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java
create mode 100644 src/medicine/test_model/test_model.iml
diff --git a/.idea/medicine.iml b/.idea/medicine.iml
new file mode 100644
index 00000000..1bef2497
--- /dev/null
+++ b/.idea/medicine.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/medicine/.idea/compiler.xml b/src/medicine/.idea/compiler.xml
index a89ee903..ff4c146f 100644
--- a/src/medicine/.idea/compiler.xml
+++ b/src/medicine/.idea/compiler.xml
@@ -7,11 +7,13 @@
+
+
diff --git a/src/medicine/.idea/encodings.xml b/src/medicine/.idea/encodings.xml
index 6390bb1a..1419fcfe 100644
--- a/src/medicine/.idea/encodings.xml
+++ b/src/medicine/.idea/encodings.xml
@@ -2,5 +2,7 @@
+
+
\ No newline at end of file
diff --git a/src/medicine/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_4_8.xml b/src/medicine/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_4_8.xml
deleted file mode 100644
index b75eb3ae..00000000
--- a/src/medicine/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_4_8.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/medicine/.idea/misc.xml b/src/medicine/.idea/misc.xml
index e7904b37..3777a728 100644
--- a/src/medicine/.idea/misc.xml
+++ b/src/medicine/.idea/misc.xml
@@ -4,6 +4,7 @@
diff --git a/src/medicine/.idea/modules.xml b/src/medicine/.idea/modules.xml
index a6cf5887..fd610834 100644
--- a/src/medicine/.idea/modules.xml
+++ b/src/medicine/.idea/modules.xml
@@ -4,6 +4,7 @@
+
\ No newline at end of file
diff --git a/src/medicine/.idea/sonarlint/issuestore/1/9/197bfd3ed06240b421d21990e0f9a694f132bfac b/src/medicine/.idea/sonarlint/issuestore/1/9/197bfd3ed06240b421d21990e0f9a694f132bfac
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/issuestore/2/a/2ad2a1260dac6c01c8b352bb0e2ca62f513676a9 b/src/medicine/.idea/sonarlint/issuestore/2/a/2ad2a1260dac6c01c8b352bb0e2ca62f513676a9
new file mode 100644
index 00000000..98f95766
--- /dev/null
+++ b/src/medicine/.idea/sonarlint/issuestore/2/a/2ad2a1260dac6c01c8b352bb0e2ca62f513676a9
@@ -0,0 +1,2 @@
+
+{ java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(8숩1
\ No newline at end of file
diff --git a/src/medicine/.idea/sonarlint/issuestore/4/0/40a2343a36c9747fa26c52f19f82c0a493b5c2e0 b/src/medicine/.idea/sonarlint/issuestore/4/0/40a2343a36c9747fa26c52f19f82c0a493b5c2e0
new file mode 100644
index 00000000..d0f8ba3c
--- /dev/null
+++ b/src/medicine/.idea/sonarlint/issuestore/4/0/40a2343a36c9747fa26c52f19f82c0a493b5c2e0
@@ -0,0 +1,2 @@
+
+t java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(
\ No newline at end of file
diff --git a/src/medicine/.idea/sonarlint/issuestore/4/2/42d62ad23989879b1e669e84287f32b9ec3b7df5 b/src/medicine/.idea/sonarlint/issuestore/4/2/42d62ad23989879b1e669e84287f32b9ec3b7df5
new file mode 100644
index 00000000..fd5965c8
--- /dev/null
+++ b/src/medicine/.idea/sonarlint/issuestore/4/2/42d62ad23989879b1e669e84287f32b9ec3b7df5
@@ -0,0 +1,10 @@
+
+{ java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(81
+l
+java:S4488"JReplace "@RequestMapping(method = RequestMethod.POST)" with "@PostMapping"(81
+g
+java:S4488"JReplace "@RequestMapping(method = RequestMethod.POST)" with "@PostMapping"(ޕ81
+l
+java:S4488+"JReplace "@RequestMapping(method = RequestMethod.POST)" with "@PostMapping"(Î81
+g
+java:S44881"JReplace "@RequestMapping(method = RequestMethod.POST)" with "@PostMapping"(ՠ8Ŀ1
\ No newline at end of file
diff --git a/src/medicine/.idea/sonarlint/issuestore/5/f/5feb9f75e1bc678660918562fd0ce2745899be29 b/src/medicine/.idea/sonarlint/issuestore/5/f/5feb9f75e1bc678660918562fd0ce2745899be29
new file mode 100644
index 00000000..024c1726
--- /dev/null
+++ b/src/medicine/.idea/sonarlint/issuestore/5/f/5feb9f75e1bc678660918562fd0ce2745899be29
@@ -0,0 +1,11 @@
+
+{ java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(81
+Z java:S106 "9Replace this use of System.out or System.err by a logger.(81
+U java:S106+"9Replace this use of System.out or System.err by a logger.(ވ81
+U java:S1066"9Replace this use of System.out or System.err by a logger.(81
+Z java:S106L"9Replace this use of System.out or System.err by a logger.(81
+Z java:S106W"9Replace this use of System.out or System.err by a logger.(㘘81
+U java:S106b"9Replace this use of System.out or System.err by a logger.(¼81
+T java:S106r"9Replace this use of System.out or System.err by a logger.(ܝ81
+U java:S106}"9Replace this use of System.out or System.err by a logger.(81
+V java:S106"9Replace this use of System.out or System.err by a logger.(ɂ81
\ No newline at end of file
diff --git a/src/medicine/.idea/sonarlint/issuestore/6/9/69a341fae4073fedbb8b01a3b078c3012c70ce5f b/src/medicine/.idea/sonarlint/issuestore/6/9/69a341fae4073fedbb8b01a3b078c3012c70ce5f
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/issuestore/b/c/bc14878c6e46b0ed0df34c90b21fc25660f0e1f1 b/src/medicine/.idea/sonarlint/issuestore/b/c/bc14878c6e46b0ed0df34c90b21fc25660f0e1f1
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/issuestore/d/a/da7c5892671567272f27695c433f21af25c378a9 b/src/medicine/.idea/sonarlint/issuestore/d/a/da7c5892671567272f27695c433f21af25c378a9
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/issuestore/e/d/edeacc9d294f3b307d4238fb3f381c6838218bb6 b/src/medicine/.idea/sonarlint/issuestore/e/d/edeacc9d294f3b307d4238fb3f381c6838218bb6
new file mode 100644
index 00000000..4f079292
--- /dev/null
+++ b/src/medicine/.idea/sonarlint/issuestore/e/d/edeacc9d294f3b307d4238fb3f381c6838218bb6
@@ -0,0 +1,2 @@
+
+{ java:S120"ZRename this package name to match the regular expression '^[a-z_]+(\.[a-z_][a-z0-9_]*)*$'.(8֝1
\ No newline at end of file
diff --git a/src/medicine/.idea/sonarlint/issuestore/f/6/f61ac2808b4dc885ec9d8e0a2e3a842098bfb484 b/src/medicine/.idea/sonarlint/issuestore/f/6/f61ac2808b4dc885ec9d8e0a2e3a842098bfb484
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/issuestore/index.pb b/src/medicine/.idea/sonarlint/issuestore/index.pb
index 438f0684..517a6b2f 100644
--- a/src/medicine/.idea/sonarlint/issuestore/index.pb
+++ b/src/medicine/.idea/sonarlint/issuestore/index.pb
@@ -1,20 +1,14 @@
-}
-Mspringboot/src/main/java/com/xht/springboot/Control/GetSpiderInformation.java,6\a\6ae8bd6e0b13a9d9272e5cd44460d2d0a72091d9
w
Gspringboot/src/main/java/com/xht/springboot/Dao/PersonalHomeMapper.java,8\e\8ea61bcc473345da7a8363076b3ae562bc76fedc
z
Jspringboot/src/main/java/com/xht/springboot/pythonspider/PythonSpider.java,8\2\82d065e13dbb46b69838db763af0105eec47337f
p
@springboot/src/main/java/com/xht/springboot/Entity/UserHome.java,0\b\0bf6f777ae20a7657065bc4a2b2a9f1f3b4876b1
-B
-springboot/pom.xml,e\4\e46aee6c7c512a7b48980a296fca0acf004a1907
{
Kspringboot/src/main/java/com/xht/springboot/Dao/LoginAndRegisterMapper.java,6\4\6455addaf8475c1ee66ddf019aba9934cde58b33
q
Aspringboot/src/main/java/com/xht/springboot/Entity/UserLogin.java,1\3\139a0da36daad8c438a5607ee212d1f38a505779
-r
-Bspringboot/src/main/java/com/xht/springboot/Tip/RequestResult.java,8\a\8ac776bbbb6e77f29694ccc4476b533f9f4573da
q
Aspringboot/src/main/java/com/xht/springboot/Entity/UserReply.java,0\5\051eaf551b928a8ccf651611c070ebb2b8155264
|
@@ -31,17 +25,31 @@ X
0train_cancer/train_model/data_gen/data_output.py,6\9\69a341fae4073fedbb8b01a3b078c3012c70ce5f
Ospringboot/src/main/java/com/xht/springboot/Control/PersonalHomeController.java,b\e\be5bf7d32cedc052850e2cc0c99f2cf7357cac12
-
-Sspringboot/src/main/java/com/xht/springboot/Control/LoginAndRegisterController.java,4\2\42d62ad23989879b1e669e84287f32b9ec3b7df5
p
@springboot/src/main/java/com/xht/springboot/Entity/UserText.java,4\0\40a2343a36c9747fa26c52f19f82c0a493b5c2e0
s
Cspringboot/src/main/java/com/xht/springboot/Entity/UserComment.java,9\3\932ae6b8f9f42f924c25e69e48dc30fddd63ec28
r
Bspringboot/src/main/java/com/xht/springboot/Dao/WebHomeMapper.java,2\a\2ad2a1260dac6c01c8b352bb0e2ca62f513676a9
-v
-Fspringboot/src/main/java/com/xht/springboot/SpringbootApplication.java,4\0\40324953a2003c0d6c6b3ceece38a620d48a0df7
+z
+Jspringboot/src/main/java/com/xht/springboot/Control/WebHomeController.java,e\d\edeacc9d294f3b307d4238fb3f381c6838218bb6
+
+Sspringboot/src/main/java/com/xht/springboot/Control/LoginAndRegisterController.java,4\2\42d62ad23989879b1e669e84287f32b9ec3b7df5
w
Gspringboot/src/main/java/com/xht/springboot/Service/WebHomeService.java,5\f\5feb9f75e1bc678660918562fd0ce2745899be29
-z
-Jspringboot/src/main/java/com/xht/springboot/Control/WebHomeController.java,e\d\edeacc9d294f3b307d4238fb3f381c6838218bb6
\ No newline at end of file
+}
+Mspringboot/src/main/java/com/xht/springboot/Control/GetSpiderInformation.java,6\a\6ae8bd6e0b13a9d9272e5cd44460d2d0a72091d9
+B
+springboot/pom.xml,e\4\e46aee6c7c512a7b48980a296fca0acf004a1907
+^
+.test_model/src/main/java/org/example/Main.java,7\f\7f8771ebddaacf6a70143dc43243816aa7f7e066
+B
+test_model/pom.xml,c\5\c5247f1a7a8da981f49c6fe2b5fc0ba5e9b426bb
+r
+Bspringboot/src/main/java/com/xht/springboot/Tip/RequestResult.java,8\a\8ac776bbbb6e77f29694ccc4476b533f9f4573da
+v
+Fspringboot/src/main/java/com/xht/springboot/SpringbootApplication.java,4\0\40324953a2003c0d6c6b3ceece38a620d48a0df7
+
+Ospringboot/src/main/java/com/xht/springboot/Control/CancerDetectController.java,b\7\b7cd5493e06e5fd9d49343a72ed251284cff7045
+|
+Lspringboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java,5\a\5aa79857db1807fe40f0941af9e17d8a19d8bc97
\ No newline at end of file
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/1/9/197bfd3ed06240b421d21990e0f9a694f132bfac b/src/medicine/.idea/sonarlint/securityhotspotstore/1/9/197bfd3ed06240b421d21990e0f9a694f132bfac
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/2/a/2ad2a1260dac6c01c8b352bb0e2ca62f513676a9 b/src/medicine/.idea/sonarlint/securityhotspotstore/2/a/2ad2a1260dac6c01c8b352bb0e2ca62f513676a9
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/4/0/40a2343a36c9747fa26c52f19f82c0a493b5c2e0 b/src/medicine/.idea/sonarlint/securityhotspotstore/4/0/40a2343a36c9747fa26c52f19f82c0a493b5c2e0
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/4/2/42d62ad23989879b1e669e84287f32b9ec3b7df5 b/src/medicine/.idea/sonarlint/securityhotspotstore/4/2/42d62ad23989879b1e669e84287f32b9ec3b7df5
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/5/f/5feb9f75e1bc678660918562fd0ce2745899be29 b/src/medicine/.idea/sonarlint/securityhotspotstore/5/f/5feb9f75e1bc678660918562fd0ce2745899be29
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/6/9/69a341fae4073fedbb8b01a3b078c3012c70ce5f b/src/medicine/.idea/sonarlint/securityhotspotstore/6/9/69a341fae4073fedbb8b01a3b078c3012c70ce5f
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/b/c/bc14878c6e46b0ed0df34c90b21fc25660f0e1f1 b/src/medicine/.idea/sonarlint/securityhotspotstore/b/c/bc14878c6e46b0ed0df34c90b21fc25660f0e1f1
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/d/a/da7c5892671567272f27695c433f21af25c378a9 b/src/medicine/.idea/sonarlint/securityhotspotstore/d/a/da7c5892671567272f27695c433f21af25c378a9
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/e/d/edeacc9d294f3b307d4238fb3f381c6838218bb6 b/src/medicine/.idea/sonarlint/securityhotspotstore/e/d/edeacc9d294f3b307d4238fb3f381c6838218bb6
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/f/6/f61ac2808b4dc885ec9d8e0a2e3a842098bfb484 b/src/medicine/.idea/sonarlint/securityhotspotstore/f/6/f61ac2808b4dc885ec9d8e0a2e3a842098bfb484
new file mode 100644
index 00000000..e69de29b
diff --git a/src/medicine/.idea/sonarlint/securityhotspotstore/index.pb b/src/medicine/.idea/sonarlint/securityhotspotstore/index.pb
index 2d229e2a..5a2eaed0 100644
--- a/src/medicine/.idea/sonarlint/securityhotspotstore/index.pb
+++ b/src/medicine/.idea/sonarlint/securityhotspotstore/index.pb
@@ -1,16 +1,10 @@
-}
-Mspringboot/src/main/java/com/xht/springboot/Control/GetSpiderInformation.java,6\a\6ae8bd6e0b13a9d9272e5cd44460d2d0a72091d9
w
Gspringboot/src/main/java/com/xht/springboot/Dao/PersonalHomeMapper.java,8\e\8ea61bcc473345da7a8363076b3ae562bc76fedc
z
Jspringboot/src/main/java/com/xht/springboot/pythonspider/PythonSpider.java,8\2\82d065e13dbb46b69838db763af0105eec47337f
p
@springboot/src/main/java/com/xht/springboot/Entity/UserHome.java,0\b\0bf6f777ae20a7657065bc4a2b2a9f1f3b4876b1
-B
-springboot/pom.xml,e\4\e46aee6c7c512a7b48980a296fca0acf004a1907
-r
-Bspringboot/src/main/java/com/xht/springboot/Tip/RequestResult.java,8\a\8ac776bbbb6e77f29694ccc4476b533f9f4573da
q
Aspringboot/src/main/java/com/xht/springboot/Entity/UserLogin.java,1\3\139a0da36daad8c438a5607ee212d1f38a505779
{
@@ -29,19 +23,33 @@ X
-train_cancer/train_model/gpu_cpu/check_cpu.py,f\6\f61ac2808b4dc885ec9d8e0a2e3a842098bfb484
`
0train_cancer/train_model/data_gen/data_output.py,6\9\69a341fae4073fedbb8b01a3b078c3012c70ce5f
-v
-Fspringboot/src/main/java/com/xht/springboot/SpringbootApplication.java,4\0\40324953a2003c0d6c6b3ceece38a620d48a0df7
r
Bspringboot/src/main/java/com/xht/springboot/Dao/WebHomeMapper.java,2\a\2ad2a1260dac6c01c8b352bb0e2ca62f513676a9
Ospringboot/src/main/java/com/xht/springboot/Control/PersonalHomeController.java,b\e\be5bf7d32cedc052850e2cc0c99f2cf7357cac12
-
-Sspringboot/src/main/java/com/xht/springboot/Control/LoginAndRegisterController.java,4\2\42d62ad23989879b1e669e84287f32b9ec3b7df5
s
Cspringboot/src/main/java/com/xht/springboot/Entity/UserComment.java,9\3\932ae6b8f9f42f924c25e69e48dc30fddd63ec28
p
@springboot/src/main/java/com/xht/springboot/Entity/UserText.java,4\0\40a2343a36c9747fa26c52f19f82c0a493b5c2e0
+z
+Jspringboot/src/main/java/com/xht/springboot/Control/WebHomeController.java,e\d\edeacc9d294f3b307d4238fb3f381c6838218bb6
w
Gspringboot/src/main/java/com/xht/springboot/Service/WebHomeService.java,5\f\5feb9f75e1bc678660918562fd0ce2745899be29
-z
-Jspringboot/src/main/java/com/xht/springboot/Control/WebHomeController.java,e\d\edeacc9d294f3b307d4238fb3f381c6838218bb6
\ No newline at end of file
+
+Sspringboot/src/main/java/com/xht/springboot/Control/LoginAndRegisterController.java,4\2\42d62ad23989879b1e669e84287f32b9ec3b7df5
+}
+Mspringboot/src/main/java/com/xht/springboot/Control/GetSpiderInformation.java,6\a\6ae8bd6e0b13a9d9272e5cd44460d2d0a72091d9
+B
+springboot/pom.xml,e\4\e46aee6c7c512a7b48980a296fca0acf004a1907
+^
+.test_model/src/main/java/org/example/Main.java,7\f\7f8771ebddaacf6a70143dc43243816aa7f7e066
+B
+test_model/pom.xml,c\5\c5247f1a7a8da981f49c6fe2b5fc0ba5e9b426bb
+
+Ospringboot/src/main/java/com/xht/springboot/Control/CancerDetectController.java,b\7\b7cd5493e06e5fd9d49343a72ed251284cff7045
+r
+Bspringboot/src/main/java/com/xht/springboot/Tip/RequestResult.java,8\a\8ac776bbbb6e77f29694ccc4476b533f9f4573da
+v
+Fspringboot/src/main/java/com/xht/springboot/SpringbootApplication.java,4\0\40324953a2003c0d6c6b3ceece38a620d48a0df7
+|
+Lspringboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java,5\a\5aa79857db1807fe40f0941af9e17d8a19d8bc97
\ No newline at end of file
diff --git a/src/medicine/springboot/src/main/java/com/xht/springboot/Control/CancerDetectController.java b/src/medicine/springboot/src/main/java/com/xht/springboot/Control/CancerDetectController.java
new file mode 100644
index 00000000..8fbcbcb6
--- /dev/null
+++ b/src/medicine/springboot/src/main/java/com/xht/springboot/Control/CancerDetectController.java
@@ -0,0 +1,44 @@
+package com.xht.springboot.Control;
+
+import com.xht.springboot.Service.CancerDetectService;
+import com.xht.springboot.Tip.RequestResult;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.io.File;
+import java.io.IOException;
+
+@Controller
+@RequestMapping("/picture")
+public class CancerDetectController {
+ @Autowired
+ CancerDetectService cancerDetectService;
+
+ @PostMapping("/upload")
+ @ResponseBody
+ public RequestResult upload(MultipartFile cancerPicture) throws IOException {
+ RequestResult requestResult = new RequestResult();
+ if(cancerPicture.isEmpty()){
+ requestResult.status = RequestResult.FAIL;
+ }else{
+ if(cancerDetectService.upload(cancerPicture))
+ {
+ requestResult.status = RequestResult.OK;
+ }else{
+ requestResult.status = RequestResult.FAIL;
+ }
+ }
+ return requestResult;
+ }
+
+ @RequestMapping("/")
+ public String s1(){
+ return "test";
+ }
+}
diff --git a/src/medicine/springboot/src/main/java/com/xht/springboot/Control/WebHomeController.java b/src/medicine/springboot/src/main/java/com/xht/springboot/Control/WebHomeController.java
index baa93604..86c7896c 100644
--- a/src/medicine/springboot/src/main/java/com/xht/springboot/Control/WebHomeController.java
+++ b/src/medicine/springboot/src/main/java/com/xht/springboot/Control/WebHomeController.java
@@ -38,11 +38,10 @@ public class WebHomeController {
public RequestResult postText(@RequestBody UserText userText){
if(webHomeService.postUserText(userText)){
requestResult.status = RequestResult.OK;
- return requestResult;
}else {
requestResult.status = RequestResult.FAIL;
- return requestResult;
}
+ return requestResult;
}
@PostMapping("/deltext")
diff --git a/src/medicine/springboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java b/src/medicine/springboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java
new file mode 100644
index 00000000..e6b17ae4
--- /dev/null
+++ b/src/medicine/springboot/src/main/java/com/xht/springboot/Service/CancerDetectService.java
@@ -0,0 +1,30 @@
+package com.xht.springboot.Service;
+
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.stereotype.Service;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.io.File;
+import java.io.IOException;
+
+@Service
+public class CancerDetectService {
+ @Value("${upload.dir}")
+ String dir;
+
+ public boolean upload(MultipartFile cancerPicture) throws IOException {
+ File fileDir = new File("springboot/src/main/resources/"+dir);
+ if(!fileDir.exists()){
+ fileDir.mkdirs();
+ }
+
+ String originalFilename = cancerPicture.getOriginalFilename();
+ if(cancerPicture.isEmpty())
+ return false;
+ else{
+ System.out.println(fileDir.getAbsolutePath());
+ cancerPicture.transferTo(new File(fileDir.getAbsolutePath() + "/" + originalFilename));
+ return true;
+ }
+ }
+}
diff --git a/src/medicine/springboot/src/main/resources/application.properties b/src/medicine/springboot/src/main/resources/application.properties
index a3ac65ce..5ab95c45 100644
--- a/src/medicine/springboot/src/main/resources/application.properties
+++ b/src/medicine/springboot/src/main/resources/application.properties
@@ -1 +1,2 @@
-server.port=8080
\ No newline at end of file
+server.port=8080
+upload.dir=upload\\cancerpictures
\ No newline at end of file
diff --git a/src/medicine/springboot/src/main/resources/application.yaml b/src/medicine/springboot/src/main/resources/application.yaml
index 4f17caf5..a1859131 100644
--- a/src/medicine/springboot/src/main/resources/application.yaml
+++ b/src/medicine/springboot/src/main/resources/application.yaml
@@ -9,4 +9,5 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/medicine_web
username: root
- password: molong
\ No newline at end of file
+ password: molong
+
diff --git a/src/medicine/test_model/test_model.iml b/src/medicine/test_model/test_model.iml
new file mode 100644
index 00000000..6d640387
--- /dev/null
+++ b/src/medicine/test_model/test_model.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file