@Slf4j
public class DubboPrivoter {
public static void main(String[] a){
try {
ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("classpath:application.xml");
context.start();
}catch (Exception e){
log.error("=====:",e);
}
synchronized (DubboPrivoter.class){
while(true){
try {
DubboPrivoter.class.wait();
}catch (Exception e){
log.error("synchronized===:",e);
}
}
}
}
}
网友评论