|  | @ -8,6 +8,10 @@ import com.yihu.ehr.service.thread.CrawlerThread;
 | 
												
													
														
															|  | import com.yihu.ehr.service.thread.StandardUpdateThread;
 |  | import com.yihu.ehr.service.thread.StandardUpdateThread;
 | 
												
													
														
															|  | import com.yihu.ehr.service.thread.ThreadManage;
 |  | import com.yihu.ehr.service.thread.ThreadManage;
 | 
												
													
														
															|  | import com.yihu.ehr.util.log.LogUtil;
 |  | import com.yihu.ehr.util.log.LogUtil;
 | 
												
													
														
															|  | 
 |  | import org.springframework.core.io.ClassPathResource;
 | 
												
													
														
															|  | 
 |  | import org.springframework.core.io.Resource;
 | 
												
													
														
															|  | 
 |  | import org.springframework.core.io.support.EncodedResource;
 | 
												
													
														
															|  | 
 |  | import org.springframework.core.io.support.PropertiesLoaderUtils;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | import javax.servlet.ServletContextEvent;
 |  | import javax.servlet.ServletContextEvent;
 | 
												
													
														
															|  | import javax.servlet.ServletContextListener;
 |  | import javax.servlet.ServletContextListener;
 | 
												
											
												
													
														
															|  | @ -50,7 +54,16 @@ public class ApplicationStart implements ServletContextListener {
 | 
												
													
														
															|  |         prop.load(in);
 |  |         prop.load(in);
 | 
												
													
														
															|  |         String configPath = this.getClass().getClassLoader().getResource("/").getPath()+ "config/http.properties";
 |  |         String configPath = this.getClass().getClassLoader().getResource("/").getPath()+ "config/http.properties";
 | 
												
													
														
															|  |         OutputStream fos = new FileOutputStream(configPath);
 |  |         OutputStream fos = new FileOutputStream(configPath);
 | 
												
													
														
															|  |         String url = homeUrl+"ssl/tomcat.keystore";
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |         prop.getProperty("sslKeystore");
 | 
												
													
														
															|  | 
 |  |         String url="";
 | 
												
													
														
															|  | 
 |  |         if(prop.getProperty("sslKeystore")!=null&& prop.getProperty("sslKeystore").length()>0){
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |              url= this.getClass().getClassLoader().getResource("/").getPath() + "ssl/tomcat.keystore";
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         else {
 | 
												
													
														
															|  | 
 |  |              url = homeUrl + "ssl/tomcat.keystore";
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  |         prop.setProperty("sslKeystore",url);
 |  |         prop.setProperty("sslKeystore",url);
 | 
												
													
														
															|  |         prop.store(fos,"last update");
 |  |         prop.store(fos,"last update");
 | 
												
													
														
															|  |         in.close();
 |  |         in.close();
 |