Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.antonromanov.springboothelloworld;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- @RestController
- @RequestMapping("/api")
- public class JdbcController {
- @Autowired
- DaoService service;
- @GetMapping("/all")
- public int gelAllWishes() {
- return service.getCount();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement