You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class LoginNewController {
@Autowired
private LoginNewService loginService;
public void login() {
loginService.login();
}
}
@Service
public class LoginService {
public void login() {
}
}
@Service
public class LoginNewService {
public void login() {
}
}
The text was updated successfully, but these errors were encountered:
@autowire优先找到类型符合的bean。但是在下例中,会错误得找到LoginService
The text was updated successfully, but these errors were encountered: