Spring Services

springmvc

A service is a Java class marked with the @Service annotation:

@Service
public class LoginService {
    public boolean validateUser(String user, String password) {
        return user.equalsIgnoreCase("whatever") && password.equals("dummy");
    }
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License