ObjectDB Database Search
1-3 of 3 resultsStep 4: Add a Controller Class
.web.bind.annotation. RequestMapping ; import org.springframework.web.servlet.ModelAndView; @Controller public class GuestController { @Autowired private GuestDao guestDao; @ RequestMapping (value="/guest ... to the "/guest" web request uri (using the @ RequestMapping annotation) uses the GuestDao component
|
|
Step 4: Add a Controller Class
.springframework.stereotype.Controller; import org.springframework.web.bind.annotation. RequestMapping ... { @Autowired private GuestDao guestDao; @ RequestMapping (value="/guest") public ModelAndView guestbook ... the @ RequestMapping annotation) uses the GuestDao component to process the web request: If a new guest
|
|
How to enhance the JPA/Spring/MVC to implement RESTfull for CURL client?
. @Controller @ RequestMapping ("/api") public class APIController{ @Autowired private GuestDao guestDao; @ RequestMapping (value = "/user/{username}", method = org ... @ RequestMapping ("/api") public class APIController{ Try http://localhost:8080/Guestbook /api
|