parent
f6b8f1cd93
commit
8015876210
@ -0,0 +1,18 @@
|
||||
package com.example.api.controller;
|
||||
|
||||
import com.example.api.model.entity.User;
|
||||
import com.example.api.repository.UserRepository;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/user")
|
||||
public class UserController {
|
||||
|
||||
@Resource
|
||||
private UserRepository userRepository;
|
||||
|
||||
}
|
Loading…
Reference in new issue