add > RESTFul controller template

master
lihengming 8 years ago
parent 188b20ee84
commit 50276b2620
  1. 2
      src/test/resources/generator/template/controller.ftl

@ -3,6 +3,8 @@ import ${basePackage}.core.Result;
import ${basePackage}.core.ResultGenerator; import ${basePackage}.core.ResultGenerator;
import ${basePackage}.model.${modelNameUpperCamel}; import ${basePackage}.model.${modelNameUpperCamel};
import ${basePackage}.service.${modelNameUpperCamel}Service; import ${basePackage}.service.${modelNameUpperCamel}Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;

Loading…
Cancel
Save