Uweheuerbackend: Difference between revisions
(→Build) |
(→Run) |
||
| Line 20: | Line 20: | ||
===Local from Eclipse=== | ===Local from Eclipse=== | ||
* create Eclipse Run Configuration [[File:SpringBootRunConfiguration1.png|400px]] [[File:SpringBootRunConfiguration2.png|400px]] | * create Eclipse Run Configuration [[File:SpringBootRunConfiguration1.png|400px]] [[File:SpringBootRunConfiguration2.png|400px]] | ||
==Implementation== | |||
===Spring Boot Standard Diagnosis Actuator=== | |||
* adding Spring Boot Actuator by adding to pom.xml: | |||
<dependency> | |||
<groupId>org.springframework.boot</groupId> | |||
<artifactId>spring-boot-starter-actuator</artifactId> | |||
</dependency> | |||
* adding to application.properties the endpoints | |||
management.endpoints.web.exposure.include=* | |||
Revision as of 09:56, 13 December 2022
Build
- build by Maven
- setup on computer see here
- steering of target environments by profiles in
pom.xml:- local_dev (default)
- heroku
APIs
- http://localhost:8080/menus/
- http://localhost:8080/actuator/health
- http://localhost:8080/actuator/env
- http://localhost:8080/actuator/info
- http://localhost:8080/admin/import
Run
Local from Command Line
C:\Uwes\SoftwareProjects\eclipse-workspace\uweheuer-backend>mvn spring-boot:run -Dspring-boot.run.arguments="--spring.datasource.password=mHalloo0@1m --spring.datasource.username=root --uweheuer.bookmarks.import.dbuser=root --uweheuer.bookmarks.import.dbpwd=mHalloo0@1m --uweheuer.bookmarks.parole=jakobthimo123456"
Local from Eclipse
Implementation
Spring Boot Standard Diagnosis Actuator
- adding Spring Boot Actuator by adding to pom.xml:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
- adding to application.properties the endpoints
management.endpoints.web.exposure.include=*