java.lang.NoSuchMethodException with Constructor newInstance
问题 I am currently working on some web dev project in Java, i have implemented a frontcontroller, which job is to instantiate new controllers, depending on the path. So when the user is running ?q=user/login ex. the front controller should instatiate the UserController, that i am trying to do with this piece of code. String q = request.getParameter("q"); try { String[] page = q.split("/"); // Make first char upper, to match class name conventions. page[0] = (page[0].substring(0, 1).toUpperCase()