alibaba / alibaba/cloud-native-app-initializer
模板里没有groupId和module的变量注入
- Dominant language
- Java
- Stars
- 308
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
com.alibaba.initializer.generation.extension.SampleCodeContributor 这个类,少了groupId和module的变量注入

加上这两行就好了
```
params.put(BootstrapTemplateRenderConstants.KEY_GROUP_ID, description.getGroupId());
params.put(BootstrapTemplateRenderConstants.KEY_MODULE, module.getName()!=null ? module.getName() : "");
```
Contributor guide
Research direction
Locate com.alibaba.initializer.generation.extension.SampleCodeContributor and inspect how its template parameter map is assembled. Add the groupId and module values described in the issue, then verify that generated templates receive both variables, including the empty-module case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100