Remark : Spring 모듈 간단 테스트 샘플
SpringApplication.run(DemoApplication.class, args); 주석처리 후 DemoApplication 추가
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
package com.example.demo; import io.reactivex.Observable; import org.apache.catalina.LifecycleException; import org.springframework.boot.autoconfigure.SpringBootApplication; import java.io.IOException; @SpringBootApplication public class DemoApplication { public static void main(String[] args) throws IOException, LifecycleException { //SpringApplication.run(DemoApplication.class, args); DemoApplication demo = new DemoApplication(); demo.JsonRead("SampleRq.json"); } public void emit() { Observable.just("Hello", "RxJava :2.2.21!!") .subscribe(System.out::println); } public void JsonRead(String FileName) { //JsonRead System.out.println(FileName); } } |