hsweb3-demo icon indicating copy to clipboard operation
hsweb3-demo copied to clipboard

代码生成器生成的模块如何加入到Demo里面?

Open miaopass-future opened this issue 7 years ago • 8 comments

请问代码生成器生成的模块如何加入到Demo里面?

miaopass-future avatar Sep 11 '18 02:09 miaopass-future

https://github.com/hs-web/hsweb3-demo/tree/master/hsweb-ui/admin/code-generator 下的template.json就是了

zhou-hao avatar Sep 11 '18 03:09 zhou-hao

代码生成器生成了这三个模块 <groupId>testcrud</groupId> <artifactId>testcrud-demo-api</artifactId> 1.0 <groupId>testcrud</groupId> <artifactId>testcrud-demo-web</artifactId> 1.0 <groupId>testcrud</groupId> <artifactId>testcrud-demo-local</artifactId> 1.0 我把它们引入到Demo的pom中,但似乎并没有加入,我有在@ComponentScan basePackages中添加包名。

miaopass-future avatar Sep 11 '18 03:09 miaopass-future

不是这么使用么?

miaopass-future avatar Sep 11 '18 03:09 miaopass-future

额。默认的代码生成器好像生产的是 maven多模块的项目。

zhou-hao avatar Sep 11 '18 03:09 zhou-hao

之前,没有使用过这种工具,希望能够详解。

miaopass-future avatar Sep 11 '18 03:09 miaopass-future

但是我自己新建的模块是可以引入的,所以对于生成模块是否要做修改?之前没有使用过这种的工具,如果您有空的话,希望能给出详解,或者有同类型的文章,麻烦了。

miaopass-future avatar Sep 11 '18 04:09 miaopass-future

你是自己编辑模板么? 编辑后替换掉 template.json就行了。 后期会推出一些入门教程。

zhou-hao avatar Sep 11 '18 06:09 zhou-hao

好的,谢谢。

miaopass-future avatar Sep 12 '18 03:09 miaopass-future