-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert resteasy-classic to use @ConfigMapping #45788
base: main
Are you sure you want to change the base?
Conversation
/cc @gsmet (hibernate-orm) |
@IvanPetkov23 hey. Why did you close this one? |
I found that there is commit that is unrelated to this PR. Also I found errors in my code. |
OK, keep in mind that you can rebase your PR interactively to drop a commit, and also amend a previous commit and then force push to the branch. https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History has some nice information about it. Now it's no biggie but it might be helpful in the future. |
You can ping me on Zulip any time if you're struggling with it. |
d6c0a8d
to
30c418e
Compare
|
||
@ConfigRoot(phase = ConfigPhase.BUILD_TIME) | ||
public class ResteasyJsonConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing the @ConfigMapping
annotation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What prefix should i put in @ConfigMapping, there wasn`t any name attribute in @configroot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be quarkus.resteasy-json
@ConfigRoot(name = "resteasy.vertx") | ||
public class ResteasyVertxConfig { | ||
@ConfigRoot | ||
@ConfigMapping(prefix = "resteasy.vertx") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ConfigMapping(prefix = "resteasy.vertx") | |
@ConfigMapping(prefix = "quarkus.resteasy.vertx") |
@WithName("deny-unannotated-endpoints") | ||
boolean denyJaxRs(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WithName("deny-unannotated-endpoints") | |
boolean denyJaxRs(); | |
@WithDefault("false") | |
boolean denyUnannotatedEndpoints(); |
@ConfigRoot(name = "security.jaxrs", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED) | ||
public class JaxRsSecurityConfig { | ||
@ConfigRoot(phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED) | ||
@ConfigMapping(prefix = "security.jaxrs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is not same, it is not one to one. you need quarkus.security.jaxrs
unless there is some new feature I missed
|
||
/** | ||
* @author Michal Szynkiewicz, [email protected] | ||
*/ | ||
@ConfigRoot(name = "security.jaxrs", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED) | ||
public class JaxRsSecurityConfig { | ||
@ConfigRoot(phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly, we don't need this during the runtime, it could be moved to the deployment module and same change can be done in Quarkus REST. I don't think anyone has use case for this at runtime, it is too late for security...
Part of #45446