Skip to content
Snippets Groups Projects
Commit 120b21eb authored by Hoai Viet Nguyen's avatar Hoai Viet Nguyen
Browse files

update configuration

parent 6a819f6c
No related branches found
No related tags found
No related merge requests found
FROM eclipse-temurin:17-jdk
WORKDIR /app
COPY . /app
EXPOSE 8080
ENTRYPOINT ["./gradlew","bootRun"]
\ No newline at end of file
......@@ -25,6 +25,8 @@ services:
- PGADMIN_LISTEN_PORT=8080
ports:
- "9001:8080"
volumes:
- pgadmin-data:/var/lib/pgadmin
springboot:
build:
......@@ -36,3 +38,4 @@ services:
volumes:
postgres-data:
pgadmin-data:
\ No newline at end of file
......@@ -2,14 +2,10 @@ package de.thk.gm.gdw.todolist.controllers
import de.thk.gm.gdw.todolist.services.TasksService
import de.thk.gm.gdw.todolist.services.UsersService
import jakarta.validation.Valid
import org.springframework.http.HttpStatus
import org.springframework.http.MediaType
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.validation.BindingResult
import org.springframework.web.bind.annotation.*
import org.springframework.web.servlet.mvc.support.RedirectAttributes
import java.util.*
@Controller
......
#application-prod.properties
spring.datasource.url= jdbc:postgresql://postgres:5432/todo
spring.datasource.username=user
spring.datasource.password=password
......
#application.properties
spring.application.name=todolist
#spring.datasource.url=jdbc:h2:file:./todolistdb
spring.datasource.url=jdbc:h2:mem:todolist
#spring.datasource.url=jdbc:mys
#spring.datasource.url=jdbc:mysql://localhost:3306/mydatabase
#spring.datasource.username=myuser
#spring.datasource.password=secret
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=sa
spring.datasource.password=password
spring.jpa.hibernate.ddl-auto=update
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment