From a07458dd483353e902d9cb30cfe4a49fb00284b3 Mon Sep 17 00:00:00 2001 From: Pascal Myllek Date: Mon, 19 May 2025 13:01:50 +0200 Subject: [PATCH] Initial commit --- .DS_Store | Bin 0 -> 6148 bytes .classpath | 57 ++++ .idea/.gitignore | 8 + .idea/compiler.xml | 18 ++ .idea/encodings.xml | 6 + .idea/jarRepositories.xml | 20 ++ .idea/misc.xml | 13 + .project | 28 ++ .settings/org.eclipse.core.resources.prefs | 5 + .settings/org.eclipse.jdt.apt.core.prefs | 2 + .settings/org.eclipse.jdt.core.prefs | 10 + .../org.springframework.ide.eclipse.prefs | 2 + mvnw | 259 ++++++++++++++++++ mvnw.cmd | 149 ++++++++++ pom.xml | 63 +++++ 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/hmsa/.DS_Store | Bin 0 -> 6148 bytes .../com/hmsa/pr2tutorium/BlogController.java | 47 ++++ .../com/hmsa/pr2tutorium/DBController.java | 57 ++++ .../ExceptionHandlingController.java | 18 ++ src/main/java/com/hmsa/pr2tutorium/Post.java | 86 ++++++ .../pr2tutorium/PostNotFoundException.java | 11 + .../pr2tutorium/Pr2tutoriumApplication.java | 13 + src/main/resources/application.properties | 1 + src/main/resources/static/posts.db | Bin 0 -> 20480 bytes src/main/resources/templates/about.html | 167 +++++++++++ src/main/resources/templates/index.html | 198 +++++++++++++ src/main/resources/templates/post.html | 166 +++++++++++ .../Pr2tutoriumApplicationTests.java | 13 + target/classes/.DS_Store | Bin 0 -> 6148 bytes target/classes/META-INF/MANIFEST.MF | 6 + .../maven/com.hmsa/pr2tutorium/pom.properties | 7 + .../maven/com.hmsa/pr2tutorium/pom.xml | 63 +++++ target/classes/application.properties | 1 + target/classes/com/.DS_Store | Bin 0 -> 6148 bytes target/classes/com/hmsa/.DS_Store | Bin 0 -> 6148 bytes .../com/hmsa/pr2tutorium/BlogController.class | Bin 0 -> 2547 bytes .../com/hmsa/pr2tutorium/DBController.class | Bin 0 -> 3324 bytes .../ExceptionHandlingController.class | Bin 0 -> 1140 bytes .../classes/com/hmsa/pr2tutorium/Post.class | Bin 0 -> 2891 bytes .../pr2tutorium/PostNotFoundException.class | Bin 0 -> 553 bytes .../pr2tutorium/Pr2tutoriumApplication.class | Bin 0 -> 762 bytes target/classes/static/posts.db | Bin 0 -> 20480 bytes target/classes/templates/about.html | 167 +++++++++++ target/classes/templates/index.html | 198 +++++++++++++ target/classes/templates/post.html | 166 +++++++++++ .../Pr2tutoriumApplicationTests.class | Bin 0 -> 560 bytes 50 files changed, 2025 insertions(+) create mode 100644 .DS_Store create mode 100644 .classpath 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/misc.xml create mode 100644 .project create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.apt.core.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 .settings/org.springframework.ide.eclipse.prefs create mode 100644 mvnw create mode 100644 mvnw.cmd create mode 100644 pom.xml 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/hmsa/.DS_Store create mode 100644 src/main/java/com/hmsa/pr2tutorium/BlogController.java create mode 100644 src/main/java/com/hmsa/pr2tutorium/DBController.java create mode 100644 src/main/java/com/hmsa/pr2tutorium/ExceptionHandlingController.java create mode 100644 src/main/java/com/hmsa/pr2tutorium/Post.java create mode 100644 src/main/java/com/hmsa/pr2tutorium/PostNotFoundException.java create mode 100644 src/main/java/com/hmsa/pr2tutorium/Pr2tutoriumApplication.java create mode 100644 src/main/resources/application.properties create mode 100644 src/main/resources/static/posts.db create mode 100644 src/main/resources/templates/about.html create mode 100644 src/main/resources/templates/index.html create mode 100644 src/main/resources/templates/post.html create mode 100644 src/test/java/com/hmsa/pr2tutorium/Pr2tutoriumApplicationTests.java create mode 100644 target/classes/.DS_Store create mode 100644 target/classes/META-INF/MANIFEST.MF create mode 100644 target/classes/META-INF/maven/com.hmsa/pr2tutorium/pom.properties create mode 100644 target/classes/META-INF/maven/com.hmsa/pr2tutorium/pom.xml create mode 100644 target/classes/application.properties create mode 100644 target/classes/com/.DS_Store create mode 100644 target/classes/com/hmsa/.DS_Store create mode 100644 target/classes/com/hmsa/pr2tutorium/BlogController.class create mode 100644 target/classes/com/hmsa/pr2tutorium/DBController.class create mode 100644 target/classes/com/hmsa/pr2tutorium/ExceptionHandlingController.class create mode 100644 target/classes/com/hmsa/pr2tutorium/Post.class create mode 100644 target/classes/com/hmsa/pr2tutorium/PostNotFoundException.class create mode 100644 target/classes/com/hmsa/pr2tutorium/Pr2tutoriumApplication.class create mode 100644 target/classes/static/posts.db create mode 100644 target/classes/templates/about.html create mode 100644 target/classes/templates/index.html create mode 100644 target/classes/templates/post.html create mode 100644 target/test-classes/com/hmsa/pr2tutorium/Pr2tutoriumApplicationTests.class diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8a793f0ec9e1a0fd2e6f5b6bdb1c0cbd11f1fadd GIT binary patch literal 6148 zcmeHKL2KJE6n;vwMxhLH*q}$luBCOCl^uF9X~)=gF5RIUnH`7D)U`tF)PoT4dHp?w zUH2#Uced|I%4poK$1z$xkUr_X@5#|8N3w`W4Cl!nQJ;t;3S+B>>JH;Lms{4d9u5i~ z<6Wl4ai(JQc|d3XzXH5=9lD@P%BgCs-&@39{?eu=B3C@xp)uM?ga4z!@6wbMcsukJ zb+*nH2Mug%X_gkH@Bb97cIU}PS9ay5{1kpsRai#lyckBa zQ|=urmBp)e6rZG%YSe#rsPZyO^T|vnq{#%7j~~)JQPoh*^Q6$Zp$W*I?2YzHa? zm*FhWRDK2zdpD@02=biKgvxb^TDyqfTqbm#IR%^oPJ#Osusf67yr1TxP64ODBUFI* z2M>iYuvi<^TL&tA1ps#7)`qtJ^apzE00tIogYdwFNd=lzVXqj%-W-HUM?A3n+Mr1% zp`VO#?30DPp$L2N5T2%!2n@Q~Dc}@XSD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..fccb778 --- /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/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..52d3977 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/.project b/.project new file mode 100644 index 0000000..31a248c --- /dev/null +++ b/.project @@ -0,0 +1,28 @@ + + + Vorleistung2 + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.boot.validation.springbootbuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..839d647 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.apt.core.prefs b/.settings/org.eclipse.jdt.apt.core.prefs new file mode 100644 index 0000000..d4313d4 --- /dev/null +++ b/.settings/org.eclipse.jdt.apt.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.apt.aptEnabled=false diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..e60fa3f --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,10 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.methodParameters=generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 +org.eclipse.jdt.core.compiler.compliance=21 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.processAnnotations=disabled +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=21 diff --git a/.settings/org.springframework.ide.eclipse.prefs b/.settings/org.springframework.ide.eclipse.prefs new file mode 100644 index 0000000..a12794d --- /dev/null +++ b/.settings/org.springframework.ide.eclipse.prefs @@ -0,0 +1,2 @@ +boot.validation.initialized=true +eclipse.preferences.version=1 diff --git a/mvnw b/mvnw new file mode 100644 index 0000000..19529dd --- /dev/null +++ b/mvnw @@ -0,0 +1,259 @@ +#!/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.2 +# +# 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:]' +} + +# 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 <"${0%/*}/.mvn/wrapper/maven-wrapper.properties" +[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.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${0##*/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 +printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url" +mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$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..b150b91 --- /dev/null +++ b/mvnw.cmd @@ -0,0 +1,149 @@ +<# : 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.2 +@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) { "/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_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain" +if ($env:MAVEN_USER_HOME) { + $MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain" +} +$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::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 +Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -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/pom.xml b/pom.xml new file mode 100644 index 0000000..1a0c663 --- /dev/null +++ b/pom.xml @@ -0,0 +1,63 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.4.4 + + + com.hmsa + pr2tutorium + 0.0.1-SNAPSHOT + pr2tutorium + Demo project for Spring Boot + + + + + + + + + + + + + + + 21 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + org.xerial + sqlite-jdbc + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..222a93d8ddd56045088d0f16c00358a37320a143 GIT binary patch literal 6148 zcmeHK%}(Pm5FVGZq(VqNu+mCgB601C7DPF4iMk-fl^{6mu1Z3x-G~sQCfy#YN_m0h zg*fpNybgS0n~I;^D^zGk8h`e9#<4#~wugvRZO8JZZJ3!y&y%DpJnO{6EuG~J~#8+8bl>I{H@1f8I_}=7Y)C2>sae7eym6FNjez!o2%b+UPfs?7@B}I8NlVoX__Z` z+|#2xDNJl=JG_S1=r`9Ulg)0o+w#A5b~@9RKk00>+bw@*duuvvc%Rodc8~fO*=4T( zTJ{xwO(QD~AK@C6*^-jtJc}_!cAgpkgu^`3`7hY4y`%vZRKDQp7X43oLQ_N-5C(*S zxn{r}jNbBG&r&8Q3n(;yVi%EL0QfMErrmbC3SR#ljA37( zeW9N65_z5E8%Z{a<6cu^G%)%`qZzIAfutQG65UDMB&rdS3uScn(QFVNXMG}j##06g zp5r8ygD8~|`aGc(%YbEIyBXlK>(CDhX-eVR`TdNs)}0cyiB()Q%dgEj{~KMWNj`2g zZpB{7dGWIBmffm*8GM(sU>uGoc{dzgaPNzhX|%M%=qwq|`nA``G8>0UHXNyhBpxE< z>v@vJa@LiTEY4MKpazKJh1>U0w7%b3S}S(pk%n8HJNDx8F` z(YBTW%fMp>O1fL)_x}^l@IUJR$4Rzl8L$lO6a&KP1-&k|WZu>%o8!0EgI+;dIIhsB kQqY*^SQ-2jA3~L2%wq%S8!R-!1F=5>iU!+Q2A-9Hd)yYOP5=M^ literal 0 HcmV?d00001 diff --git a/src/main/java/.DS_Store b/src/main/java/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ffc532fcf12482cb81e34072d0389d013668786d GIT binary patch literal 6148 zcmeHKQA+|r5Z+bG6A64M2zoi_)#y~xhhC1$h+ey>hYIsNsiX5&Jk19Y?hn)->VNci zYG!u~#CnS$nSt4FcXnpa`Brv!gb>o3gf$^5LI?{KF;{}-8^L+h70HpM04Q+{)eB-3 zzzCOP`40@>-sMG4C^0yXm-g=rX6heWbRy&xOw%Fl@>?*Bqjc;z?=qJ!Y-|>-qE)u; z{6{tQ$KCNH^}3@Q99=3E2aA3;xQhDIPG$Q-$oT}YAYRu;)YiIxP_@eU^4-)laxR>y^)Urjm zfLG{HLSfpA1NedHN~ULjl*B4|0Lx;5MIa+Hzzi@0>%ah=ZB}_5lHnYf0cPM=8Nl;L5-9x(&Vz*;dN3vIvcK}vMD yt|W(dtqpn)ih_Qb!LJbL=&Klf@haX0)dF@KJAf`>W)LhO{1DJIaKjAzDFdJXL|6y_ literal 0 HcmV?d00001 diff --git a/src/main/java/com/.DS_Store b/src/main/java/com/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5642f6c883155caaca441871d90b6e1e0cad400d GIT binary patch literal 6148 zcmeHKPfNov6i>G4I)<==g5ag#b>jZucJNZ_M7&zjgUW2z;fh@|*3KQqpkF}0kl(|v zqwghIVNQ>VllS1|m%O}}G{2N2k1@vWiC<@|!Wc6^5pyLdz7Xt3U6Gu&6aYDnaUP1E z7YYyBI3UU2X8`xEzy@r{V&;C@zcc7-yi1V_$^5)&JktC8>W#u6PHMF`p34_DHj75l zC>wXqKun#)O(wDJj&HDaDMaWk>aKSc^rzj*_KAoRH;DRU84&n=aJjt>B412xF^T+G z#yYCQC>f=0Wp6fXv|6pIc~EcH=T&o7Z`Nv6vwhT@&r8P6{^9XO_c0ts;#slJ;n$S1 zrEvi-P|23$$Gy;lPekX;_~eYEP(%-4TMV)YCL{)k0b*dC8PI2%QC{ao(616SeDZ)yKj zp$cbQ&J5$|nYqqTxK2E{Dcu>j6jDhH5Ch8$S5T0$TO({YT3WApfuNB*h_24Dcig-1m2bJ2GqQRIgO=1tFkQdMw@;!VV zo!Q-rQhSvmGcfz@&wRU^Z^QlofaqjF6QBkF4mx3>g2^vN?c{S-ur(z_q5H@n1qCAr zA)AZlie*%Q)~*UeT(cIg-S_o-I*rtwA1NOr==V55Z+&RP+(MQ=PKK8C<`1JVNgIuK zQ7D#HR?AM=sX8~_gBp8jKh2U(e{@BqbEP7Gmhbx);b7dWtskj4?T7JTqzPd#z>w?9 zFb>qXqp~@tKDwb9pc(Z0{bP^&X?A zSiR^^0D-@)wl#}0c*V>DS%Ty)@^QjMT@do@jp9hf_ZTr7VAe4sE5Hh{0?VL)-J6{1 zGE9c&zzVPeOQitq4-%cwwU`^!TL&ik34ln~NNt#>%OY{4Mb~0(5L?iMp&}ZpuulwO z=vXgpoNF;RXy_p9<3reyg?*t2Jv#O;bvOvuAg8PVEAUf+qAAws{6Aj&{{Knh5-Y$8 z{3``Ssq1w+_(}F`o%=XCYbE+EIvK^~2EQnn(MK`H(owvLt_|xYWe{D9xk0Q! postsMap = db.getAllPosts(); + model.addAttribute("PostMap", postsMap); + return "index"; + } + + @GetMapping("/posts/{id}") + public String blog(@PathVariable int id, Model model) { + Post post = db.getPost(id); + if (post == null) { + throw new PostNotFoundException("Es wurde kein Post mit der ID = "+id+" gefunden!"); + } + model.addAttribute("post", post); + return "post"; + + } + + @GetMapping("/about") + public String about(Model model) { + model.addAttribute("name", "Max Mustermann"); + model.addAttribute("alter", "21"); + model.addAttribute("semester", "2"); + model.addAttribute("studiengang", "UIB"); + return "about"; + } + + +} diff --git a/src/main/java/com/hmsa/pr2tutorium/DBController.java b/src/main/java/com/hmsa/pr2tutorium/DBController.java new file mode 100644 index 0000000..46bfd4c --- /dev/null +++ b/src/main/java/com/hmsa/pr2tutorium/DBController.java @@ -0,0 +1,57 @@ +package com.hmsa.pr2tutorium; + +import java.sql.*; +import java.util.ArrayList; +import java.util.HashMap; + +public class DBController { + private Connection connection; + private ArrayList posts; + private HashMap postsMap; + + + public DBController() { + String query = "SELECT * FROM blog_post"; + posts = new ArrayList<>(); + postsMap = new HashMap<>(); + + try { + Class.forName("org.sqlite.JDBC"); + connection = DriverManager.getConnection("jdbc:sqlite:src/main/resources/static/posts.db"); + } catch(Exception e) { + e.printStackTrace(); + } + + try (Statement stmt = connection.createStatement(); ResultSet rs = stmt.executeQuery(query)) { + while (rs.next()) { + + Post post = new Post( + rs.getInt("id"), + rs.getString("title"), + rs.getString("date"), + rs.getString("body"), + rs.getString("author"), + rs.getString("img_url"), + rs.getString("subtitle") + ); + posts.add(post); + + for(Post p : posts) { + postsMap.put(p.getId(), p); + } + } + } catch (SQLException e) { + e.printStackTrace(); + } + + } + + public HashMap getAllPosts() { + return postsMap; + } + + public Post getPost(int id) { + return postsMap.get(id); + } + +} \ No newline at end of file diff --git a/src/main/java/com/hmsa/pr2tutorium/ExceptionHandlingController.java b/src/main/java/com/hmsa/pr2tutorium/ExceptionHandlingController.java new file mode 100644 index 0000000..1bada79 --- /dev/null +++ b/src/main/java/com/hmsa/pr2tutorium/ExceptionHandlingController.java @@ -0,0 +1,18 @@ +package com.hmsa.pr2tutorium; + +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.servlet.ModelAndView; + +@ControllerAdvice +public class ExceptionHandlingController { + + @ExceptionHandler(PostNotFoundException.class) + public String handlePostNotFoundException(PostNotFoundException e, Model model) { + model.addAttribute("errorMessage", e.getMessage()); + return "index"; + } + +} diff --git a/src/main/java/com/hmsa/pr2tutorium/Post.java b/src/main/java/com/hmsa/pr2tutorium/Post.java new file mode 100644 index 0000000..d3bfb7c --- /dev/null +++ b/src/main/java/com/hmsa/pr2tutorium/Post.java @@ -0,0 +1,86 @@ +package com.hmsa.pr2tutorium; + +public class Post { + private int id; + private String title; + private String date; + private String body; + private String author; + private String imgUrl; + private String subtitle; + + + public Post() {} + + public Post(int id, String title, String date, String body, String author, String imgUrl, String subtitle) { + this.setId(id); + this.setTitle(title); + this.setDate(date); + this.setBody(body); + this.setAuthor(author); + this.setImgUrl(imgUrl); + this.setSubtitle(subtitle); + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getSubtitle() { + return subtitle; + } + + public void setSubtitle(String subtitle) { + this.subtitle = subtitle; + } + + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public String getImgUrl() { + return imgUrl; + } + + public void setImgUrl(String imgUrl) { + this.imgUrl = imgUrl; + } + + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + @Override + public String toString() { + return "Post [id=" + id + ", title=" + title + ", subtitle=" + subtitle + ", body=" + body + ", date=" + date + + ", imgUrl=" + imgUrl + ", author=" + author + "]"; + } +} diff --git a/src/main/java/com/hmsa/pr2tutorium/PostNotFoundException.java b/src/main/java/com/hmsa/pr2tutorium/PostNotFoundException.java new file mode 100644 index 0000000..1340d96 --- /dev/null +++ b/src/main/java/com/hmsa/pr2tutorium/PostNotFoundException.java @@ -0,0 +1,11 @@ +package com.hmsa.pr2tutorium; + +public class PostNotFoundException extends RuntimeException{ + public PostNotFoundException() { + super("Es wurde kein Post mit dieser ID gefunden"); + } + + public PostNotFoundException(String fehler) { + super(fehler); + } +} diff --git a/src/main/java/com/hmsa/pr2tutorium/Pr2tutoriumApplication.java b/src/main/java/com/hmsa/pr2tutorium/Pr2tutoriumApplication.java new file mode 100644 index 0000000..0113d6e --- /dev/null +++ b/src/main/java/com/hmsa/pr2tutorium/Pr2tutoriumApplication.java @@ -0,0 +1,13 @@ +package com.hmsa.pr2tutorium; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Pr2tutoriumApplication { + + public static void main(String[] args) { + SpringApplication.run(Pr2tutoriumApplication.class, args); + } + +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..9661abd --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.application.name=pr2tutorium \ No newline at end of file diff --git a/src/main/resources/static/posts.db b/src/main/resources/static/posts.db new file mode 100644 index 0000000000000000000000000000000000000000..3c62c21effd16cb1b63bb43fb9875bce2074c6fb GIT binary patch literal 20480 zcmeHPTW=f36{ap}YNak4^ubNhKohyPtXkrd6lLocrj$&}vMJftCAJe3i{b8&JLcZB z7fJM+lOhP(m$ZEff)?;|enTHqAWi!N+P>taKcPT?Jhb1LB`G?NS}IL|z+NGaW@dNK z%zWoEXJ*dP_U)RC1Z#MK!y`7E`9WrADD!j1GMUUA{ym3(-JjDajCL#dJ=9k|t~i&; z-MN1H`~S`ipZ+v+`qS)3*^iEUHEmB3ND)X8ND)X8ND)X8ND)X8ND)X8_~sDEel|RE zW_*0;?Kt9fThwi@srz0S^$NqQTh+==mF-kkYE{;2W*4N%);D*mYt=2bd2@$t?$&D4 zERvBe*z1+8)oYb4cA+?zpXz&Ra%{7Xdsz3(HruJ*1*sl69!HiJ9Q%oMntB}A$373^ zIt}QppNu_EbNuD=PwyO$$Mx3M`bK5z9=lP!M@*ZVX1kl~w|A@Tf@0RxRQ9vXpUx~T z4ZZcUf+yUwu^SGf*p!|g3CGv}Tl45+;&IHk7seP%#AO<#L`I0yR8un1t@LDoo^+Vs zeb!}mx87l{P%<+%Re0e$XR6~v8R?qhFd2sq3ZAO#J-O8jz2XS8>bs;_w80n3+iQQKthD! zSp&vKcfCl=6hNt<2(U0}+wy@h84oey4&v3dn?1y*h)0}ZvVwUH=G#1sq%kOXtDXy@ zv7um#JYZ$?wJ@}ViWiZE^FSU5=5RM|a3hKXjH%upw4WVI=rl=vE%0K0q8wR*DFIXU zgdv>yf!xQ!Xt$XqY?B$D<8!yo>O4ee(jBz36=~bCYfkG|gzNC2HBs)gbQnLFg!Vq} z6zJnzGHAj`hEYg>@AE)hNt$DO{mLt^)j?DD(aoSnmZAJbFP5A>qE! z3=z*binQ6g&)^fo)-?GQ>pPZBj@Uj05^38x{B zh7HHSZL)n~Ny8RstH;u&CKQR@ffo=LS>V;ZD9o{n+m0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h z&c;zj|{P4Ax)VPX6xZ6I@9~n1A9B_iJVdI}nIw<_rk|5rXRnJ-Ay%Ot{(Bk%AZd$U8#7 zG^#AAszeR?t67Nf#!+Bl;nISNq(&kNg@2zQPb%ORcl1?@`^b-(D6gqH>(oz_v2xwB zTz%CR2#TI4Q-vj!6A{@FLD1IMDCdJa6J=Fpo$84QRgrz6ubVc;LPbW!6A?&8avh?C zoSS4Es*(^v=E|Ua+>l7R6SjT}0q{V$Q$?N$szfZu=$xuaY({bx@&J%=h3IpH+apav z{cSXrEi<56Z?{BbSb8EY6Xj4fKrker8o>ova8{A_j|5*In=M(ZPK>lXsO2F&$*aVCFxrclxgMZI)MFU{)bit~k1sW4Y66z22u=ZXuI aJ#+^dk;vshS_BQ(B>^YASpy>e+J6980JtLn literal 0 HcmV?d00001 diff --git a/src/main/resources/templates/about.html b/src/main/resources/templates/about.html new file mode 100644 index 0000000..5e6a072 --- /dev/null +++ b/src/main/resources/templates/about.html @@ -0,0 +1,167 @@ + + + + + + + About Me + + + + + + + +
+
+

