Skip to content
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

Chapter 5: MicroProfile Configuration #14

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

ttelang
Copy link
Contributor

@ttelang ttelang commented Mar 20, 2024

Adding Chapter 5 about MicroProfile Configuration

Understanding MicroProfile Configuration

Different environments required for Microservices development

Working with Various Configuration Sources

Key capabilities of MicroProfile Configuration
Adding first 4 sections to chapter05.adoc
@Emily-Jiang
Copy link
Member

I am reviewing this PR and will provide feedback asap.

@ttelang
Copy link
Contributor Author

ttelang commented Apr 8, 2024

Awaiting review feedback and approval.

private boolean maintenanceMode;
----

In this example, the `product.maintenanceMode` property will be converted to an `Boolean` before it is injected into the `maintenanceMode` field. If the conversion fails, a `org.eclipse.microprofile.config.ConversionFailedException` will be thrown.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception does not exist though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not resolved.

}
----

In this example, we’re injecting a property named "product.maintenanceMessage" into the message field of our MaintenanceMessage class. If the property does not exist, a `org.eclipse.microprofile.config.ConfigPropertyNotFoundException` will be thrown.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception does not exist.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still see this exception on the line 325.

ttelang and others added 6 commits April 16, 2024 15:30
Co-authored-by: Emily Jiang <emijiang6@googlemail.com>
Co-authored-by: Emily Jiang <emijiang6@googlemail.com>
Minor grammar fixes
@Emily-Jiang
Copy link
Member

@ttelang please comment here after you have addressed all of the comments

@ttelang
Copy link
Contributor Author

ttelang commented Jul 8, 2024

I have addressed all of the comments. @Emily-Jiang - Kindly merge this PR

@Emily-Jiang
Copy link
Member

I have addressed all of the comments. @Emily-Jiang - Kindly merge this PR

I double checked and found 2 comments were not resolved. Please address them. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants