JAVA-28935 Upgrade to Spring Boot 3 for Mysql (#15436)
This commit is contained in:
parent
b19a80d569
commit
f7d5d62a57
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
||||||
<artifactId>parent-boot-2</artifactId>
|
<artifactId>parent-boot-3</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<relativePath>../../parent-boot-2</relativePath>
|
<relativePath>../../parent-boot-3</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -43,7 +43,6 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
<version>2.1.5.RELEASE</version>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package com.baeldung.boot;
|
package com.baeldung.boot;
|
||||||
|
|
||||||
|
import jakarta.annotation.PostConstruct;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package com.baeldung.boot;
|
package com.baeldung.boot;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.data.annotation.CreatedDate;
|
import org.springframework.data.annotation.CreatedDate;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.baeldung.boot.jpa;
|
package com.baeldung.boot.jpa;
|
||||||
|
|
||||||
|
|
||||||
import javax.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
spring:
|
spring:
|
||||||
profiles:
|
config:
|
||||||
active: "dev2"
|
activate:
|
||||||
|
on-profile: "dev2"
|
||||||
main:
|
main:
|
||||||
banner-mode: "off"
|
banner-mode: "off"
|
||||||
jpa:
|
jpa:
|
||||||
@ -14,7 +15,9 @@ spring:
|
|||||||
---
|
---
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
profiles: "dev1"
|
config:
|
||||||
|
activate:
|
||||||
|
on-profile: "dev1"
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://localhost:3306/test?
|
url: jdbc:mysql://localhost:3306/test?
|
||||||
username: root
|
username: root
|
||||||
@ -23,7 +26,9 @@ spring:
|
|||||||
---
|
---
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
profiles: "dev2"
|
config:
|
||||||
|
activate:
|
||||||
|
on-profile: "dev2"
|
||||||
datasource:
|
datasource:
|
||||||
url: >-
|
url: >-
|
||||||
jdbc:mysql://localhost:3306/test_db?sslMode=VERIFY_CA&
|
jdbc:mysql://localhost:3306/test_db?sslMode=VERIFY_CA&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user