00 Vorarbeiten ÜK 295 ZH2024
00 Vorarbeiten ÜK 295 ZH2024
TALENTE
AUSBILDEN I FÖRDERN I ENTFALTEN
• Contents
• Preface
────────────────────────────
• Docker
• Java
• PostgreSQL
• Spring Boot
────────────────────────────
• Postface
• For today, having everything installed and in a working state is more important
than knowing how to operate each tool
• https://www.docker.com/products/docker-desktop
• https://jdk.java.net/archive/
• https://jdk.java.net/22/
• (Installing JDK directly from IntelliJ should also be sufficient)
• https://start.spring.io
2. click 1. click
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.hibernate.ddl-auto=create-drop
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.jpa.properties.hibernate.default_schema=public
1. click
2. click
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@GetMapping("/")
public String index() {
return "Greetings from Spring Boot!";
}
}
• For the üK, the same Docker container can be reused. But new
projects will need to be set up accordingly