Skip to content
Advertisement

Spring batch filtering data inside item reader

I’m writing a batch that reads log files which should take many types (format of log log file ) then I want to read every file based on some characters inside log files for example 15:31:44,437 INFO <NioProcessor-32> Send to <SLE- 15:31:44,437 INFO <NioProcessor-32> [{2704=5, 604=1, {0=023pdu88mW00007z}] 15:31:44,437 DEBUG <NioProcessor-32> SCRecord 2944 In such a log file I want to

Can’t find Java folder in Program Files

I hate asking this, but I’ve never been able to find my Java folder on my current PC. I’d like to find it so I could use a keystore command to find my SHA and just to know where it is. I found a SHA number through gradlewindow/signing report, but now the api page isn’t accepting it so I wanted

Spring MessageSource fallback to explicit locale

In some spring boot application, i18n is used. Here is the config: There is a requirement to obtain a locale from header Accept-language, falling back to “en” if: the header is missing, the header has wrong value, the config is missing for the locale. Two first points are resolved by provided LocaleResolver (see config). However, I don’t know how to

Invoke private static method with MethodUtils from Apache commons-lang3

Is it possible to invoke a private static method with MethodUtils? This code throws the exception: If I change method’s access modifier to public it works. Answer No, because MethodUtils.invokeStaticMethod() calls Class.getMethod() under the hood. Even if you try to hack the modifier it won’t be visible to the MethodUtils as it won’t see the modified Method reference: will still

Advertisement