From 6b2bdf96a233c7f3af3f2559a4e562e83683e62a Mon Sep 17 00:00:00 2001
From: pengbaohao <1336737600@qq.com>
Date: Thu, 10 Oct 2024 10:09:54 +0800
Subject: [PATCH] =?UTF-8?q?springboot=E4=BB=A3=E7=A0=81=E5=87=BA=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
code/springboot/newBank/.gitignore | 2 +
code/springboot/newBank/.idea/.gitignore | 8 +++
.../newBank/.idea/artifacts/newBank_jar.xml | 44 +++++++++++++
code/springboot/newBank/.idea/compiler.xml | 18 ++++++
code/springboot/newBank/.idea/dataSources.xml | 12 ++++
.../7b213e7c-5dac-4857-9f77-51929b49230e.xml | 27 ++++++++
.../schema/information_schema.FNRwLQ.meta | 2 +
code/springboot/newBank/.idea/encodings.xml | 6 ++
.../newBank/.idea/jarRepositories.xml | 20 ++++++
code/springboot/newBank/.idea/misc.xml | 14 ++++
code/springboot/newBank/newBank.iml | 2 +
code/springboot/newBank/pom.xml | 56 ++++++++++++++++
.../newBank/src/main/java/demo/newBank.java | 12 ++++
.../controller/NewTableController.java | 64 +++++++++++++++++++
.../java/demo/pengbaohao/entity/NewTable.java | 46 +++++++++++++
.../main/java/demo/pengbaohao/makeUserNo.java | 25 ++++++++
.../repository/NewTableRepository.java | 9 +++
.../main/java/pengbaohao2/makeUserNo2.java | 17 +++++
.../src/main/resources/META-INF/MANIFEST.MF | 3 +
.../src/main/resources/application.properties | 8 +++
20 files changed, 395 insertions(+)
create mode 100644 code/springboot/newBank/.gitignore
create mode 100644 code/springboot/newBank/.idea/.gitignore
create mode 100644 code/springboot/newBank/.idea/artifacts/newBank_jar.xml
create mode 100644 code/springboot/newBank/.idea/compiler.xml
create mode 100644 code/springboot/newBank/.idea/dataSources.xml
create mode 100644 code/springboot/newBank/.idea/dataSources/7b213e7c-5dac-4857-9f77-51929b49230e.xml
create mode 100644 code/springboot/newBank/.idea/dataSources/7b213e7c-5dac-4857-9f77-51929b49230e/storage_v2/_src_/schema/information_schema.FNRwLQ.meta
create mode 100644 code/springboot/newBank/.idea/encodings.xml
create mode 100644 code/springboot/newBank/.idea/jarRepositories.xml
create mode 100644 code/springboot/newBank/.idea/misc.xml
create mode 100644 code/springboot/newBank/newBank.iml
create mode 100644 code/springboot/newBank/pom.xml
create mode 100644 code/springboot/newBank/src/main/java/demo/newBank.java
create mode 100644 code/springboot/newBank/src/main/java/demo/pengbaohao/controller/NewTableController.java
create mode 100644 code/springboot/newBank/src/main/java/demo/pengbaohao/entity/NewTable.java
create mode 100644 code/springboot/newBank/src/main/java/demo/pengbaohao/makeUserNo.java
create mode 100644 code/springboot/newBank/src/main/java/demo/pengbaohao/repository/NewTableRepository.java
create mode 100644 code/springboot/newBank/src/main/java/pengbaohao2/makeUserNo2.java
create mode 100644 code/springboot/newBank/src/main/resources/META-INF/MANIFEST.MF
create mode 100644 code/springboot/newBank/src/main/resources/application.properties
diff --git a/code/springboot/newBank/.gitignore b/code/springboot/newBank/.gitignore
new file mode 100644
index 000000000..6925f25b8
--- /dev/null
+++ b/code/springboot/newBank/.gitignore
@@ -0,0 +1,2 @@
+/target/
+/out/
\ No newline at end of file
diff --git a/code/springboot/newBank/.idea/.gitignore b/code/springboot/newBank/.idea/.gitignore
new file mode 100644
index 000000000..16459d72b
--- /dev/null
+++ b/code/springboot/newBank/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/../../../../../../../:\soft\softWare\idea2020.3\workspace\newBank\.idea/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/code/springboot/newBank/.idea/artifacts/newBank_jar.xml b/code/springboot/newBank/.idea/artifacts/newBank_jar.xml
new file mode 100644
index 000000000..809795a72
--- /dev/null
+++ b/code/springboot/newBank/.idea/artifacts/newBank_jar.xml
@@ -0,0 +1,44 @@
+
+
+ $PROJECT_DIR$/out/artifacts/newBank_jar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/.idea/compiler.xml b/code/springboot/newBank/.idea/compiler.xml
new file mode 100644
index 000000000..b4e1d0853
--- /dev/null
+++ b/code/springboot/newBank/.idea/compiler.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/.idea/dataSources.xml b/code/springboot/newBank/.idea/dataSources.xml
new file mode 100644
index 000000000..c65e5743b
--- /dev/null
+++ b/code/springboot/newBank/.idea/dataSources.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ mysql.8
+ true
+ com.mysql.cj.jdbc.Driver
+ jdbc:mysql://106.55.243.24:12711/newbank
+ $ProjectFileDir$
+
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/.idea/dataSources/7b213e7c-5dac-4857-9f77-51929b49230e.xml b/code/springboot/newBank/.idea/dataSources/7b213e7c-5dac-4857-9f77-51929b49230e.xml
new file mode 100644
index 000000000..dcb3fc4cb
--- /dev/null
+++ b/code/springboot/newBank/.idea/dataSources/7b213e7c-5dac-4857-9f77-51929b49230e.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ 5.7.26
+ InnoDB
+ InnoDB
+ exact
+
+
+ utf8_general_ci
+
+
+ latin1_swedish_ci
+
+
+ 1
+ utf8_general_ci
+
+
+ utf8_general_ci
+
+
+ utf8_general_ci
+
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/.idea/dataSources/7b213e7c-5dac-4857-9f77-51929b49230e/storage_v2/_src_/schema/information_schema.FNRwLQ.meta b/code/springboot/newBank/.idea/dataSources/7b213e7c-5dac-4857-9f77-51929b49230e/storage_v2/_src_/schema/information_schema.FNRwLQ.meta
new file mode 100644
index 000000000..1ff3db2eb
--- /dev/null
+++ b/code/springboot/newBank/.idea/dataSources/7b213e7c-5dac-4857-9f77-51929b49230e/storage_v2/_src_/schema/information_schema.FNRwLQ.meta
@@ -0,0 +1,2 @@
+#n:information_schema
+! [null, 0, null, null, -2147483648, -2147483648]
diff --git a/code/springboot/newBank/.idea/encodings.xml b/code/springboot/newBank/.idea/encodings.xml
new file mode 100644
index 000000000..63e900193
--- /dev/null
+++ b/code/springboot/newBank/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/.idea/jarRepositories.xml b/code/springboot/newBank/.idea/jarRepositories.xml
new file mode 100644
index 000000000..712ab9d98
--- /dev/null
+++ b/code/springboot/newBank/.idea/jarRepositories.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/.idea/misc.xml b/code/springboot/newBank/.idea/misc.xml
new file mode 100644
index 000000000..4b661a5ff
--- /dev/null
+++ b/code/springboot/newBank/.idea/misc.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/newBank.iml b/code/springboot/newBank/newBank.iml
new file mode 100644
index 000000000..78b2cc53b
--- /dev/null
+++ b/code/springboot/newBank/newBank.iml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/pom.xml b/code/springboot/newBank/pom.xml
new file mode 100644
index 000000000..5c05484df
--- /dev/null
+++ b/code/springboot/newBank/pom.xml
@@ -0,0 +1,56 @@
+
+
+ 4.0.0
+
+ newBank
+ newBank
+ 1.0-SNAPSHOT
+
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.1.8.RELEASE
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ mysql
+ mysql-connector-java
+
+
+ org.springframework.boot
+ spring-boot-starter-data-jpa
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ 2.5.0
+
+
+
+
+
+ 8
+ 8
+
+
+
\ No newline at end of file
diff --git a/code/springboot/newBank/src/main/java/demo/newBank.java b/code/springboot/newBank/src/main/java/demo/newBank.java
new file mode 100644
index 000000000..9adaae636
--- /dev/null
+++ b/code/springboot/newBank/src/main/java/demo/newBank.java
@@ -0,0 +1,12 @@
+package demo;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class newBank {
+
+ public static void main(String[] args) {
+ SpringApplication.run(newBank.class,args);
+ }
+}
diff --git a/code/springboot/newBank/src/main/java/demo/pengbaohao/controller/NewTableController.java b/code/springboot/newBank/src/main/java/demo/pengbaohao/controller/NewTableController.java
new file mode 100644
index 000000000..7960e8ee1
--- /dev/null
+++ b/code/springboot/newBank/src/main/java/demo/pengbaohao/controller/NewTableController.java
@@ -0,0 +1,64 @@
+package demo.pengbaohao.controller;
+
+import demo.pengbaohao.entity.NewTable;
+import demo.pengbaohao.repository.NewTableRepository;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.jdbc.core.JdbcTemplate;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.servlet.http.HttpServletRequest;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+public class NewTableController {
+ @Autowired
+ private NewTableRepository newTableRepository;
+
+ @Autowired
+ private JdbcTemplate jdbcTemplate;
+
+ @RequestMapping("/newtable")
+ public List