About Me

+ This is me. +
+ + +
+
+
+ Name: + Name +
+
+ Alter: + Alter +
+
+ Semester: + Semester +
+
+ Studiengang: + Studiengang +
+
+
+
+ + +
+

Made with ♥️ in Mannheim.

+
+ + + diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html new file mode 100644 index 0000000..339b5bc --- /dev/null +++ b/src/main/resources/templates/index.html @@ -0,0 +1,198 @@ + + + + + + + PR2 Blog + + + + + + + +
+
+
+

PR2 Blog

+ A Blog for PR2 Prüfungsvorleistung +
+
+

Ein Fehler ist aufgetreten

+
+
+ + +
+
+ +

>

+
+

+

+ Posted by + on +

+
+
+
+ + + + +
+

Made with ♥️ in Mannheim.

+
+ + + diff --git a/src/main/resources/templates/post.html b/src/main/resources/templates/post.html new file mode 100644 index 0000000..19ecc56 --- /dev/null +++ b/src/main/resources/templates/post.html @@ -0,0 +1,166 @@ + + + + + + + + + + +
+ +
+ Zurück +

My Blog

+
+ + +
+
+
+ +

Post Title

+
+
+

Post Subtitle

+
Post Content
+
+
+
+
+ + +
+

Made with ♥️ in Mannheim.

