JAVA-28935 Upgrade to Spring Boot 3 for Mysql (#15436)
This commit is contained in:
parent
b19a80d569
commit
f7d5d62a57
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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&
|
||||
|
Loading…
x
Reference in New Issue
Block a user