Skip to content

Commit

Permalink
fix(springbootlabs): fixed annotations and properties on integration …
Browse files Browse the repository at this point in the history
…test section
  • Loading branch information
e563186 committed Jan 8, 2025
1 parent 692b811 commit 710a94b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/en/labs/java/spring/01_Spring.md
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=password
spring.datasource.platform=h2
spring.sql.init.platform=h2
spring.jpa.hibernate.ddl-auto=update
```

Expand All @@ -1119,8 +1119,10 @@ spring:
url: jdbc:h2:mem:testdb
username: sa
password: password
platform: h2
driver-class-name: org.h2.Driver
sql:
init:
platform: h2
jpa:
hibernate:
ddl-auto: update
Expand Down Expand Up @@ -1156,7 +1158,7 @@ Integrationstests sind wichtig, um sicherzustellen, dass verschiedene Komponente
@SpringBootTest
@AutoConfigureMockMvc
@ActiveProfiles("admin")
@ExtendWith(SpringExtension.class)
@TestPropertySource("/application-test.properties")
public class AdminControllerIntegrationTest {

@Autowired
Expand Down

0 comments on commit 710a94b

Please sign in to comment.