From f356cf59466095195e983167dae6681e29a1685c Mon Sep 17 00:00:00 2001 From: Number7 <1845377266@qq.com> Date: Wed, 7 Aug 2024 19:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E8=80=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 38 ++++++++++++++++ .idea/.gitignore | 8 ++++ .idea/discord.xml | 7 +++ .idea/encodings.xml | 8 ++++ .idea/misc.xml | 14 ++++++ .idea/vcs.xml | 6 +++ pom.xml | 85 ++++++++++++++++++++++++++++++++++++ src/test/java/test/Test.java | 40 +++++++++++++++++ 8 files changed, 206 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/discord.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 pom.xml create mode 100644 src/test/java/test/Test.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +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/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 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/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..30bab2a --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..63574ec --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..132404b --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..34c98b4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,85 @@ + + + 4.0.0 + + org.example + RKK + 1.0-SNAPSHOT + + + 8 + 8 + UTF-8 + + + + + + com.alibaba + fastjson + 1.2.79 + + + org.projectlombok + lombok + 1.18.22 + + + + org.apache.httpcomponents + httpcore + 4.4.12 + + + org.apache.httpcomponents + httpclient + 4.5.13 + + + + org.springframework.boot + spring-boot-starter-web + 2.7.6 + + + + org.springframework.boot + spring-boot + 2.7.6 + + + + com.alibaba + druid-spring-boot-starter + 1.1.10 + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 1.3.1 + + + + org.springframework.boot + spring-boot-test + 2.7.6 + + + commons-lang + commons-lang + 2.6 + + + org.projectlombok + lombok + 1.18.22 + compile + + + + + + + diff --git a/src/test/java/test/Test.java b/src/test/java/test/Test.java new file mode 100644 index 0000000..6c9ac2f --- /dev/null +++ b/src/test/java/test/Test.java @@ -0,0 +1,40 @@ +package test; + +import org.springframework.boot.test.context.SpringBootTest; + +import java.math.BigDecimal; + +/** + * @Author:liuxinyue + * @Package:test + * @Project:RKK + * @name:Test + * @Date:2024/8/7 8:45 + */ + +public class Test { + + public static void main(String[] args) { + + + BigDecimal a=BigDecimal.valueOf(10); + BigDecimal b=BigDecimal.valueOf(2); + + //加 + System.out.println(a.add(b)); + + //减 + System.out.println(a.subtract(b)); + + //除 + System.out.println(a.divide(b)); + + //乘 + System.out.println(a.multiply(b)); + + + } + + + +}