From 882fc78e7c26853e323d3116343d93164dbc9aec Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Sun, 18 Feb 2024 20:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 1 + .gitignore | 28 ++++++++++++++++++++++++ pom.xml | 6 +++++ src/main/java/net/risesoft/demo/Car.java | 21 ++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/net/risesoft/demo/Car.java diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..94f480d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4532bdd --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# Build and Release Folders +target/ + +# Eclipse +.settings/ +*.classpath +*.project +*.factorypath + +# IntelliJ IDEA +.idea +*.iml + +# vscode +.vscode + +# JRebel +rebel.xml + +# macOS +.DS_Store + +# svn +.svn/ + +# vue +kernel-standard/ +node_modules/ \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..eb040d6 --- /dev/null +++ b/pom.xml @@ -0,0 +1,6 @@ + + 4.0.0 + net.risesoft.demo + demo-audi + 1.0 + \ No newline at end of file diff --git a/src/main/java/net/risesoft/demo/Car.java b/src/main/java/net/risesoft/demo/Car.java new file mode 100644 index 0000000..5d9125c --- /dev/null +++ b/src/main/java/net/risesoft/demo/Car.java @@ -0,0 +1,21 @@ +package net.risesoft.demo; + +public class Car { + private static final String version = "A4L"; + + public String getVersion() { + return version; + } + + public String getName() { + return "audi"; + } + + public Integer limitSpeed() { + return 100; + } + + public String seatPerson(Integer a) { + return "可以坐 : " + a; + } +}