- public static void main(String[] args) {
- ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application-root-bean.xml");
- final InfluxTransactionWS influxTransactionWS = (InfluxTransactionWS) context.getBean("influxTransactionWS");
- for (int i = 0; i < 400; i++) {
- final int t=i;
- new Thread()
- {
- //调用业务代码
- }.start();
- }
- }
启动多个线程测试 代码中的
最新推荐文章于 2022-04-22 15:33:04 发布