alibaba / alibaba/cloud-native-app-initializer

模板里没有groupId和module的变量注入

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
308
Forks
107
PR merge metrics
No merged PRs in 30d

Description

com.alibaba.initializer.generation.extension.SampleCodeContributor 这个类,少了groupId和module的变量注入

![image](https://github.com/user-attachments/assets/cdd2ea7f-fa2d-4e3c-88d5-1fd380ab38b5)

加上这两行就好了
```
params.put(BootstrapTemplateRenderConstants.KEY_GROUP_ID, description.getGroupId());
params.put(BootstrapTemplateRenderConstants.KEY_MODULE, module.getName()!=null ? module.getName() : "");
```

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.