spring boot可以通过修改application.properties配置去支持https吗
1个回答
展开全部
public void getCsisUrl(){
Properties p = new Properties();
try{
FileInputStream in = new FileInputStream(ServletActionContext.getRequest().getRealPath("/WEB-INF/classes/demo.properties"));
p.load(in);
in.close();
String csisUrl= p.getProperty("csisUrl");
//System.out.println(csisUrl);
}catch(Exception e){
e.printStackTrace();
}
}
Properties p = new Properties();
try{
FileInputStream in = new FileInputStream(ServletActionContext.getRequest().getRealPath("/WEB-INF/classes/demo.properties"));
p.load(in);
in.close();
String csisUrl= p.getProperty("csisUrl");
//System.out.println(csisUrl);
}catch(Exception e){
e.printStackTrace();
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询