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

import com.ntlab.irisserver.entities.Member;
import com.ntlab.irisserver.entities.Room;
import com.ntlab.irisserver.models.KeywordManager;
import com.ntlab.irisserver.models.RoomManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Random;

@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();
        }

    }
}