Commit a9ebfe8a authored by 马博's avatar 马博

ui update

parent fc1b2c6f
......@@ -13,10 +13,10 @@ import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
@ComponentScan(basePackages = {"ui","http","base","utils"})
@PropertySource(value = {"duiba.properties"})
public class Config {
@Bean
public PropertySourcesPlaceholderConfigurer propertyConfigInDev() {
PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer();
pspc.setFileEncoding("UTF-8");
return pspc;
}
// @Bean
// public PropertySourcesPlaceholderConfigurer propertyConfigInDev() {
// PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer();
// pspc.setFileEncoding("UTF-8");
// return pspc;
// }
}
......@@ -140,7 +140,7 @@ public class DingdingResult {
public String getByRun(String run,String type) throws UnsupportedEncodingException {
run = run.substring(run.indexOf("_")+1, run.indexOf("."));
run =this.env.getProperty(run+"."+type);
return run;//new String(run.getBytes("ISO-8859-1"), "UTF-8");//ISO-8859-1
return new String(run.getBytes("ISO-8859-1"), "UTF-8");//ISO-8859-1
}
public static void main(String[] args) throws UnsupportedEncodingException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment