java 模块调用

import dd.com.MyService;
import dd.com.start.StartOk;

module one {
    exports cc.com;
    exports dd.com;
    provides MyService with StartOk;
}
import dd.com.MyService;

module two {
    requires one;
    uses MyService;
}

 

posted @ 2022-04-28 22:33  phpwyl  阅读(99)  评论(0编辑  收藏  举报