From bd92ee954c7f5900ad4e83f751a457f18fe3cf42 Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Sun, 18 Feb 2024 20:19:01 +0800 Subject: [PATCH] init --- .gitattributes | 1 + .gitignore | 28 ++++++++++++++++++++++++ pom.xml | 6 +++++ src/main/java/net/risesoft/demo/Car.java | 22 +++++++++++++++++++ 4 files changed, 57 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..ee196f0 --- /dev/null +++ b/pom.xml @@ -0,0 +1,6 @@ + + 4.0.0 + net.risesoft.demo + demo-merceds + 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..a9fd0da --- /dev/null +++ b/src/main/java/net/risesoft/demo/Car.java @@ -0,0 +1,22 @@ +package net.risesoft.demo; + +public class Car { + private static final String version = "E300L"; + + public String getVersion() { + return version; + } + + public String getName() { + return "mercedes"; + } + + public Integer limitSpeed() { + return 135; + } + + public String hasPerson() { + return "能舒服的坐 : 4"; + } + +}