diff --git a/src/main/java/com/ntlab/irisserver/resources/TestRest.java b/src/main/java/com/ntlab/irisserver/resources/TestRest.java index d7725b8..fdcbcb9 100644 --- a/src/main/java/com/ntlab/irisserver/resources/TestRest.java +++ b/src/main/java/com/ntlab/irisserver/resources/TestRest.java @@ -69,52 +69,52 @@ Drawing draw = new Drawing(); switch (i) { case 0: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test01.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test01.jpg"; break; case 1: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test02.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test02.jpg"; break; case 2: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test03.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test03.jpg"; break; case 3: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test04.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test04.jpg"; break; case 4: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test05.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test05.jpg"; break; case 5: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test06.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test06.jpg"; break; case 6: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test07.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test07.jpg"; break; case 7: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test08.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test08.jpg"; break; case 8: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test09.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test09.jpg"; break; case 9: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test10.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test10.jpg"; break; case 10: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test11.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test11.jpg"; break; case 11: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test12.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test12.jpg"; break; case 12: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test13.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test13.jpg"; break; case 13: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test14.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test14.jpg"; break; case 14: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test15.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test15.jpg"; break; case 15: - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test16.jpg"; + path = "http://nitta-lab-www.is.konan-u.ac.jp/irisdata/image/test16.jpg"; break; default: break; @@ -133,3 +133,4 @@ } +//applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/irisdata/image/test16.jpg";