File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
templates/src/main/resources/META-INF/native-image/common Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,19 @@ logging:
262
262
) ;
263
263
} ,
264
264
265
- async jwt ( { application : { authenticationTypeOauth2 } } ) {
265
+ async asyncConfiguration ( { application : { authenticationTypeOauth2, reactive, packageFolder } } ) {
266
+ if ( authenticationTypeOauth2 ) return ;
267
+ if ( ! reactive ) {
268
+ const asyncConfigurationPath = `${ SERVER_MAIN_SRC_DIR } ${ packageFolder } /config/AsyncConfiguration.java` ;
269
+ this . editFile ( asyncConfigurationPath , content =>
270
+ content . replace (
271
+ 'return new ExceptionHandlingAsyncTaskExecutor(executor);' ,
272
+ 'executor.initialize();\nreturn new ExceptionHandlingAsyncTaskExecutor(executor);'
273
+ )
274
+ ) ;
275
+ }
276
+ } ,
277
+ async jwt ( { application : { authenticationTypeOauth2, reactive } } ) {
266
278
if ( authenticationTypeOauth2 ) return ;
267
279
await this . copyTemplate (
268
280
'src/main/resources/META-INF/native-image/jwt/reflect-config.json' ,
@@ -272,6 +284,12 @@ logging:
272
284
'src/main/resources/META-INF/native-image/jwt/resource-config.json' ,
273
285
'src/main/resources/META-INF/native-image/jwt/resource-config.json'
274
286
) ;
287
+ if ( ! reactive ) {
288
+ await this . copyTemplate (
289
+ 'src/main/resources/META-INF/native-image/common/reflect-config.json' ,
290
+ 'src/main/resources/META-INF/native-image/common/reflect-config.json'
291
+ ) ;
292
+ }
275
293
} ,
276
294
277
295
async liquibase ( { application : { databaseTypeSql } } ) {
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "name" : " java.util.Locale" ,
4
+ "allDeclaredFields" : true ,
5
+ "allDeclaredMethods" : true
6
+ }
7
+ ]
You can’t perform that action at this time.
0 commit comments