@DSComponent public interface MyService { void doSomething(); } public class MyServiceImpl implements MyService { @DSReference private OtherService otherService; public void doSomething() { otherService.doSomething(); } } <ds:annotation-config package="com.example.service" /> public class Application { public static void main(String[] args) { DSFramework.init(); //... } }


上一篇:
下一篇:
切换中文