jspjava实现的购物系统

源代码在线查看: config.java

软件大小: 1473 K
上传用户: jiangleip531
关键词: jspjava
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				package com.buy.bean.comm.database;
				
				import java.io.IOException;
				import java.util.Properties;
				
				public class Config {
					private static Properties prop = new Properties();
					static {
						try {
							prop.load(Config.class
									.getResourceAsStream("config.properties"));
							
						} catch (IOException e) {
							System.out.println("File:config.properties no find,PLS check out!");
							e.printStackTrace();
						}
					}	
					public static String CONNECTION_TYPE = prop.getProperty("conn_type");
					public static String CONNECTION_URL = prop.getProperty("conn_url");
					public static String CONNECTION_USER = prop.getProperty("conn_user");
					public static String CONNECTION_PWD = prop.getProperty("conn_pwd");
					public static String CONNECTION_DRIVER = prop.getProperty("conn_driver");
						
				}
							

相关资源