Newer
Older
IrisServerWebSocket / src / main / java / com / ntlab / irisserver / IrisServerApplication.java
package com.ntlab.irisserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.io.IOException;

@SpringBootApplication
public class IrisServerApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(IrisServerApplication.class, args);
        String path;
        try {
            path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/keywords.txt";
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}