package com.example.mybatistraining1.test.Controller;

import com.example.mybatistraining1.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestController {

  @Autowired
  UserService userService;

  @RequestMapping("/insert")
  public void insert() {
    userService.insert();
  }
}
