spring-boot-api-project-seed icon indicating copy to clipboard operation
spring-boot-api-project-seed copied to clipboard

怎么生成restful风格的controller,怎么改哇

Open happyzhang187 opened this issue 7 years ago • 4 comments

求大神解答

happyzhang187 avatar Jul 24 '18 06:07 happyzhang187

改模板呀

ipandage avatar Jul 27 '18 08:07 ipandage

@ipandage

方便发一下你的基于restful的 添加用户的例子代码给我看看吗?

ithjz avatar Aug 20 '18 09:08 ithjz

  restful模版就改这两行代码

cfg.getTemplate("controller-restful.ftl").process(data, new FileWriter(file));
      //   cfg.getTemplate("controller.ftl").process(data, new FileWriter(file));

ithjz avatar Aug 20 '18 09:08 ithjz

https://github.com/lihengming/spring-boot-api-project-seed/issues/155 解决了帮我看看呗

ithjz avatar Aug 20 '18 09:08 ithjz