From 073f9b2c763a4b2d68808fbdef6bc1e889c0096d Mon Sep 17 00:00:00 2001 From: bruce Date: Wed, 12 Feb 2025 23:24:38 +0800 Subject: [PATCH] =?UTF-8?q?v0.1.0=20=E9=87=8D=E5=81=9A=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 33 +++++++ .mvn/wrapper/maven-wrapper.properties | 19 ++++ pom.xml | 93 +++++++++++++++++++ .../java/com/bruce/sams/SamsApplication.java | 13 +++ src/main/resources/application.properties | 1 + .../com/bruce/sams/SamsApplicationTests.java | 13 +++ 6 files changed, 172 insertions(+) create mode 100644 .gitignore create mode 100644 .mvn/wrapper/maven-wrapper.properties create mode 100644 pom.xml create mode 100644 src/main/java/com/bruce/sams/SamsApplication.java create mode 100644 src/main/resources/application.properties create mode 100644 src/test/java/com/bruce/sams/SamsApplicationTests.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..a83d8137 --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +readme.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 00000000..d58dfb70 --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +wrapperVersion=3.3.2 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..b1d3582c --- /dev/null +++ b/pom.xml @@ -0,0 +1,93 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.4.2 + + + com.bruce + SAMS + 0.0.1-SNAPSHOT + SAMS + SAMS + + + + + + + + + + + + + + + 17 + + + + org.springframework.boot + spring-boot-starter-security + + + org.springframework.boot + spring-boot-starter-web + + + + com.mysql + mysql-connector-j + runtime + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + org.springframework.security + spring-security-test + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + org.projectlombok + lombok + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/com/bruce/sams/SamsApplication.java b/src/main/java/com/bruce/sams/SamsApplication.java new file mode 100644 index 00000000..2bd38889 --- /dev/null +++ b/src/main/java/com/bruce/sams/SamsApplication.java @@ -0,0 +1,13 @@ +package com.bruce.sams; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SamsApplication { + + public static void main(String[] args) { + SpringApplication.run(SamsApplication.class, args); + } + +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 00000000..7d8ce2b4 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.application.name=SAMS diff --git a/src/test/java/com/bruce/sams/SamsApplicationTests.java b/src/test/java/com/bruce/sams/SamsApplicationTests.java new file mode 100644 index 00000000..2a3da01b --- /dev/null +++ b/src/test/java/com/bruce/sams/SamsApplicationTests.java @@ -0,0 +1,13 @@ +package com.bruce.sams; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class SamsApplicationTests { + + @Test + void contextLoads() { + } + +}