+
+ + + diff --git a/src/test/java/com/hmsa/pr2tutorium/Pr2tutoriumApplicationTests.java b/src/test/java/com/hmsa/pr2tutorium/Pr2tutoriumApplicationTests.java new file mode 100644 index 0000000..b96f641 --- /dev/null +++ b/src/test/java/com/hmsa/pr2tutorium/Pr2tutoriumApplicationTests.java @@ -0,0 +1,13 @@ +package com.hmsa.pr2tutorium; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class Pr2tutoriumApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/target/classes/.DS_Store b/target/classes/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ffc532fcf12482cb81e34072d0389d013668786d GIT binary patch literal 6148 zcmeHKQA+|r5Z+bG6A64M2zoi_)#y~xhhC1$h+ey>hYIsNsiX5&Jk19Y?hn)->VNci zYG!u~#CnS$nSt4FcXnpa`Brv!gb>o3gf$^5LI?{KF;{}-8^L+h70HpM04Q+{)eB-3 zzzCOP`40@>-sMG4C^0yXm-g=rX6heWbRy&xOw%Fl@>?*Bqjc;z?=qJ!Y-|>-qE)u; z{6{tQ$KCNH^}3@Q99=3E2aA3;xQhDIPG$Q-$oT}YAYRu;)YiIxP_@eU^4-)laxR>y^)Urjm zfLG{HLSfpA1NedHN~ULjl*B4|0Lx;5MIa+Hzzi@0>%ah=ZB}_5lHnYf0cPM=8Nl;L5-9x(&Vz*;dN3vIvcK}vMD yt|W(dtqpn)ih_Qb!LJbL=&Klf@haX0)dF@KJAf`>W)LhO{1DJIaKjAzDFdJXL|6y_ literal 0 HcmV?d00001 diff --git a/target/classes/META-INF/MANIFEST.MF b/target/classes/META-INF/MANIFEST.MF new file mode 100644 index 0000000..660cfaa --- /dev/null +++ b/target/classes/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Build-Jdk-Spec: 21 +Implementation-Title: pr2tutorium +Implementation-Version: 0.0.1-SNAPSHOT +Created-By: Maven Integration for Eclipse + diff --git a/target/classes/META-INF/maven/com.hmsa/pr2tutorium/pom.properties b/target/classes/META-INF/maven/com.hmsa/pr2tutorium/pom.properties new file mode 100644 index 0000000..8b39cc5 --- /dev/null +++ b/target/classes/META-INF/maven/com.hmsa/pr2tutorium/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Mon May 19 12:52:33 CEST 2025 +artifactId=pr2tutorium +groupId=com.hmsa +m2e.projectLocation=/Users/pascalm/eclipse/WorkspacePR2Labor/Vorleistung2 +m2e.projectName=Vorleistung2 +version=0.0.1-SNAPSHOT diff --git a/target/classes/META-INF/maven/com.hmsa/pr2tutorium/pom.xml b/target/classes/META-INF/maven/com.hmsa/pr2tutorium/pom.xml new file mode 100644 index 0000000..1a0c663 --- /dev/null +++ b/target/classes/META-INF/maven/com.hmsa/pr2tutorium/pom.xml @@ -0,0 +1,63 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.4.4 + + + com.hmsa + pr2tutorium + 0.0.1-SNAPSHOT + pr2tutorium + Demo project for Spring Boot + + + + + + + + + + + + + + + 21 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + org.xerial + sqlite-jdbc + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/target/classes/application.properties b/target/classes/application.properties new file mode 100644 index 0000000..9661abd --- /dev/null +++ b/target/classes/application.properties @@ -0,0 +1 @@ +spring.application.name=pr2tutorium \ No newline at end of file diff --git a/target/classes/com/.DS_Store b/target/classes/com/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5642f6c883155caaca441871d90b6e1e0cad400d GIT binary patch literal 6148 zcmeHKPfNov6i>G4I)<==g5ag#b>jZucJNZ_M7&zjgUW2z;fh@|*3KQqpkF}0kl(|v zqwghIVNQ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Kq@P4WVCu2;#4;VrZJ4*Kk7Z2>jMS?PP#zdzwXo-( z7Z|^4ySDmRU^F+sC6Fk3b(z8_Celd4NMgUh-2cW&A&rTBAeJ=7FfK4zwq3a%wyV;= zYgHX7kSTjL%h|GgTkp3I6RK$k0%ryz?d3|W$tu}btd78PuI%{@GwArX+j!(#ZTZym zTV`mR72ZI0{VncKvy0r}M>r^Q&E;ORka)>E{OvLsu>TF*`a{k*ev{H!Q6H zC4E*qp*13KF;^N6exO1o%!rWry+NL3hTCX8@x3QJml?nuT(H_OCYuBg?>%0+4|Bt)O!V;*Hsc& z9N2Q5LVAi4H+wGFse1cD7Hg0~74;-)0;l(?Zo5ysmNetLDsI!7RpX`qT=$Pq ze(LVQwsjovrsdWh8JsSAUMuY6`&-p@(&KoSSO=It?6TjzJo=CpEyvlkmCR3$!!poh zS*{1!r=ee$*_O23tX5>UZL4fu`q|QI_F7hC8}bqLDcw0PTcQ@HS6o9zq0oC(6<0JB{J+!mpTo zf!WGp=ETzPm>b3Y%-Ns$VzevKVM3c`k|R-~Z0xw5h#@eK1%@}UAB$Kb#B=o5aN?8m zJTZAPCTOUUy@v}#-j8e<7x{kQ2u&_=!6ly`nJvNpoCZ4k0`IS%`wItOTJw%TLu@#9<+hxyvDkRa|FY=84#h(CY+>SY!4Z zJY{SC!E6#YBPN8n%EOq=tvA&9vj~2`03))`Er}Z zSDHoK>X^k@Oc2>LQ_iv0ORTeQ`E(q5mxUQ&7v0rP;Oi*VH&MOEN%33mzvH9T_J~gd OHg_qm9>al)ng0Os*N18V literal 0 HcmV?d00001 diff --git a/target/classes/com/hmsa/pr2tutorium/DBController.class b/target/classes/com/hmsa/pr2tutorium/DBController.class new file mode 100644 index 0000000000000000000000000000000000000000..b6acb05deae64a36cfa13ffb55171e1497689b95 GIT binary patch literal 3324 zcmcImTW}lY75;u%@~-7ICQ9r?Nt`%M0oy1Rbpr$|2{?)a4w7@Rn~-oxSJFn_WTjPh zSHanickUAaBlti;NMJ+WE+wZ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)Xrapa(+W|1FOXRslz&Y>vqDRvAiJnxAsvnZX#3Ax^VP~P4v@XGwZ zT$C@D7{`3!62_F;h;#IkZ9t?v`(#tgm*PmAmr;58Ura;~5=inhAd9c@4HJ>ZccO#q7LgQ5uA9ZE7-d&z!E@Y| zv4;O02s1GXQxjuqdaxWDv4VQKa1FY#8F6Y`%?Y>`lf1nX>u?n7*@SyBO&C1PudJsi z@dEE(;&;_sxC-achcCH)MY*r}?XwFBv72`NhOg}>NSJo~7Qf?85j*ibW%&t1D}IkZ z5H@N27k|Wy+-LD2b-ql$Ucz>~f&H2*NBA9KS_lAG_?AMLw*ZFF?YpiuO6v8O}O4Wap$^|#f0shYa5dQH!ft^!I literal 0 HcmV?d00001 diff --git a/target/classes/com/hmsa/pr2tutorium/ExceptionHandlingController.class b/target/classes/com/hmsa/pr2tutorium/ExceptionHandlingController.class new file mode 100644 index 0000000000000000000000000000000000000000..42fc3438d8a07e8f7771c9397d88eed97bd2e005 GIT binary patch literal 1140 zcmb7DO>Yx15PeRXCQZ{egz`~ZO3G)FRxIj~Af%{JaY#zlqHsV$^6r|%Wp^EUy=i|I zTtIN(2k@g1<0MKET}8^lW6yZ}Jo9Ge_n)7?0JN~1M~2~thHq%j*`$7`W<%z!BA-{j|W|@rPU|K1=E)?!+v|-xS9-`eH*PfRiLgOUZv3cX2O|ZHBE`)Rj=h4h6=2zh#IyH!+mi ztJ+mU|FMjFj98zA+$`V$aYb~B3kF80xzHAiVSDyFYUhqHedQl>TWKRS6|8uw677jY zX*;z#ZKJF6@YHs~JO#cSrItUGo@inRG&MAnK!#2vgEN!n|m zh-H$cu>557$S4Cv;~&D(_X+cfaB04{T-ezH!ToSs14vRfulRE literal 0 HcmV?d00001 diff --git a/target/classes/com/hmsa/pr2tutorium/Post.class b/target/classes/com/hmsa/pr2tutorium/Post.class new file mode 100644 index 0000000000000000000000000000000000000000..aeb5f3ac90329347af00e9442340ff09b9828f52 GIT binary patch literal 2891 zcmchZTT|Os5Xb+=_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Lr@I1fL1e47PB)MH d0CuPg;Td)*#eIR}1zz$>KAXP75BL$ue*l9$*>C^= literal 0 HcmV?d00001 diff --git a/target/classes/com/hmsa/pr2tutorium/PostNotFoundException.class b/target/classes/com/hmsa/pr2tutorium/PostNotFoundException.class new file mode 100644 index 0000000000000000000000000000000000000000..7b00ab70582851e2949a2df629c02f00adde2ba9 GIT binary patch literal 553 zcma)&&o2W(6vw|)ZI@L_X%9~8)|S{r;zT6kMTm$P!?FbmG?59NIi-#bL~`0-*tiNp3=(g3(T}THv;8Dlh7>Y1UkoA^pM+xqB~ML z^7trKE=m+-WTVrgXhcJvMLNU`=4+^+CeUp6ex_YHtMq8sbL%~&={!&SWUpm^LIRDR z8OX_vw94mSk7YMjnZRc6|10kD4nrDG$a?0l;Q~u%_!Be3V{v*1Tv16D&R$93ehPm$Eh@n0(*D}By7TRcFo?$suT7ECG zNZKnArIMi&npmVGVU<6>1?z6Ca)yKO9hCaiE)z;KY;=ExQ))wJl}`G5qX4T|Yof!@ zGdAJ*#K&)}$mG4TcRVu2@nIR98MKX$Sf_DpLBLUW26vE(JnvU^3aj8_qn&(kd|>pA zN($?zo#{hipY}rto6ziQ704v{xpZT5eIYz;CoL5QLsQsTo++>9cJ*@|dN~+2FAMEd zCPyk)zP;AQmCs2qCzY&AQ3U-3qF>UMZxVeYwPxt|u?td(eiKlm9X&SLCY?BWM!wPe zgVtl24#@g6s9=$7`?Y}l2Rbca3CjfHFCUd)K&!)gf3fm&dOx5H5R?d0j21TViQ=DW UHRvOdt6{UWTi7P=+kOH5112}gA^-pY literal 0 HcmV?d00001 diff --git a/target/classes/static/posts.db b/target/classes/static/posts.db new file mode 100644 index 0000000000000000000000000000000000000000..3c62c21effd16cb1b63bb43fb9875bce2074c6fb GIT binary patch literal 20480 zcmeHPTW=f36{ap}YNak4^ubNhKohyPtXkrd6lLocrj$&}vMJftCAJe3i{b8&JLcZB z7fJM+lOhP(m$ZEff)?;|enTHqAWi!N+P>taKcPT?Jhb1L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&8avh?C zoSS4Es*(^v=E|Ua+>l7R6SjT}0q{V$Q$?N$szfZu=$xuaY({bx@&J%=h3IpH+apav z{cSXrEi<56Z?{BbSb8EY6Xj4fKrker8o>ova8{A_j|5*In=M(ZPK>lXsO2F&$*aVCFxrclxgMZI)MFU{)bit~k1sW4Y66z22u=ZXuI aJ#+^dk;vshS_BQ(B>^YASpy>e+J6980JtLn literal 0 HcmV?d00001 diff --git a/target/classes/templates/about.html b/target/classes/templates/about.html new file mode 100644 index 0000000..5e6a072 --- /dev/null +++ b/target/classes/templates/about.html @@ -0,0 +1,167 @@ + + + + + + + About Me + + + + + + + +
+
+

