JAVA-28935 Upgrade to Spring Boot 3 for Mysql (#15436)

This commit is contained in:
Amit Pandey 2023-12-20 13:16:34 +05:30 committed by GitHub
parent b19a80d569
commit f7d5d62a57
5 changed files with 15 additions and 10 deletions

View File

@ -9,9 +9,9 @@
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-boot-2</artifactId>
<artifactId>parent-boot-3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../parent-boot-2</relativePath>
<relativePath>../../parent-boot-3</relativePath>
</parent>
<dependencies>
@ -43,7 +43,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.5.RELEASE</version>
<executions>
<execution>
<goals>

View File

@ -1,9 +1,9 @@
package com.baeldung.boot;
import jakarta.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import javax.annotation.PostConstruct;
import java.util.TimeZone;
@SpringBootApplication

View File

@ -1,9 +1,10 @@
package com.baeldung.boot;
import org.springframework.data.annotation.CreatedDate;
import javax.persistence.*;
import jakarta.persistence.*;
import java.util.Date;
@Entity

View File

@ -1,7 +1,7 @@
package com.baeldung.boot.jpa;
import javax.persistence.*;
import jakarta.persistence.*;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

View File

@ -1,6 +1,7 @@
spring:
profiles:
active: "dev2"
config:
activate:
on-profile: "dev2"
main:
banner-mode: "off"
jpa:
@ -14,7 +15,9 @@ spring:
---
spring:
profiles: "dev1"
config:
activate:
on-profile: "dev1"
datasource:
url: jdbc:mysql://localhost:3306/test?
username: root
@ -23,7 +26,9 @@ spring:
---
spring:
profiles: "dev2"
config:
activate:
on-profile: "dev2"
datasource:
url: >-
jdbc:mysql://localhost:3306/test_db?sslMode=VERIFY_CA&