From 5a6caff1051238ab32c977a9f801f8917ddec317 Mon Sep 17 00:00:00 2001 From: Hadi Gholipour Date: Wed, 15 Apr 2026 00:44:40 +0200 Subject: [PATCH 1/2] spring boot lab --- .idea/.gitignore | 10 ++++ .idea/compiler.xml | 18 ++++++ .idea/encodings.xml | 6 ++ .idea/jarRepositories.xml | 20 +++++++ .idea/lab-java-springboot-fundamentals.iml | 9 +++ .idea/misc.xml | 14 +++++ .idea/vcs.xml | 6 ++ pom.xml | 60 +++++++++++++++++++ .../Week4springbootApplication.java | 13 ++++ .../controller/GreetingController.java | 12 ++++ .../controller/TimeController.java | 4 ++ .../controller/WeatherController.java | 4 ++ .../week4springboot/models/WeatherInfo.java | 4 ++ .../week4springboot/service/TimeService.java | 4 ++ .../service/WeatherService.java | 4 ++ 15 files changed, 188 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/lab-java-springboot-fundamentals.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 pom.xml create mode 100644 src/main/java/com/example/week4springboot/Week4springbootApplication.java create mode 100644 src/main/java/com/example/week4springboot/controller/GreetingController.java create mode 100644 src/main/java/com/example/week4springboot/controller/TimeController.java create mode 100644 src/main/java/com/example/week4springboot/controller/WeatherController.java create mode 100644 src/main/java/com/example/week4springboot/models/WeatherInfo.java create mode 100644 src/main/java/com/example/week4springboot/service/TimeService.java create mode 100644 src/main/java/com/example/week4springboot/service/WeatherService.java diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..ab1f416 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..e54d999 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..63e9001 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/lab-java-springboot-fundamentals.iml b/.idea/lab-java-springboot-fundamentals.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/lab-java-springboot-fundamentals.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d2b5d0f --- /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..35eb1dd --- /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..88a944c --- /dev/null +++ b/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 4.0.5 + + + com.example + week4springboot + 0.0.1-SNAPSHOT + + + + + + + + + + + + + + + + + 17 + + + + org.springframework.boot + spring-boot-starter-webmvc + + + + org.springframework.boot + spring-boot-devtools + runtime + true + + + org.springframework.boot + spring-boot-starter-webmvc-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/src/main/java/com/example/week4springboot/Week4springbootApplication.java b/src/main/java/com/example/week4springboot/Week4springbootApplication.java new file mode 100644 index 0000000..2dae2ef --- /dev/null +++ b/src/main/java/com/example/week4springboot/Week4springbootApplication.java @@ -0,0 +1,13 @@ +package com.example.week4springboot; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Week4springbootApplication { + + public static void main(String[] args) { + SpringApplication.run(Week4springbootApplication.class, args); + } + +} diff --git a/src/main/java/com/example/week4springboot/controller/GreetingController.java b/src/main/java/com/example/week4springboot/controller/GreetingController.java new file mode 100644 index 0000000..a307b59 --- /dev/null +++ b/src/main/java/com/example/week4springboot/controller/GreetingController.java @@ -0,0 +1,12 @@ +package com.example.week4springboot.controller; + +import org.springframework.web.bind.annotation.*; + +@RestController +public class GreetingController { + + @GetMapping("/hello") + public String hello() { + return "Hello World!"; + } +} \ No newline at end of file diff --git a/src/main/java/com/example/week4springboot/controller/TimeController.java b/src/main/java/com/example/week4springboot/controller/TimeController.java new file mode 100644 index 0000000..2181c84 --- /dev/null +++ b/src/main/java/com/example/week4springboot/controller/TimeController.java @@ -0,0 +1,4 @@ +package com.example.week4springboot.controller; + +public class TimeController { +} diff --git a/src/main/java/com/example/week4springboot/controller/WeatherController.java b/src/main/java/com/example/week4springboot/controller/WeatherController.java new file mode 100644 index 0000000..4e66f9d --- /dev/null +++ b/src/main/java/com/example/week4springboot/controller/WeatherController.java @@ -0,0 +1,4 @@ +package com.example.week4springboot.controller; + +public class WeatherController { +} diff --git a/src/main/java/com/example/week4springboot/models/WeatherInfo.java b/src/main/java/com/example/week4springboot/models/WeatherInfo.java new file mode 100644 index 0000000..076fdfb --- /dev/null +++ b/src/main/java/com/example/week4springboot/models/WeatherInfo.java @@ -0,0 +1,4 @@ +package com.example.week4springboot.models; + +public class WeatherInfo { +} diff --git a/src/main/java/com/example/week4springboot/service/TimeService.java b/src/main/java/com/example/week4springboot/service/TimeService.java new file mode 100644 index 0000000..d33f12a --- /dev/null +++ b/src/main/java/com/example/week4springboot/service/TimeService.java @@ -0,0 +1,4 @@ +package com.example.week4springboot.service; + +public class TimeService { +} diff --git a/src/main/java/com/example/week4springboot/service/WeatherService.java b/src/main/java/com/example/week4springboot/service/WeatherService.java new file mode 100644 index 0000000..82a15f0 --- /dev/null +++ b/src/main/java/com/example/week4springboot/service/WeatherService.java @@ -0,0 +1,4 @@ +package com.example.week4springboot.service; + +public class WeatherService { +} From c34a3d5890136c1518006c2dc0975701d86517ec Mon Sep 17 00:00:00 2001 From: Hadi Gholipour Date: Wed, 15 Apr 2026 00:47:36 +0200 Subject: [PATCH 2/2] spring boot --- .DS_Store | Bin 0 -> 6148 bytes HELP.md | 25 ++ mvnw | 295 ++++++++++++++++++ mvnw.cmd | 189 +++++++++++ src/.DS_Store | Bin 0 -> 6148 bytes src/main/.DS_Store | Bin 0 -> 6148 bytes src/main/java/.DS_Store | Bin 0 -> 6148 bytes src/main/java/com/.DS_Store | Bin 0 -> 6148 bytes src/main/java/com/example/.DS_Store | Bin 0 -> 6148 bytes .../controller/GreetingController.java | 29 ++ .../controller/TimeController.java | 35 ++- .../controller/WeatherController.java | 35 ++- .../week4springboot/service/TimeService.java | 21 +- .../service/WeatherService.java | 21 +- src/main/resources/application.properties | 1 + target/classes/application.properties | 1 + .../Week4springbootApplication.class | Bin 0 -> 788 bytes .../controller/GreetingController.class | Bin 0 -> 2293 bytes .../controller/TimeController.class | Bin 0 -> 1855 bytes .../controller/WeatherController.class | Bin 0 -> 1988 bytes .../week4springboot/models/WeatherInfo.class | Bin 0 -> 328 bytes .../week4springboot/service/TimeService.class | Bin 0 -> 965 bytes .../service/WeatherService.class | Bin 0 -> 959 bytes 23 files changed, 648 insertions(+), 4 deletions(-) create mode 100644 .DS_Store create mode 100644 HELP.md create mode 100755 mvnw create mode 100644 mvnw.cmd create mode 100644 src/.DS_Store create mode 100644 src/main/.DS_Store create mode 100644 src/main/java/.DS_Store create mode 100644 src/main/java/com/.DS_Store create mode 100644 src/main/java/com/example/.DS_Store create mode 100644 src/main/resources/application.properties create mode 100644 target/classes/application.properties create mode 100644 target/classes/com/example/week4springboot/Week4springbootApplication.class create mode 100644 target/classes/com/example/week4springboot/controller/GreetingController.class create mode 100644 target/classes/com/example/week4springboot/controller/TimeController.class create mode 100644 target/classes/com/example/week4springboot/controller/WeatherController.class create mode 100644 target/classes/com/example/week4springboot/models/WeatherInfo.class create mode 100644 target/classes/com/example/week4springboot/service/TimeService.class create mode 100644 target/classes/com/example/week4springboot/service/WeatherService.class diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..383d6813513ffa15c556befe1d561a5587e99954 GIT binary patch literal 6148 zcmeHK%}>-o6n_J&y9JT*r9d=k*oz4SfpCBr!@59(D1op97Xg>HTb4?9X44jykC5zH zPkQ$c@aoCLi$^bBy&3-my?W9&9~D^Et1;S_%=}*G{od=$uiKd|0FdlnaTGuYfD|^4 zi5Bb{7?1OI!J5>FhDbz>VJJg!-eb1qU0}xpu>!FIf13jQ-A%$A%)&!hf-~wUk5-PxuHw*{Zd*`b+@xA8k zEHqfgIp2dBSU_wv?`&O0GX&s+U02s{%(ALM#qz{l-&z&V4Z@L;Po$|iap`h0sU=&J zo4FlU&4p&T7i3L;onNgm=2?+%TC1*8E$H3TjE1I59bY84MF%Mxk6c=0)hyei#X#id zWI)qWT0!qUKAsqv7&1mjM^A=~V?P|N;(b?6}-OUw{9Ng5G7B_HN1N z^PFZL^RwQbvtIJuVy2be|50a`%15p`za6 z_IBWe`7{1nL2nOipLyOA3*69UbZsL*mFGjJJWsb7-f} z$HXQ(#3fH_Z>o90z>% literal 0 HcmV?d00001 diff --git a/HELP.md b/HELP.md new file mode 100644 index 0000000..74ed23e --- /dev/null +++ b/HELP.md @@ -0,0 +1,25 @@ +# Getting Started + +### Reference Documentation +For further reference, please consider the following sections: + +* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) +* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/4.0.5/maven-plugin) +* [Create an OCI image](https://docs.spring.io/spring-boot/4.0.5/maven-plugin/build-image.html) +* [Spring Web](https://docs.spring.io/spring-boot/4.0.5/reference/web/servlet.html) +* [Spring Boot DevTools](https://docs.spring.io/spring-boot/4.0.5/reference/using/devtools.html) + +### Guides +The following guides illustrate how to use some features concretely: + +* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) +* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) +* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/) + +### Maven Parent overrides + +Due to Maven's design, elements are inherited from the parent POM to the project POM. +While most of the inheritance is fine, it also inherits unwanted elements like `` and `` from the parent. +To prevent this, the project POM contains empty overrides for these elements. +If you manually switch to a different parent and actually want the inheritance, you need to remove those overrides. + diff --git a/mvnw b/mvnw new file mode 100755 index 0000000..bd8896b --- /dev/null +++ b/mvnw @@ -0,0 +1,295 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# 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. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Apache Maven Wrapper startup batch script, version 3.3.4 +# +# Optional ENV vars +# ----------------- +# JAVA_HOME - location of a JDK home dir, required when download maven via java source +# MVNW_REPOURL - repo url base for downloading maven distribution +# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven +# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output +# ---------------------------------------------------------------------------- + +set -euf +[ "${MVNW_VERBOSE-}" != debug ] || set -x + +# OS specific support. +native_path() { printf %s\\n "$1"; } +case "$(uname)" in +CYGWIN* | MINGW*) + [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")" + native_path() { cygpath --path --windows "$1"; } + ;; +esac + +# set JAVACMD and JAVACCMD +set_java_home() { + # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched + if [ -n "${JAVA_HOME-}" ]; then + if [ -x "$JAVA_HOME/jre/sh/java" ]; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + JAVACCMD="$JAVA_HOME/jre/sh/javac" + else + JAVACMD="$JAVA_HOME/bin/java" + JAVACCMD="$JAVA_HOME/bin/javac" + + if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then + echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2 + echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2 + return 1 + fi + fi + else + JAVACMD="$( + 'set' +e + 'unset' -f command 2>/dev/null + 'command' -v java + )" || : + JAVACCMD="$( + 'set' +e + 'unset' -f command 2>/dev/null + 'command' -v javac + )" || : + + if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then + echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2 + return 1 + fi + fi +} + +# hash string like Java String::hashCode +hash_string() { + str="${1:-}" h=0 + while [ -n "$str" ]; do + char="${str%"${str#?}"}" + h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296)) + str="${str#?}" + done + printf %x\\n $h +} + +verbose() { :; } +[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; } + +die() { + printf %s\\n "$1" >&2 + exit 1 +} + +trim() { + # MWRAPPER-139: + # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds. + # Needed for removing poorly interpreted newline sequences when running in more + # exotic environments such as mingw bash on Windows. + printf "%s" "${1}" | tr -d '[:space:]' +} + +scriptDir="$(dirname "$0")" +scriptName="$(basename "$0")" + +# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties +while IFS="=" read -r key value; do + case "${key-}" in + distributionUrl) distributionUrl=$(trim "${value-}") ;; + distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;; + esac +done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties" +[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties" + +case "${distributionUrl##*/}" in +maven-mvnd-*bin.*) + MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ + case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in + *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;; + :Darwin*x86_64) distributionPlatform=darwin-amd64 ;; + :Darwin*arm64) distributionPlatform=darwin-aarch64 ;; + :Linux*x86_64*) distributionPlatform=linux-amd64 ;; + *) + echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2 + distributionPlatform=linux-amd64 + ;; + esac + distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip" + ;; +maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;; +*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;; +esac + +# apply MVNW_REPOURL and calculate MAVEN_HOME +# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/ +[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}" +distributionUrlName="${distributionUrl##*/}" +distributionUrlNameMain="${distributionUrlName%.*}" +distributionUrlNameMain="${distributionUrlNameMain%-bin}" +MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}" +MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")" + +exec_maven() { + unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || : + exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD" +} + +if [ -d "$MAVEN_HOME" ]; then + verbose "found existing MAVEN_HOME at $MAVEN_HOME" + exec_maven "$@" +fi + +case "${distributionUrl-}" in +*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;; +*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;; +esac + +# prepare tmp dir +if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then + clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; } + trap clean HUP INT TERM EXIT +else + die "cannot create temp dir" +fi + +mkdir -p -- "${MAVEN_HOME%/*}" + +# Download and Install Apache Maven +verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." +verbose "Downloading from: $distributionUrl" +verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" + +# select .zip or .tar.gz +if ! command -v unzip >/dev/null; then + distributionUrl="${distributionUrl%.zip}.tar.gz" + distributionUrlName="${distributionUrl##*/}" +fi + +# verbose opt +__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR='' +[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v + +# normalize http auth +case "${MVNW_PASSWORD:+has-password}" in +'') MVNW_USERNAME='' MVNW_PASSWORD='' ;; +has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;; +esac + +if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then + verbose "Found wget ... using wget" + wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl" +elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then + verbose "Found curl ... using curl" + curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl" +elif set_java_home; then + verbose "Falling back to use Java to download" + javaSource="$TMP_DOWNLOAD_DIR/Downloader.java" + targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName" + cat >"$javaSource" <<-END + public class Downloader extends java.net.Authenticator + { + protected java.net.PasswordAuthentication getPasswordAuthentication() + { + return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() ); + } + public static void main( String[] args ) throws Exception + { + setDefault( new Downloader() ); + java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() ); + } + } + END + # For Cygwin/MinGW, switch paths to Windows format before running javac and java + verbose " - Compiling Downloader.java ..." + "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java" + verbose " - Running Downloader.java ..." + "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")" +fi + +# If specified, validate the SHA-256 sum of the Maven distribution zip file +if [ -n "${distributionSha256Sum-}" ]; then + distributionSha256Result=false + if [ "$MVN_CMD" = mvnd.sh ]; then + echo "Checksum validation is not supported for maven-mvnd." >&2 + echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 + exit 1 + elif command -v sha256sum >/dev/null; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then + distributionSha256Result=true + fi + elif command -v shasum >/dev/null; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then + distributionSha256Result=true + fi + else + echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2 + echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 + exit 1 + fi + if [ $distributionSha256Result = false ]; then + echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2 + echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2 + exit 1 + fi +fi + +# unzip and move +if command -v unzip >/dev/null; then + unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip" +else + tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar" +fi + +# Find the actual extracted directory name (handles snapshots where filename != directory name) +actualDistributionDir="" + +# First try the expected directory name (for regular distributions) +if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then + if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then + actualDistributionDir="$distributionUrlNameMain" + fi +fi + +# If not found, search for any directory with the Maven executable (for snapshots) +if [ -z "$actualDistributionDir" ]; then + # enable globbing to iterate over items + set +f + for dir in "$TMP_DOWNLOAD_DIR"/*; do + if [ -d "$dir" ]; then + if [ -f "$dir/bin/$MVN_CMD" ]; then + actualDistributionDir="$(basename "$dir")" + break + fi + fi + done + set -f +fi + +if [ -z "$actualDistributionDir" ]; then + verbose "Contents of $TMP_DOWNLOAD_DIR:" + verbose "$(ls -la "$TMP_DOWNLOAD_DIR")" + die "Could not find Maven distribution directory in extracted archive" +fi + +verbose "Found extracted Maven distribution directory: $actualDistributionDir" +printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url" +mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME" + +clean || : +exec_maven "$@" diff --git a/mvnw.cmd b/mvnw.cmd new file mode 100644 index 0000000..92450f9 --- /dev/null +++ b/mvnw.cmd @@ -0,0 +1,189 @@ +<# : batch portion +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Apache Maven Wrapper startup batch script, version 3.3.4 +@REM +@REM Optional ENV vars +@REM MVNW_REPOURL - repo url base for downloading maven distribution +@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven +@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output +@REM ---------------------------------------------------------------------------- + +@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0) +@SET __MVNW_CMD__= +@SET __MVNW_ERROR__= +@SET __MVNW_PSMODULEP_SAVE=%PSModulePath% +@SET PSModulePath= +@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @( + IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B) +) +@SET PSModulePath=%__MVNW_PSMODULEP_SAVE% +@SET __MVNW_PSMODULEP_SAVE= +@SET __MVNW_ARG0_NAME__= +@SET MVNW_USERNAME= +@SET MVNW_PASSWORD= +@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*) +@echo Cannot start maven from wrapper >&2 && exit /b 1 +@GOTO :EOF +: end batch / begin powershell #> + +$ErrorActionPreference = "Stop" +if ($env:MVNW_VERBOSE -eq "true") { + $VerbosePreference = "Continue" +} + +# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties +$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl +if (!$distributionUrl) { + Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties" +} + +switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) { + "maven-mvnd-*" { + $USE_MVND = $true + $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip" + $MVN_CMD = "mvnd.cmd" + break + } + default { + $USE_MVND = $false + $MVN_CMD = $script -replace '^mvnw','mvn' + break + } +} + +# apply MVNW_REPOURL and calculate MAVEN_HOME +# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/ +if ($env:MVNW_REPOURL) { + $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" } + $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')" +} +$distributionUrlName = $distributionUrl -replace '^.*/','' +$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$','' + +$MAVEN_M2_PATH = "$HOME/.m2" +if ($env:MAVEN_USER_HOME) { + $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME" +} + +if (-not (Test-Path -Path $MAVEN_M2_PATH)) { + New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null +} + +$MAVEN_WRAPPER_DISTS = $null +if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) { + $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists" +} else { + $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists" +} + +$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain" +$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join '' +$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME" + +if (Test-Path -Path "$MAVEN_HOME" -PathType Container) { + Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME" + Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" + exit $? +} + +if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) { + Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl" +} + +# prepare tmp dir +$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile +$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir" +$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null +trap { + if ($TMP_DOWNLOAD_DIR.Exists) { + try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } + catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } + } +} + +New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null + +# Download and Install Apache Maven +Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." +Write-Verbose "Downloading from: $distributionUrl" +Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" + +$webclient = New-Object System.Net.WebClient +if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) { + $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD) +} +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null + +# If specified, validate the SHA-256 sum of the Maven distribution zip file +$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum +if ($distributionSha256Sum) { + if ($USE_MVND) { + Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." + } + Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash + if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) { + Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property." + } +} + +# unzip and move +Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null + +# Find the actual extracted directory name (handles snapshots where filename != directory name) +$actualDistributionDir = "" + +# First try the expected directory name (for regular distributions) +$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain" +$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD" +if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) { + $actualDistributionDir = $distributionUrlNameMain +} + +# If not found, search for any directory with the Maven executable (for snapshots) +if (!$actualDistributionDir) { + Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object { + $testPath = Join-Path $_.FullName "bin/$MVN_CMD" + if (Test-Path -Path $testPath -PathType Leaf) { + $actualDistributionDir = $_.Name + } + } +} + +if (!$actualDistributionDir) { + Write-Error "Could not find Maven distribution directory in extracted archive" +} + +Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir" +Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null +try { + Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null +} catch { + if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) { + Write-Error "fail to move MAVEN_HOME" + } +} finally { + try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } + catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } +} + +Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..2745a15080e22cee3366ff4768dfd9b3bc2fa673 GIT binary patch literal 6148 zcmeHKPfrs;6n|5S?SjYxtpd?xV=pEUZ3zd6G1LX4jWG~Pun1Uo+o7y%XPVtD6$nYs zdh!GK0la!L@#4{oS8v9TpjS`&W@pM@y?8K&>`P{TZ|42keZSq=*#Q7zHmf-R9RQNp z1jc)?`;7>@XlEp*X1WoH$Wd^4#df)kW05eDh=GWK|C<4^cH>Y73mjml)~|`Sn?FMd zi#YVNTYf{W^LKW`b^IWk{Y+wA@$L(WgqG+{tQWUE<|Rg9K6ckPaD*~<=X zmG#stXMyD~>V*MLm7>eqV~16F%j8W~^~2brG-z5Z)aVk5i9`dPE&sSYn6(zNv-iv*g z`t^aqp@GyuI-S0JWq4$C^lDijvaQN?%@cPz%U$l7Zj-LoJf~W0SQUrWN&$Ty6rDX< z)(20yF4F4Lqp79c2KuCqCc&rr$OnMzEalv{fft3cY*s(;BdCG<|EIA zfYu9alj9Y4kmLD=F!{^W^AXR)lvXUyvsjIqyX&rHQ+J-3JP3GQc#3Ql&K5i>GL;x%z2~*SsIG{Ch=IRmKzttzYy$HN+Y-Z12X-+W z3VU3j5Y)q8e?&u#^9tJ%(Skx`D54A{>WD$q$$`jlwC9z7TcQjH5?&ees4Ek7LLutl zL5$EHNM2&pM+`&^oMfO&4t25r-@`Thhx7l*plB2^5HWDB7$EVv;+%;kslD|~abmAE vux(%yBK+DC!w~G$b{r~VD;~xc3fc^zAm$aeCE^T9^dk_`5Oom)|CE7WyocWH literal 0 HcmV?d00001 diff --git a/src/main/.DS_Store b/src/main/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c367305447915125b1b7f4cdaff5ef9c2af5d179 GIT binary patch literal 6148 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 nlquNh<5()v13W-SL`0zeXr zz<4iKzY)kH z!S>fgYngM;>FBnz;?h>dOwDl?+AgEM3~*}{UDhADtj1df-ek2v#+FovVI+-;IdXV7 zot>Vra=F~mgmpMGnVqnvW+so0jAS}<^VU*j$J=H6xm*Vj+{2{wYwW-aR8HZ@t?ubn zk`J9#el|_L&ZN=XccK5{fH^ocJeV3xr_+}%kBp9uU8$JEj$PfU`(plc+~a=1Ytps4 z@778UyXvxfIi%0Rl6yca=Fl&$OSJan*tERgK%dmHL8iOsQ_5t%g{`fChUK61)rvU~ zRDJGwi#%{cm$TLN0NF2wbhpU1IF7i7%r7)VSFl3;0I@5kylVTt&FZwUzv0;q^%hux zhauk;o+4Y7vqhhZOl22!v6js2SH*26|DdB>SBeQ4rQn&9>S!8C=AFGM^<~BxHH=Jt zQFkR_9PYqFSiy(*0A9i?cnxpiJ$!;M@QozMD7i+)$rQOwX32e0B#%jzY!jC}Rq?UT zt-q@CX&?bAr`-CzlFvNO>gd_Yax%%8ZRzPI`_AkPqlrZfL=5~Z2E_hgVG)?u*j6aF z4y6#e2eLJI2QBSF|Kjd_i2h1i2aR4AefCHfbGsBpAf+ApuMtx$ynkt1UsJu=aM zC`68qc1yYg$t#TNh=GWKlMM8zrYX+o^ODKqWjctW!L5V&DBn?p&G4NLz_yO_iTNVI%dmJUehZ!oo$%x6QpS#9 z_M6hm?J>-Bw?+Y)3_G#OxV#bBIF==>D@t#BH0Y_yX% zjt`7JS4m+-l*&pAa{F+fp*}EYl3^iKS{@ZyB<)Y1%g_l;EYgv%%G=M*y1P(0!`JZt zIPv{5q3CUE-Dyu5QC!%BIxJ5K)4sk-cVW&>glEu6ONp(aDQqkcm7n?Zzt^$tsbtvr zQD~i?X#XBV!(Ch@gJItNF)caco9a(_+3Puxa Yct`$q`WwVEsTwv)`5qrg`?eo}Cqwzui2wiq literal 0 HcmV?d00001 diff --git a/target/classes/com/example/week4springboot/controller/GreetingController.class b/target/classes/com/example/week4springboot/controller/GreetingController.class new file mode 100644 index 0000000000000000000000000000000000000000..faeadd6599a7db9d8f22c9cffce80e01d549ad1b GIT binary patch literal 2293 zcmcgt+fo}x5Iv&{5<(a(E;3H+2n>Xa&E`UgZEPHy7*HZEWgPtAmyDzVt+m=!?T)Z1 z%HNTE26>9h5BY$6R4Qk*vLu2kxbhHH&1`p1-%fYW=+D32{{i43_ELx-nm{a#IQj&J zU&&)>Inq6{c8jl6NelEnuw7fP2}I}S50Xdpgc)1sz@02Gq^pi?s0BM12O;**q z=a!^?Ve1O1KucE#0<&|4j^};t+wRfo{6$d;S1^>oa2i*U5xCm1$-7z|DPJI2mwuqg z3XJt~nonUAV+o9>k;S!hh{Cu6iDT(B)b642knfR20@npbIb2)r3Atz$ zZMSU6wyw3Q^tP(&ifxe zK4NmH4^LCrz-9tl=KW#)raMDoyT@KtS>deEEuW+fS<;?=BJgW>r&@|(h%M=s9TiL$ zJg?fQuXeSeHFRB)bB51P>Z*tO%P#%!Jw5m8wOp)A$Jw{FBIb17b(O#F$RJQb0tJDY z3z&MPn!t|0&3{+r4GVE$5;yqln_nEff9T`>899qzVWbPcL;OY}f*f~qZ1zd+=}-Yv zxJ8a7#|*WM@f~tTFPcf5@zZUZ>N1VCOlPTcg$AE<&Ao&OFi&cM0b)&etK>|MiN*Km z2ma}DsOfS%RB5@SG8S>0hIeQf7i55oah8aaswUenNC7qhmZ?2}B)%aP z1GQ7n;%+l_BfCc`g8MvY>Gu;)}`HP#`5N6iMC3H^@zW3D9W@424f2XZM=KVloZnD`sq CO&{O@ literal 0 HcmV?d00001 diff --git a/target/classes/com/example/week4springboot/controller/TimeController.class b/target/classes/com/example/week4springboot/controller/TimeController.class new file mode 100644 index 0000000000000000000000000000000000000000..c12d40af646788ad2f1186de7b9fdff335429d2f GIT binary patch literal 1855 zcmb7E*-{fh6g^E60%2GT$gbiZ;xaBM2(E;}rQ!w@KKRs0+AwA^6K6Uof8u9ol}i;5 zet;ikc{&pbBBAhM<}P#Zx%ZyF(?5T0{{V0Yiz##)q%=cM>TJJ+K6B6#c5LKFDg#RrY(ODl=g%aJ+KC_qAR0JstS2 zs{(t?sjA$LDbShXPMB|CT$9XP+(wW-|ZH;PkpcJm;45S_QhmFr3SgP%rFL1Y>D!t*CUdTXJl~w`4;${y7##ZW{(bk>NVZjHU z=WD4Qvc=i*eo(ffwR&SR-}^y@yH>CZj#skfPOSY<>8G+*GY2P-*pzOa&E3Uj!X#Jt%?7C+NkaL3#9E6R@c zoE>sOmt|4=0qOX-do`PZQOQTrE4eB>llT2fy|!@RzW$ZCwpCO6gumW}5M4J5yZ5^Z zk>k0nI$Ci8>#^slAm_?3RACall+OM$(|)ZcabMv0!J)kAqPcLAms|(`V*Uu`nxmGW zp1?7BkJDPFG~ZL%?-1DwUy=Mws{<$a?n8`k3vu+Ko7NPq;V7E8r)V*+fhusCdV-fB z1rLYCBKT{x1btoEFGzkv?S3iBc{FYREyBzva5HpYNfnKW4j3FslOX|g#^eTtrl snu)g5TxOolxDH%_AlrVzP0&*7e7!$bg zOzunDlm4FlZR?qGw7}SH*LU?@fzj&n&Nzw~FQ8;$0+zrnC+OMgC)o=itJq_bw@?Dp+;cpAkj5dwC_4fV7+l3Se%$0A*EiMB}`$ufD0Dh zKv`hz^&yzap3>W@7ph3=e#A_8(R!Km%viXHS%JBp>?-E&NWJUo4o|U`zK#VhR_n`+ zW6GM^Tz-($TNdWAAYc)k4sBPvfiEyqJ;VNzg}2QOjQy_bx0|6-?K0?5W`!yylPdz% zYW-xm(^3$)S^YnJF7F8BYC)SUOgCI#ebeu?RJ1Ky9yR4g;7D&rMy`=lWlncoGO=-P zG-p`&qXLqXv^h4}b&r+q1nuu+BzsD$hH-NqSz|)nv@3Bv5Jw{m4;Ut|4poM9<$ajl!Av&-p%4vFV*-o?gfG$3DG}uUjM| zgBc{-4>+B%j%1k79v5Nw5S71P)QY&ni5Hb_&+Zg)PvDxFjE&0R=W2!7Bz#b_S}}cU zei`HGG2AcV0cr(&VVdeu{ctm5mJV7*^OEEC^H7~){xoBsyl$J>X-pw%tYy>Hikw(=-{-64$v9SV0gnW( zp19L#sTS~+z~%EzNpo^9T;ZEK!smtqW?ogE@;vA9F17Db+Tw2hmsb9OSh@Zi3cpYq z!4lUgjB>S*!z9KjU8OXeSmS+MqeQ;}DjyG?^PDVh0?SySnSsAaNpPQB`4xrVF?onL zffrOH5yl2T%L8O9F-(zHXfs94b$+W)A!2;M(~TkU8YKf&~$|P}tXTyBL z&*GUOKc?S0?MCnk414Bj|CGDARl?vcd`5YO$$U=T#$dfYSnskAOf3Z-qK>aI|1U&H B?4kew literal 0 HcmV?d00001 diff --git a/target/classes/com/example/week4springboot/models/WeatherInfo.class b/target/classes/com/example/week4springboot/models/WeatherInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..477de928cd2ea242b8706bc2862929f10a4907cf GIT binary patch literal 328 zcmb79yH3ME5S;ZR1`~+IAJ73sj)IOygM@@+ks>J6XR{<1?7PUm0KY|rM8OB}QHZ^W zf|gxrc4t=F-TC_d_yll)B1eQcLo!5)0ijsxXRR7-=W0?dx%Py?xv|Dy65_+7S%xjb zxOT1LSKY1}Rxiv?r~Rrkc3wH>RqGzO>D4`Jzu@l1J~~2jB_d%|8q2rqw&LziSB)t9 zrK@!_)13+YS4{lE^n{c0e`n4J`P8kuny*dRUHo}r9BknLnYax>lHylzTbSB#AU%Eu by@?PZ7Yt({#*W}{)2C8*g%S1yBaD6kv&Bwa literal 0 HcmV?d00001 diff --git a/target/classes/com/example/week4springboot/service/TimeService.class b/target/classes/com/example/week4springboot/service/TimeService.class new file mode 100644 index 0000000000000000000000000000000000000000..666cfba5c218f1622c7c23c58fed3401f4229372 GIT binary patch literal 965 zcmb7CT~8B16g|@x7Png{r3mme6l2D1#sQ*kbMSA-pY*gBPM z%P{*wh04BS$X2RNA9J|o!4Hr}z_1j-t?Ef$*KN@~q8$N4Jz`j?RO?r?YffT5zygX4 zb0cL>4n(LKRx5A+jV}dQLYeSZH>^=%hoSsSJ~A6uN&7lhJgho*&&3UC{D7=n(p`{Ls8_`Q^8)4ZfXyn85lSpVa^r0rpYfwy&!%a5Yh?@B%*wcSDA zjnUHD@_{txsx7&@yhgld$nEJ51Wm=@H}uf7YO_0O~l*EvjG-)(p38XPTOuJ(l=*~3LSw8-g z51ObX8uNKYK7M1s;icg7YOUHs?rXiJh zohB_|c6h5xm7t;9yt~VdbosDYu=}#lu-^FpHa8fiJHqaWq$dowsUZ!TZJnV=)7{{?YGuC1siL`*Ltotn0IC0#pne-3@s4Vt06ohmC6 zu`BzMx_qgWw%pkujY>nCPB{3!_l76pSewJJZ-o)sp7umI{J#y{r5(u8V$smt7En~6 zm^O>f+mvl0PZ3b6oq^T9!)u;l@(cV=RLkKGoo*jNKV85imMAI?@WgzNGKTwjFywkh zNXIo*`wYMI^eajwKmI_40g;n*&zG_@174CW(oB3cdY8HZPQFAP~ z9yP~N@D3k0XR7irMdg*taFwTab`4vR?x7mde Uv;L4Phgzn(g2!~brk()50Vl=FN&o-= literal 0 HcmV?d00001