About Me

+ This is me. +
+ + +
+
+
+ Name: + Name +
+
+ Alter: + Alter +
+
+ Semester: + Semester +
+
+ Studiengang: + Studiengang +
+
+
+
+ + +
+

Made with ♥️ in Mannheim.

+
+ + + diff --git a/target/classes/templates/index.html b/target/classes/templates/index.html new file mode 100644 index 0000000..339b5bc --- /dev/null +++ b/target/classes/templates/index.html @@ -0,0 +1,198 @@ + + + + + + + PR2 Blog + + + + + + + +
+
+
+

PR2 Blog

+ A Blog for PR2 Prüfungsvorleistung +
+
+

Ein Fehler ist aufgetreten

+
+
+ + +
+
+ +

>

+
+

+

+ Posted by + on +

+
+
+
+ + + + +
+

Made with ♥️ in Mannheim.

+
+ + + diff --git a/target/classes/templates/post.html b/target/classes/templates/post.html new file mode 100644 index 0000000..19ecc56 --- /dev/null +++ b/target/classes/templates/post.html @@ -0,0 +1,166 @@ + + + + + + + + + + +
+ +
+ Zurück +

My Blog

+
+ + +
+
+
+ +

Post Title

+
+
+

Post Subtitle

+
Post Content
+
+
+
+
+ + +
+

Made with ♥️ in Mannheim.

+
+ + + diff --git a/target/test-classes/com/hmsa/pr2tutorium/Pr2tutoriumApplicationTests.class b/target/test-classes/com/hmsa/pr2tutorium/Pr2tutoriumApplicationTests.class new file mode 100644 index 0000000000000000000000000000000000000000..a8116a1f55a938cb0bcef545dc4502881bcd80ac GIT binary patch literal 560 zcmb7ByH3L}6g^H$3vHpLuplvX$*VnSlz1NbP! zb*KO_ATjtpkI%h6etUm;1u(#79Rb5(Y*Ic;bHOv)cZD-n6)C^|jt5zms8~2<^ho9| zucOM)nTvbD6QQU4Dw@mKG1N|!R_>Icva>s8sGggNY@mXb7M4(BXopJ6%OZ`W9f>HB z4BgPgA{h&-e7-1F-Av^S{qVng9W%6Iqn&(op%D|}*t#jSQ>h%QT+x7m*2b0Zpx$<9 z?3B+7TA6I7oU~kIiu)%LQ)6ff8_Nsj_w4O@8g&D- hDe|Zec~7)Y$KPSUNt!=MNV$?Ez&b$#biZgefDaYeh?M{U literal 0 HcmV?d00001