| 
					
				 | 
			
			
				@@ -39,33 +39,28 @@ import java.awt.event.WindowEvent; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.io.File; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.io.IOException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.io.PrintStream; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.lang.reflect.Field; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.net.URL; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.nio.charset.Charset; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Slf4j 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @EnableAsync 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Configuration 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @SpringBootApplication 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @ComponentScan(basePackages = {"com.its.dsrc.config", "com.its.dsrc.dao.mapper", "com.its"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//java -jar app.jar --spring.config.location=classpath:/another-location.properties 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//java -jar app.jar --spring.config.location=config/*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//java -jar app.jar --property="value" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//java -Dproperty.name="value" -jar app.jar 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//export name=value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//java -jar app.jar 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=prod" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//@PropertySource("classpath:foo.properties") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//@PropertySource("classpath:bar.properties") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//@PropertySources({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        @PropertySource("classpath:foo.properties"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        @PropertySource("classpath:bar.properties") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//public class DsrcCommServerApplication implements CommandLineRunner, ApplicationListener<ContextClosedEvent>, InitializingBean, DisposableBean { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class DsrcCommServerApplication implements CommandLineRunner, ApplicationListener<ContextClosedEvent>, InitializingBean, DisposableBean { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private static String applicationName = "dsrc-comm-server"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static void main(String[] args) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        System.setProperty("file.encoding","UTF-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Field charset = Charset.class.getDeclaredField("defaultCharset"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            charset.setAccessible(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            charset.set(null,null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } catch(Exception e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         File file1 = new File("./conf/" + applicationName + ".pid"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (file1.exists()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             System.out.println(System.getProperty("Program Already Running.....")); 
			 |