I'm new to creating web applications using Spark Java.
I am trying to use the 'first' filter but am getting the error below. Please help. I have pasted my code below. Bootstrap is the main way of my class.
error: "method is undetermined for bootstrap type"
public class bootstrap {public static zero main (string [] args) exception {IpAddress ("localhost") throws; Port (3003); StaticFileLocation ("/ public / html"); First ((request, response) -> {string user = request.quiripermum ("user"); string password = request. Curious ("password"); string db password = user name passwords.get (user); if ( ! (Password! = Null & amp; amp; & amp; password; equals (dbPassword)) {halt (401, "you are not welcome here !!");}}); } I think that it is statistically lacking to import sparks. *;
No comments:
Post a Comment