Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup: fix java linting errors #131

Merged
merged 235 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
cf70457
improvement: add mysql support for the inventory service (#89)
Shabirmean Mar 17, 2022
6288f10
Merge branch 'main' into v2-sql
Shabirmean Mar 18, 2022
54bbe9a
improvement: add mysql payments (#90)
Shabirmean Mar 21, 2022
7f9d815
fix: mysql warning (#110)
Shabirmean May 5, 2022
0ce6f64
doc: restructure
Shabirmean May 5, 2022
9219322
doc: fix region tag
Shabirmean May 5, 2022
04d2a36
doc: fix region tags
Shabirmean May 5, 2022
98d47b4
cleanup: update the skaffold file
Shabirmean May 5, 2022
57156a7
cleanup: add project suffix to the pom
Shabirmean May 5, 2022
043aa08
cleanup: fix path error in cloudbuild yaml
Shabirmean May 5, 2022
4749277
fix: update the cloudbuild yamls
Shabirmean May 5, 2022
de087f7
cleanup: add the mvnwrapper
Shabirmean May 5, 2022
8ad84d8
lint: add correct license year
Shabirmean May 5, 2022
fc20d43
fix: update the header
Shabirmean May 5, 2022
be14d10
fix: clpoudbuil yaml
Shabirmean May 5, 2022
fca0867
ci: add dir for deploy step
Shabirmean May 5, 2022
88a4f84
ci: revert cloudbuild changes
Shabirmean May 5, 2022
d455ae0
cleanup: maintain point-of-sale-app folder as is in main
Shabirmean May 6, 2022
5a3bee9
header: fix year
Shabirmean May 6, 2022
c7fbcfc
cleanup: remove and add
Shabirmean May 6, 2022
69e9771
fix: header check error
Shabirmean May 6, 2022
b67499e
test: find directory
Shabirmean May 6, 2022
53ea578
test: find directory
Shabirmean May 6, 2022
a12f98f
test: find directory
Shabirmean May 6, 2022
0ffaa1b
cleanup: move maven wrapper to the root
Shabirmean May 6, 2022
2cf31ef
cleanup: add relativePath to parent pom
Shabirmean May 6, 2022
17d7737
cleanup: update the push to main yaml
Shabirmean May 6, 2022
125e792
Merge branch 'restructure1' into restructure2
Shabirmean May 6, 2022
b1703a1
fix: the path issue in the apiserver pom
Shabirmean May 6, 2022
427b6e9
doc: restructure directories and add quickstart (#115)
Shabirmean May 6, 2022
174d32d
Merge branch 'v2-sql' into restructure2
Shabirmean May 6, 2022
6f05b9c
release: add initial releaser code
Shabirmean May 6, 2022
462aa8d
release: fix str error
Shabirmean May 6, 2022
3b087ae
cleanup: get xml parser working
Shabirmean May 6, 2022
743019a
cleanuP: fix pom linting
Shabirmean May 6, 2022
0df552b
cleanup: add extra linebreak
Shabirmean May 6, 2022
7d28575
Merge branch 'v2-sql' into restructure1
Shabirmean May 6, 2022
5a63b46
fix: merge conflict
Shabirmean May 6, 2022
b405ded
Merge branch 'restructure1' into restructure3
Shabirmean May 6, 2022
514d306
cleanup: linting in ui pom
Shabirmean May 6, 2022
cdba0ba
improvement: add logic to update package.json
Shabirmean May 6, 2022
3bdc013
lint: reformat the pom
Shabirmean May 6, 2022
1a7f75f
lint: remove extra space
Shabirmean May 6, 2022
8f3fae2
chore(release): 0.1.0-SNAPSHOT
Shabirmean May 6, 2022
843fa58
Revert "chore(release): 0.1.0-SNAPSHOT"
Shabirmean May 6, 2022
fdb238f
chore(release): 0.1.0-SNAPSHOT
Shabirmean May 6, 2022
ed14000
Revert "chore(release): 0.1.0-SNAPSHOT"
Shabirmean May 6, 2022
4d7627a
cleanup: add changlog packagejson
Shabirmean May 7, 2022
91389ee
fix: add code to update release pkg json
Shabirmean May 7, 2022
171c174
fix: indent on pkf json
Shabirmean May 7, 2022
f4b011c
fix: indent on pkf json
Shabirmean May 7, 2022
1e21372
process: add release trigger
Shabirmean May 7, 2022
fb00f69
fix: escape env subs
Shabirmean May 7, 2022
41d3c36
chore: add branch name
Shabirmean May 7, 2022
9f2c635
chore: add pip install step
Shabirmean May 7, 2022
fec6bcf
chore: add git branch
Shabirmean May 7, 2022
263c495
chore: add remote
Shabirmean May 7, 2022
dec111c
test: show remote
Shabirmean May 7, 2022
f692b04
test: show remote
Shabirmean May 7, 2022
8542ea0
test: show remote
Shabirmean May 7, 2022
a3d6a8c
test: show remote
Shabirmean May 7, 2022
92ed687
test: show remote
Shabirmean May 7, 2022
e32dc05
test: show remote
Shabirmean May 7, 2022
00e36d9
release: update version before release
Shabirmean May 7, 2022
214bb2a
Revert "release: update version before release"
Shabirmean May 7, 2022
703de96
cleanup: remove username from git
Shabirmean May 7, 2022
0860659
test: show remote
Shabirmean May 7, 2022
d481879
test: set branch
Shabirmean May 7, 2022
6f23639
test: set branch
Shabirmean May 7, 2022
f2bc291
test: set branch
Shabirmean May 7, 2022
b3cf2ed
test: set branch
Shabirmean May 7, 2022
a9d87ae
test: set branch
Shabirmean May 7, 2022
a198c30
test: set branch
Shabirmean May 7, 2022
db838c5
release: update version before release
Shabirmean May 7, 2022
5722656
Revert "release: update version before release"
Shabirmean May 7, 2022
2cf05bd
test: set branch
Shabirmean May 7, 2022
c6590f6
release: update version before release
Shabirmean May 7, 2022
7775bb3
cleanup: add clarifying comment
Shabirmean May 7, 2022
b216a21
Merge branch 'restructure3' of https://github.com/GoogleCloudPlatform…
Shabirmean May 7, 2022
8b16346
Revert "release: update version before release"
Shabirmean May 7, 2022
b04b94a
chore: set github email secret
Shabirmean May 7, 2022
f2649c4
release: update version before release
Shabirmean May 7, 2022
347f67f
Revert "release: update version before release"
Shabirmean May 7, 2022
ff14e7f
release: update version before release
Shabirmean May 7, 2022
369b714
chore: add publish yaml
Shabirmean May 7, 2022
34ffa2e
Merge branch 'restructure3' of https://github.com/GoogleCloudPlatform…
Shabirmean May 7, 2022
49e68f6
Revert "release: update version before release"
Shabirmean May 7, 2022
110a1bc
release: update version before release
Shabirmean May 7, 2022
8c190eb
Revert "release: update version before release"
Shabirmean May 7, 2022
bb498da
chore: add build step for deploying images
Shabirmean May 7, 2022
50d2114
chore: add python step to publish yaml
Shabirmean May 7, 2022
c076a4b
chore: update releaser to print version
Shabirmean May 7, 2022
ad1aaf5
chore: rearrange code
Shabirmean May 7, 2022
550eb9c
release: update version before release
Shabirmean May 7, 2022
8ed044a
chore: fix version error
Shabirmean May 7, 2022
fdd71aa
Merge branch 'restructure3' of https://github.com/GoogleCloudPlatform…
Shabirmean May 7, 2022
6ac652f
Revert "release: update version before release"
Shabirmean May 7, 2022
65bd83f
release: update version before release
Shabirmean May 7, 2022
721673b
Revert "release: update version before release"
Shabirmean May 7, 2022
299a413
chore: fix substution variable
Shabirmean May 7, 2022
3fe4f54
release: update version before release
Shabirmean May 7, 2022
7f933cb
Revert "release: update version before release"
Shabirmean May 9, 2022
8ed9dc8
chore: fix the version and deps
Shabirmean May 9, 2022
ec7b888
release: update version before release
Shabirmean May 9, 2022
5d54689
Revert "release: update version before release"
Shabirmean May 9, 2022
2903135
chore: fix the version and deps
Shabirmean May 9, 2022
abbdbd4
release: update version before release
Shabirmean May 9, 2022
5f517d0
Revert "release: update version before release"
Shabirmean May 9, 2022
aead726
chore: fix the version and deps
Shabirmean May 9, 2022
ececb4d
release: update version before release
Shabirmean May 9, 2022
cc39916
Revert "release: update version before release"
Shabirmean May 9, 2022
54e904b
chore: fix the version and deps
Shabirmean May 9, 2022
4208bd6
release: update version before release
Shabirmean May 9, 2022
3f41935
Revert "release: update version before release"
Shabirmean May 9, 2022
1cda3ad
chore: fix the version and deps
Shabirmean May 9, 2022
9642318
release: update version before release
Shabirmean May 9, 2022
ac001ef
Revert "release: update version before release"
Shabirmean May 9, 2022
73463b2
chore: fix the version and deps
Shabirmean May 9, 2022
9aebc49
release: update version before release
Shabirmean May 9, 2022
172a4fc
Revert "release: update version before release"
Shabirmean May 9, 2022
6986454
chore: fix the version and deps
Shabirmean May 9, 2022
0039752
release: update version before release
Shabirmean May 9, 2022
3a2a760
Revert "release: update version before release"
Shabirmean May 9, 2022
02145a5
cleanup: rearrange yamls
Shabirmean May 9, 2022
fcbfc01
improv: add yaml update logic
Shabirmean May 9, 2022
dbcbac0
chore: add logic to update all yamls
Shabirmean May 9, 2022
5e20bcb
chore: add new lines
Shabirmean May 9, 2022
3577cd8
chore: reorder the updates
Shabirmean May 9, 2022
2318356
release: update version before release
Shabirmean May 9, 2022
e190173
chore: updated release script
Shabirmean May 9, 2022
02c4300
chore: uncomment the file edit
Shabirmean May 9, 2022
8481826
chore: rearrange the prints
Shabirmean May 9, 2022
d624a82
chore: add new argument
Shabirmean May 9, 2022
4f53672
chore: update the releaser to take patch as the next release version
Shabirmean May 9, 2022
983488f
chore: add logic to set SNAPSHOT version
Shabirmean May 9, 2022
1f89701
chore: fix incorrect variable bug
Shabirmean May 9, 2022
024c302
chore: fix releaser release versioning
Shabirmean May 9, 2022
463b7ba
chore: update release yaml files
Shabirmean May 9, 2022
75791dc
chore: complete the release yamls
Shabirmean May 9, 2022
6109fb1
Merge branch 'restructure3' of https://github.com/GoogleCloudPlatform…
Shabirmean May 9, 2022
bfc17d0
chore: save merge conflict resolution
Shabirmean May 9, 2022
4ff59b4
chore: set root pom to SNAPSHOT
Shabirmean May 9, 2022
924e2a3
chore: fix bash error
Shabirmean May 9, 2022
7d5aad9
release: update version before release
Shabirmean May 9, 2022
1f42ce0
chore: update commit msg checks
Shabirmean May 9, 2022
aa2c1f9
chore: add formatting
Shabirmean May 9, 2022
2578ef8
Revert "release: update version before release"
Shabirmean May 9, 2022
6060176
release: update version before release
Shabirmean May 9, 2022
326ed4f
chore: fix versions
Shabirmean May 9, 2022
e950c9f
Merge branch 'restructure3' of https://github.com/GoogleCloudPlatform…
Shabirmean May 9, 2022
d9aa2a4
chore: fix commit message
Shabirmean May 9, 2022
20f362a
release: update version before release
Shabirmean May 9, 2022
a8d65f9
chore: fix formatting
Shabirmean May 9, 2022
e47ed2f
Merge branch 'restructure3' of https://github.com/GoogleCloudPlatform…
Shabirmean May 9, 2022
60cdd21
Revert "release: update version before release"
Shabirmean May 9, 2022
f60edcb
chore: add email token to build file
Shabirmean May 9, 2022
ee086cc
release: update version before release
Shabirmean May 9, 2022
fdf2c83
Revert "release: update version before release"
Shabirmean May 9, 2022
0ed9c17
chore add deploy script
Shabirmean May 9, 2022
0fcd324
chore: fix branch error
Shabirmean May 9, 2022
4473cb5
release: update version before release
Shabirmean May 9, 2022
b52cb58
release: update version before release
Shabirmean May 9, 2022
67f7c64
Merge branch 'restructure3' of https://github.com/GoogleCloudPlatform…
Shabirmean May 9, 2022
a437020
release: update version before release
Shabirmean May 9, 2022
a88198e
Revert "release: update version before release"
Shabirmean May 9, 2022
aa75570
chore: fix version.txt error
Shabirmean May 9, 2022
c6e699e
chore: fix deploy ci
Shabirmean May 9, 2022
801b623
chore: update print message
Shabirmean May 9, 2022
46d5fbd
chore: enhance comment message
Shabirmean May 9, 2022
0b82562
chore(release): 0.1.0
Shabirmean May 9, 2022
91df771
chore(release): 0.1.1
Shabirmean May 9, 2022
c8dd2b3
chore: fix comment msg
Shabirmean May 9, 2022
da904cb
chore: remove mvn install
Shabirmean May 9, 2022
9a4ba70
chore: reorganize the deploy yaml
Shabirmean May 9, 2022
2dbf358
cleanup: revert changes inside the point-of-sale-app folder to match …
Shabirmean May 9, 2022
864fbfa
chore: add gh release step
Shabirmean May 9, 2022
953b428
Merge branch 'main' into v2-sql
Shabirmean May 9, 2022
69d6629
Merge branch 'v2-sql' into restructure3
Shabirmean May 9, 2022
1cb0874
chore: rename common service fiel names
Shabirmean May 9, 2022
863f4e1
chore: update the skaffold file to have services
Shabirmean May 9, 2022
e33eb81
chore: fix region tag
Shabirmean May 9, 2022
8db90fa
chore: force
Shabirmean May 9, 2022
724da80
chore: fix bash err
Shabirmean May 9, 2022
e57bfdf
release: update version before release
Shabirmean May 9, 2022
7f54c9a
release: bump version to next snapshot
Shabirmean May 9, 2022
af71f31
chore: update release messafe
Shabirmean May 10, 2022
0de9712
Merge branch 'restructure3' of https://github.com/GoogleCloudPlatform…
Shabirmean May 10, 2022
60bfee5
Revert "release: bump version to next snapshot"
Shabirmean May 10, 2022
362b6ba
Revert "release: update version before release"
Shabirmean May 10, 2022
2792141
chore: add readme for release
Shabirmean May 10, 2022
ba14047
doc: improve release doc
Shabirmean May 10, 2022
f1e7ed8
doc: add more release steps
Shabirmean May 10, 2022
98d90e5
doc: add more release steps
Shabirmean May 10, 2022
c6a45c4
doc: add more release steps
Shabirmean May 10, 2022
5c3adea
doc: add more release steps
Shabirmean May 10, 2022
c89ca82
doc: add more release steps
Shabirmean May 10, 2022
3312a5e
doc: add more release steps
Shabirmean May 10, 2022
7e336f4
doc: add more release steps
Shabirmean May 10, 2022
5b81e4c
chore: remove branch ref
Shabirmean May 10, 2022
744dd3f
chore: update the README
Shabirmean May 10, 2022
330f7f1
chore: rename relese yaml
Shabirmean May 10, 2022
b1fc892
doc: add release link to the main README
Shabirmean May 10, 2022
cdc4588
doc: update doc size
Shabirmean May 10, 2022
a2ee7a9
doc: add note to click to enlarge
Shabirmean May 10, 2022
5d86acd
doc: add contrib doc
Shabirmean May 10, 2022
b7af7f5
doc: note about Googler release
Shabirmean May 10, 2022
61895d4
doc: fix hyperlonk
Shabirmean May 10, 2022
993f0f1
doc: add inital steps
Shabirmean May 10, 2022
f7c6a1d
Merge branch 'restructure3' into contrib-guide
Shabirmean May 10, 2022
36d7d95
doc: add inital guide
Shabirmean May 10, 2022
177d904
doc: add section for skaffold run
Shabirmean May 10, 2022
4f13d9e
doc: add section
Shabirmean May 10, 2022
bc7ce04
doc: add section
Shabirmean May 10, 2022
3b35c39
doc: add section
Shabirmean May 10, 2022
0a18e65
doc: add section
Shabirmean May 10, 2022
e30ffd3
doc: add section
Shabirmean May 10, 2022
32c2794
doc: add ui build setup
Shabirmean May 10, 2022
f7e8154
doc: fix hyperlinks
Shabirmean May 10, 2022
fd4b55b
doc: add indentation
Shabirmean May 10, 2022
2770025
doc: add linebreaks
Shabirmean May 10, 2022
79ac9e2
doc: add local dev instrcution to main readme
Shabirmean May 10, 2022
e2754d1
Merge branch 'main' into contrib-guide
Shabirmean May 10, 2022
7b21727
cleanup: remove release please
Shabirmean May 10, 2022
6da207c
cleanup: remove the old folders
Shabirmean May 10, 2022
a11e172
doc: add docstring for the releaser
Shabirmean May 10, 2022
05d2a99
doc: add references to this application
Shabirmean May 10, 2022
36695f0
Merge branch 'contrib-guide' into cleanup
Shabirmean May 10, 2022
d7c26fd
Merge branch 'main' into cleanup
Shabirmean May 11, 2022
a5fb350
fix: java lint errors
Shabirmean May 11, 2022
ff6c2c7
fix: revert pom changes
Shabirmean May 11, 2022
474b52e
cleanup: add the coveo plugin for formatting
Shabirmean May 11, 2022
45a9c9f
cleanup: add maven verify step
Shabirmean May 11, 2022
16fc387
Merge branch 'main' into cb-error
Shabirmean May 12, 2022
4942b5f
fix: change the cloudbuilder
Shabirmean May 12, 2022
d457299
fix: use installed mvn
Shabirmean May 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/cloudbuild/pos-pr-open-to-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
###########################################################

steps:
###########################################################
# npm install to ensure ui dependencies have no errors
###########################################################
###########################################################
# npm install to ensure ui dependencies have no errors
###########################################################
- id: 'npm-install'
name: 'node:16.14.0'
dir: 'src/ui'
Expand All @@ -29,11 +29,25 @@ steps:
# indicates that the step need not wait for any other step
waitFor: [ '-' ]

###########################################################
# Verify that Java code has no errors
###########################################################
- id: 'maven-verify-java'
name: 'gcr.io/cloud-builders/mvn'
entrypoint: bash
args:
- -c
- |
# This will only check and report errors. Can fix them by using [./mvnw com.coveo:fmt-maven-plugin:format]
mvn clean verify -DskipTests
# indicates that the step need not wait for any other step
waitFor: [ '-' ]

###########################################################
# create namespace yaml for the PR
###########################################################
- id: 'create-namespace.yaml'
name: ubuntu
name: 'ubuntu'
entrypoint: bash
args:
- -c
Expand Down Expand Up @@ -75,7 +89,7 @@ steps:
# create the skaffold deploy script
###########################################################
- id: 'create-skaffold-exec-script'
name: ubuntu
name: 'ubuntu'
entrypoint: bash
args:
- -c
Expand Down
5 changes: 5 additions & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q: should this be in the .gitignore?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is required for the successful run of the mvn verify step that is newly added.

30 changes: 28 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
<maven-checkstyle.plugin.version>3.1.2</maven-checkstyle.plugin.version>
<maven-surefire.plugin.version>2.22.2</maven-surefire.plugin.version>
<jacoco-maven.plugin.version>0.8.7</jacoco-maven.plugin.version>
<coveo-fmt-maven-plugin.version>2.13</coveo-fmt-maven-plugin.version>
<googlejavaformat.version>1.15.0</googlejavaformat.version>
<artifactregistry-maven-wagon.extension.version>2.1.5
</artifactregistry-maven-wagon.extension.version>
</properties>
Expand Down Expand Up @@ -109,12 +111,12 @@
<dependency>
<groupId>com.google.abm-edge</groupId>
<artifactId>ui</artifactId>
<version>${pom.version}</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.abm-edge</groupId>
<artifactId>service-sdk</artifactId>
<version>${pom.version}</version>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down Expand Up @@ -161,6 +163,30 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>${coveo-fmt-maven-plugin.version}</version>
<configuration>
<style>google</style>
<verbose>true</verbose>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format</artifactId>
<version>${googlejavaformat.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<!-- <phase>validate</phase> -->
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<extensions>
Expand Down
5 changes: 5 additions & 0 deletions src/api-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<!--Coveo plugin is used to validate for code formatting. It uses 'google-java-format'-->
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,27 @@
import org.apache.logging.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
* The main entry point into the api-server of the point-of-sale application stack. This class
* serves the key requirement of starting the Springboot service and the embedded web server along
* wih to start accepting requests
*
* <p>The api-server service APIs are the only publicly-accessible APIs in stack. All requests to the
* other services essentially pass-through this service. The static files from the UI consume the
* api-server APIs to load items and process payment
* <p>The api-server service APIs are the only publicly-accessible APIs in stack. All requests to
* the other services essentially pass-through this service. The static files from the UI consume
* the api-server APIs to load items and process payment
*/
@SpringBootApplication
public class ApiServerApplication {
private static final Logger LOGGER =
LogManager.getLogger(ApiServerApplication.class);
private static final Logger LOGGER = LogManager.getLogger(ApiServerApplication.class);

public static void main(String[] args) {
SpringApplication.run(ApiServerApplication.class, args);
}
public static void main(String[] args) {
SpringApplication.run(ApiServerApplication.class, args);
}

/** A utility method to print out a log message when the Springboot application terminates */
@PreDestroy
public void destroy() {
LOGGER.info("Api-Server is shutting down");
}
/** A utility method to print out a log message when the Springboot application terminates */
@PreDestroy
public void destroy() {
LOGGER.info("Api-Server is shutting down");
}
}