Skip to content

Commit 37225e1

Browse files
committed
[FIX] all - etc
1 parent 7e81c86 commit 37225e1

File tree

7 files changed

+45
-38
lines changed

7 files changed

+45
-38
lines changed

SpringBootCors/src/main/java/com/example/java/SpringBootCorsApplication.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@SpringBootApplication
77
public class SpringBootCorsApplication {
88

9-
public static void main(String[] args) {
10-
SpringApplication.run(SpringBootCorsApplication.class, args);
11-
}
9+
public static void main(String[] args) {
10+
SpringApplication.run(SpringBootCorsApplication.class, args);
11+
}
1212
}

SpringBootCors/src/main/java/com/example/java/config/WebConfig.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
@Configuration
1010
public class WebConfig {
1111

12-
@Bean
13-
public WebMvcConfigurer webMvcConfigurer() {
14-
return new WebMvcConfigurer() {
15-
@Override
16-
public void addCorsMappings(CorsRegistry registry) {
17-
registry.addMapping("/message/**")
18-
.allowedOrigins("*")
19-
.allowedMethods(HttpMethod.POST.name())
20-
.allowCredentials(false)
21-
.maxAge(3600);
22-
}
23-
};
24-
}
12+
@Bean
13+
public WebMvcConfigurer webMvcConfigurer() {
14+
return new WebMvcConfigurer() {
15+
@Override
16+
public void addCorsMappings(CorsRegistry registry) {
17+
registry.addMapping("/message/**")
18+
.allowedOrigins("*")
19+
.allowedMethods(HttpMethod.POST.name())
20+
.allowCredentials(false)
21+
.maxAge(3600);
22+
}
23+
};
24+
}
2525

2626
// => webflux 사용시 작성법
2727
//
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.tistory.heowc;
1+
package com.example.java;
22

33
import org.junit.Test;
44
import org.junit.runner.RunWith;
@@ -9,8 +9,8 @@
99
@SpringBootTest
1010
public class SpringBootCorsApplicationTests {
1111

12-
@Test
13-
public void contextLoads() {
14-
}
12+
@Test
13+
public void contextLoads() {
14+
}
1515

1616
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example;
1+
package com.example.java;
22

33
import org.junit.Test;
44
import org.junit.runner.RunWith;
@@ -9,8 +9,8 @@
99
@SpringBootTest
1010
public class SpringBootCustomJacksonApplicationTests {
1111

12-
@Test
13-
public void contextLoads() {
14-
}
12+
@Test
13+
public void contextLoads() {
14+
}
1515

1616
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.heowc;
1+
package com.example.java;
22

33
import org.junit.Test;
44
import org.junit.runner.RunWith;
@@ -9,8 +9,8 @@
99
@SpringBootTest
1010
public class SpringBootDockerApplicationTests {
1111

12-
@Test
13-
public void contextLoad() {
12+
@Test
13+
public void contextLoad() {
1414

15-
}
15+
}
1616
}

SpringBootExcel/src/test/java/com/example/SpringBootExcelApplicationTests.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.example.component.ExcelReader;
44
import com.example.domain.Product;
55
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
6+
import org.junit.Ignore;
67
import org.junit.Test;
78
import org.junit.runner.RunWith;
89
import org.springframework.beans.factory.annotation.Autowired;
@@ -18,16 +19,17 @@
1819
@SpringBootTest
1920
public class SpringBootExcelApplicationTests {
2021

21-
@Autowired
22-
ExcelReader excelReader;
22+
@Autowired
23+
ExcelReader excelReader;
2324

24-
@Test
25-
public void test_readExcel() throws IOException, InvalidFormatException {
26-
File xlsxFile = new File("{path}\\test.xlsx");
25+
@Test
26+
@Ignore
27+
public void test_readExcel() throws IOException, InvalidFormatException {
28+
File xlsxFile = new File("{path}\\test.xlsx");
2729

28-
excelReader
29-
.readFileToList(new MockMultipartFile("test.xlsx", new FileInputStream(xlsxFile)),
30-
Product::from)
31-
.forEach(System.out::println);
32-
}
30+
excelReader
31+
.readFileToList(new MockMultipartFile("test.xlsx", new FileInputStream(xlsxFile)),
32+
Product::from)
33+
.forEach(System.out::println);
34+
}
3335
}

SpringBootHateoas/src/test/java/com/example/SpringBootHateoasApplicationTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.example;
22

3+
import org.junit.Test;
34
import org.junit.runner.RunWith;
45
import org.springframework.boot.test.context.SpringBootTest;
56
import org.springframework.test.context.junit4.SpringRunner;
@@ -8,4 +9,8 @@
89
@SpringBootTest
910
public class SpringBootHateoasApplicationTests {
1011

12+
@Test
13+
public void contextLoad() {
14+
15+
}
1116
}

0 commit comments

Comments
 (0)