Skip to content

Commit 9a1f179

Browse files
committed
add junit test to security-jwt
1 parent fc7863d commit 9a1f179

File tree

4 files changed

+35
-6
lines changed

4 files changed

+35
-6
lines changed

springboot-starter-security-jwt/pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030
<artifactId>spring-boot-starter-web</artifactId>
3131
</dependency>
3232

33-
<dependency>
34-
<groupId>org.springframework.security</groupId>
35-
<artifactId>spring-security-test</artifactId>
36-
<scope>test</scope>
37-
</dependency>
38-
3933
<dependency>
4034
<groupId>io.jsonwebtoken</groupId>
4135
<artifactId>jjwt-api</artifactId>
@@ -55,5 +49,6 @@
5549
<groupId>com.codingapi.springboot</groupId>
5650
<artifactId>springboot-starter</artifactId>
5751
</dependency>
52+
5853
</dependencies>
5954
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.codingapi.springboot.security;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class SecurityJwtApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(SecurityJwtApplication.class,args);
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.codingapi.springboot.security;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.springframework.boot.test.context.SpringBootTest;
5+
6+
@SpringBootTest
7+
public class SecurityJwtApplicationTest {
8+
9+
10+
@Test
11+
void test(){
12+
13+
}
14+
15+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
server.port=8088
2+
3+
spring.datasource.driver-class-name=org.h2.Driver
4+
spring.datasource.url=jdbc:h2:file:./test.db
5+
6+
spring.jpa.hibernate.ddl-auto=create-drop
7+
spring.jpa.show-sql=true

0 commit comments

Comments
 (0)