HDHXTM

Results 13 comments of HDHXTM

找到方案了吗。我的需求和你一样,但是我的sheet数量是不确定的 ``` InputStream inputStream = FileUtils.getExportTemplate("部门车资.xlsx"); ExcelWriterBuilder writerBuilder = EasyExcel.write(response.getOutputStream()).withTemplate(inputStream); ExcelWriter excelWriter = writerBuilder.build(); for (String dept : deptSendCarMap.keySet()) { List deptCarfareList = deptSendCarMap.get(dept); // 省略其他数据构建 WriteSheet writeSheet = EasyExcel.writerSheet().build();...

> 没有很好的解决方案,我是在填充之前,按照所需先复制sheet:workbook.cloneSheet 大佬,具体怎么写的,这样也行,起码能用

成功了,完整代码放这里,供后人参考 ``` InputStream inputStream = FileUtils.getExportTemplate("部门车资.xlsx"); XSSFWorkbook workbook = new XSSFWorkbook(inputStream); List deptNames = new ArrayList(deptSendCarMap.keySet()); for (int i = 0; i < deptNames.size(); i++) { if (i == 0)...

The framework uses org.springaicommunity.mcp.method.tool.utils.JsonSchemaGenerator#internalGenerateFromType to generate the output schema. code: ``` SchemaGeneratorConfigBuilder configBuilder = new SchemaGeneratorConfigBuilder(SchemaVersion.DRAFT_2020_12, OptionPreset.PLAIN_JSON); SchemaGeneratorConfig config = configBuilder.with(Option.EXTRA_OPEN_API_FORMAT_VALUES) .without(Option.FLATTENED_ENUMS_FROM_TOSTRING) .build(); SchemaGenerator generator = new SchemaGenerator(config); JsonNode jsonSchema...

The reason is that when Spring evaluates the @ConditionalOnLoadBalancerNacos condition in org.springframework.boot.autoconfigure.condition.OnPropertyCondition.Spec#collectProperties, it uses org.springframework.core.env.StandardEnvironment instead of org.springframework.cloud.bootstrap.BootstrapApplicationListener. As a result, the beans defined in com.alibaba.cloud.nacos.loadbalancer.NacosLoadBalancerClientConfiguration are not registered. Since...

> It doesn't seem to be an SBA issue Can you remove the @ConditionalOnLoadBalancerNacos annotation if you don't know why Spring reads configurations from org.springframework.core.env.StandardEnvironment?

> Hello [@HDHXTM](https://github.com/HDHXTM) . I took a look at the code, and the issue is related to changes in the activation conditions for the @ConditionalOnLoadBalancerNacos annotation. It has been changed...

[demo.zip](https://github.com/user-attachments/files/23444055/demo.zip) @uuuyuqi Please try running this demo. The property spring.cloud.loadbalancer.nacos.enabled=true has already been configured in bootstrap.properties. When you run it directly, you'll notice in org.springframework.cloud.loadbalancer.blocking.client.BlockingLoadBalancerClient#choose that it uses org.springframework.cloud.loadbalancer.core.RoundRobinLoadBalancer instead...