forked from RameshMF/spring-boot-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency org.springframework.boot:spring-boot-starter-parent…
… to v3.1.1 (#110) * Update dependency org.springframework.boot:spring-boot-starter-parent to v3.1.1 * upgrade * polish * polish --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Raja Kolli <[email protected]>
- Loading branch information
1 parent
025af9c
commit eee74d7
Showing
12 changed files
with
143 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,24 +17,19 @@ jobs: | |
build: | ||
name: Run Unit & Integration Tests | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: springboot2-jpa-swagger3 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
|
||
- name: Set up JDK 18 | ||
- name: Set up JDK 20 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 18 | ||
java-version: 20 | ||
distribution: "zulu" | ||
cache: "maven" | ||
- name: Start up databases via docker compose | ||
run: | | ||
cd springboot2-jpa-swagger3 | ||
docker compose up -d | ||
sleep 15 | ||
docker ps -a | ||
- name: Build and analyze | ||
run: | | ||
cd springboot2-jpa-swagger3 | ||
mvn clean package | ||
run: ./mvnw clean package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
springboot-thymeleaf-security-demo/src/main/resources/application-prod.properties
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
springboot-thymeleaf-security-demo/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,7 @@ delete from users; | |
INSERT INTO roles (id, name) VALUES | ||
(1, 'ROLE_ADMIN'), | ||
(2, 'ROLE_ACTUATOR'), | ||
(3, 'ROLE_USER') | ||
; | ||
(3, 'ROLE_USER'); | ||
|
||
INSERT INTO users (id, email, password, name) VALUES | ||
(1, '[email protected]', '$2a$10$hKDVYxLefVHV/vtuPhWD3OigtRyOykRLDdUAp80Z1crSoS1lFqaFS', 'Admin'), | ||
|
@@ -52,5 +51,4 @@ insert into user_role(user_id, role_id) values | |
(1,1), | ||
(1,2), | ||
(1,3), | ||
(3,2) | ||
; | ||
(3,2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ava/net/javaguides/springbootsecurity/TestSpringbootThymeleafSecurityDemoApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package net.javaguides.springbootsecurity; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.test.context.TestConfiguration; | ||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection; | ||
import org.springframework.context.annotation.Bean; | ||
import org.testcontainers.containers.MySQLContainer; | ||
|
||
@TestConfiguration(proxyBeanMethods = false) | ||
public class TestSpringbootThymeleafSecurityDemoApplication { | ||
|
||
@Bean | ||
@ServiceConnection | ||
MySQLContainer<?> mysqlContainer() { | ||
return new MySQLContainer<>("mysql:latest"); | ||
} | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.from(SpringbootThymeleafSecurityDemoApplication::main).with(TestSpringbootThymeleafSecurityDemoApplication.class).run(args); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...t/java/net/guides/springboot2/springboot2swagger3/TestSpringboot2Swagger3Application.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package net.guides.springboot2.springboot2swagger3; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.test.context.TestConfiguration; | ||
import org.springframework.boot.testcontainers.service.connection.ServiceConnection; | ||
import org.springframework.context.annotation.Bean; | ||
import org.testcontainers.containers.PostgreSQLContainer; | ||
|
||
@TestConfiguration(proxyBeanMethods = false) | ||
public class TestSpringboot2Swagger3Application { | ||
|
||
@Bean | ||
@ServiceConnection | ||
PostgreSQLContainer<?> postgresContainer() { | ||
return new PostgreSQLContainer<>("postgres:latest"); | ||
} | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.from(Springboot2Swagger3Application::main).with(TestSpringboot2Swagger3Application.class).run(args); | ||
} | ||
|
||
} |