public interface UserService {
String getUsername(int userId);
}
public class UserServiceImpl implements UserService {
public String getUsername(int userId) {
}
}
<dubbo:service interface="com.example.UserService" ref="userService" />
<bean id="userService" class="com.example.UserServiceImpl" />
<dubbo:reference id="userService" interface="com.example.UserService" />