小虾虎鱼

Results 25 comments of 小虾虎鱼

``` try(OutputStream os = response.getOutputStream()){ String filename = "export.csv"; response.setHeader("Content-Disposition", "attachment;fileName=" + filename); //写bom,解决微软Excel乱码。 byte[] bom = {(byte) 0xEF, (byte) 0xBB, (byte) 0xBF}; os.write(bom); FileUtils.copyFile(file1, os); }catch(Exception e){ } ```

(1)how to check whether it is native-image,can refer this: https://github.com/apache/dubbo/blob/3.3/dubbo-common/src/main/java/org/apache/dubbo/common/aot/NativeDetector.java https://github.com/apache/dubbo/blob/3.3/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/aot/AotWithSpringDetector.java (2)adapter: ``` if (AotWithSpringDetector.isAotProcessing()) { //cglib }else{ //non cglib } ```

I am using this method, but I am not sure if there are any shortcomings (1)Cargo.toml ``` tracing = "0.1.41" tracing-appender = {path = "tracing-appender",version="0.2.0"} tracing-subscriber = {version="0.3.19", features=["json", "env-filter",...

> could you debug or add log info at ReferenceBeanManager#setApplicationContext to check the moduleModel value? Yes, I have added logs at this point, and that value is null. I spent...

> prepareReferenceBeans OK,this solution by moving to prepareReferenceBeans will be tried later.