Skip to content
Advertisement

Tag: java

Program Can’t sort Employee List [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 12 months ago. Improve this question

Swagger is not working in Spring boot framework [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 12 months ago. Improve this question It shows failed to load API definition for one service only REST services

How to extract JSON from sql query?

My query looks like this: I want to retry the messages that failed, but the message is a json string and the offset is a regular string. I need to extract the json messages and the offset strings and then iterate through each row. How would I do this? RIght now I am doing something like this: //Service buildQueryResult() simply

Container based LDAP authentication with Jboss and Spring boot

I’ve a simple API that returns a string. My objective is to secure my API using LDAP authentication. I’ve my LDAP configured in my JBoss EAP 7.1 under the security-domain. I’ve defined my security constraint in the web.xml and the corresponding security-domain in my jboss-web.xml This is my first shot to integrate LDAP with REST API. Not sure what went

Quarkus OpenApi adding x-tokenName extension to SecurityScheme in application.properties

I want to add the x-tokenName extension to the openApi security scheme component in quarkus using the application.properties file. I’am using microsoft as provider for openIdConnect, and therefore i got a response containing an access_token and a id_token. My configuration so far, look somehow like this: The corresponding openapi.yaml looks for the security scheme part like this: I did not

Lambda expressions and anonymous classes don’t work when loaded as hidden classes

I am trying to compile and load dynamically generated Java code during runtime. Since both ClassLoader::defineClass and Unsafe::defineAnonymousClass have serious drawbacks in this scenario, I tried using hidden classes via Lookup::defineHiddenClass instead. This works fine for all classes that I tried to load, except for those that call lambda expressions or contain anonymous classes. Calling a lambda expression throws the

Advertisement