commit b6cd18322afd9fef5f5b6a2dcdc23a4635ad471d
Author: sy200 <2063514638@qq.com>
Date: Wed Aug 7 09:01:57 2024 +0800
日考18
diff --git a/bwie-test/pom.xml b/bwie-test/pom.xml
new file mode 100644
index 0000000..96af42b
--- /dev/null
+++ b/bwie-test/pom.xml
@@ -0,0 +1,43 @@
+
+
+
+ day18
+ com.bwie
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ bwie-test
+
+
+
+
+ com.alibaba
+ druid-spring-boot-starter
+ 1.2.8
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ 2.2.2
+
+
+
+ mysql
+ mysql-connector-java
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework
+ spring-test
+
+
+
+
diff --git a/bwie-test/src/main/java/com/bwie/TestApplication.java b/bwie-test/src/main/java/com/bwie/TestApplication.java
new file mode 100644
index 0000000..cc13074
--- /dev/null
+++ b/bwie-test/src/main/java/com/bwie/TestApplication.java
@@ -0,0 +1,29 @@
+package com.bwie;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+import java.math.BigDecimal;
+
+@SpringBootApplication
+public class TestApplication {
+ public static void main(String[] args) {
+ int a=10;
+ int b=20;
+
+ //1.使用BigDecimal进行加法计算,并打印在控制台上。
+ BigDecimal bigDecimal3 = BigDecimal.valueOf(a + b);
+ //2.使用BigDecimal进行减法计算,并打印在控制台上。
+ BigDecimal bigDecimal2 = BigDecimal.valueOf(a - b);
+ //3.使用BigDecimal进行乘法计算,并打印在控制台上。
+ BigDecimal bigDecimal1 = BigDecimal.valueOf(a * b);
+ //4.使用BigDecimal进行除法计算,并打印在控制台上。
+ BigDecimal bigDecimal = BigDecimal.valueOf(a / b);
+
+ System.out.println(bigDecimal);
+ System.out.println(bigDecimal1);
+ System.out.println(bigDecimal2);
+ System.out.println(bigDecimal3);
+
+ }
+}
diff --git a/bwie-test/src/main/java/com/bwie/test/Test.java b/bwie-test/src/main/java/com/bwie/test/Test.java
new file mode 100644
index 0000000..6d6f246
--- /dev/null
+++ b/bwie-test/src/main/java/com/bwie/test/Test.java
@@ -0,0 +1,25 @@
+package com.bwie.test;
+
+import com.alibaba.druid.support.json.JSONUtils;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.stereotype.Component;
+
+import java.math.BigDecimal;
+
+@Component
+public class Test {
+
+ int a=10;
+ int b=20;
+
+ //1.使用BigDecimal进行加法计算,并打印在控制台上。
+ int c=a+b;
+
+ //2.使用BigDecimal进行减法计算,并打印在控制台上。
+ int d=a-b;
+ //3.使用BigDecimal进行乘法计算,并打印在控制台上。
+ int e=a*b;
+ //4.使用BigDecimal进行除法计算,并打印在控制台上。
+ int f=a/b;
+
+}
diff --git a/bwie-test/target/bwie-test-1.0-SNAPSHOT.jar b/bwie-test/target/bwie-test-1.0-SNAPSHOT.jar
new file mode 100644
index 0000000..a1f6f05
Binary files /dev/null and b/bwie-test/target/bwie-test-1.0-SNAPSHOT.jar differ
diff --git a/bwie-test/target/classes/com/bwie/TestApplication.class b/bwie-test/target/classes/com/bwie/TestApplication.class
new file mode 100644
index 0000000..5741ea3
Binary files /dev/null and b/bwie-test/target/classes/com/bwie/TestApplication.class differ
diff --git a/bwie-test/target/classes/com/bwie/test/Test.class b/bwie-test/target/classes/com/bwie/test/Test.class
new file mode 100644
index 0000000..74b4526
Binary files /dev/null and b/bwie-test/target/classes/com/bwie/test/Test.class differ
diff --git a/bwie-test/target/maven-archiver/pom.properties b/bwie-test/target/maven-archiver/pom.properties
new file mode 100644
index 0000000..84446e5
--- /dev/null
+++ b/bwie-test/target/maven-archiver/pom.properties
@@ -0,0 +1,3 @@
+artifactId=bwie-test
+groupId=com.bwie
+version=1.0-SNAPSHOT
diff --git a/bwie-test/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/bwie-test/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
new file mode 100644
index 0000000..a2f04be
--- /dev/null
+++ b/bwie-test/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
@@ -0,0 +1,2 @@
+com\bwie\TestApplication.class
+com\bwie\test\Test.class
diff --git a/bwie-test/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/bwie-test/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
new file mode 100644
index 0000000..71ef585
--- /dev/null
+++ b/bwie-test/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
@@ -0,0 +1,2 @@
+D:\Users\Dell\Desktop\专高六资料\day18\bwie-test\src\main\java\com\bwie\TestApplication.java
+D:\Users\Dell\Desktop\专高六资料\day18\bwie-test\src\main\java\com\bwie\test\Test.java
diff --git a/bwie-test/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/bwie-test/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
new file mode 100644
index 0000000..e69de29
diff --git a/bwie-test/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/bwie-test/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
new file mode 100644
index 0000000..e69de29
diff --git a/day18.iml b/day18.iml
new file mode 100644
index 0000000..78b2cc5
--- /dev/null
+++ b/day18.iml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..4cc2708
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,59 @@
+
+
+ 4.0.0
+
+ com.bwie
+ day18
+ pom
+ 1.0-SNAPSHOT
+
+ bwie-test
+
+
+
+
+
+ spring-boot-starter-parent
+ org.springframework.boot
+ 2.6.2
+
+
+
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-dependencies
+ 2021.0.0
+ pom
+ import
+
+
+
+ com.alibaba.cloud
+ spring-cloud-alibaba-dependencies
+ 2021.1
+ pom
+ import
+
+
+
+ com.alibaba.nacos
+ nacos-client
+ 2.0.4
+
+
+
+
+ com.bwie
+ bwie-common
+ 1.0-SNAPSHOT
+
+
+
+
+
+