将实际使用类的启动类改为如下形式启动:
public class OrderApplication { public static void main(String[] args) { Object[] objects= new Object[2]; objects[0] = CommonApplication.class; objects[1] = OrderApplication.class; SpringApplication.run(objects, args); } }
本文共 343 字,大约阅读时间需要 1 分钟。
将实际使用类的启动类改为如下形式启动:
public class OrderApplication { public static void main(String[] args) { Object[] objects= new Object[2]; objects[0] = CommonApplication.class; objects[1] = OrderApplication.class; SpringApplication.run(objects, args); } }
转载于:https://www.cnblogs.com/cenglinjinran/p/8384996.html