-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add default properties in application.properties when creating a new project #1232
Comments
We don't add them as part of the default project, there is a simple reason, better have awesome tools to solve this rather than polluting the initial project:
BTW @angelozerr the current implementation for application.properties has 2 issues:
|
It should except if some properties are hard coded. Please create an inssue on IJ Quarkus to explain which properties are missing and give us a link with a sample project, thanks!
I have implemented this feature and it should work but you need to activate |
@DavideD I think your need is to have code snippet. We provide today code snippets by using the file https://github.com/redhat-developer/quarkus-ls/blob/master/quarkus.ls.ext/com.redhat.quarkus.ls/src/main/resources/com/redhat/quarkus/snippets/quarkus-properties.json You should have This JSON file belong to the Quarkus language server extension which is integrated in vscode, Eclipse IDE or IJ. |
Maybe I'm the only one that creates projects for demo, prototyping or just playing around. The dev UI is nice, but editing a text file is much faster and can be done without starting quarkus first. Maybe my suggestion is not going to work for every extensions, but for Hibernate ORM or Reactive, one pretty much always has to add the right connection url and needs to know how to enable logs. Anyway, this is not a hill I'm willing to die on. It's too tied to personal experience and I don't plan to work on it anyway. |
Which IDE/Editor are you using? If you use vscode, Eclipse IDE or IJ you will have this Quarkus / Qute support. Do you use it? |
I use vanilla IntelliJ community edition. Frankly, to implement what you are suggesting, I would have to do extra research (I don't know what code snippets are or how they work). Editing a properties file feels easier (as a noob). |
By the way, when I've create this issue, I was thinking about code.quarkus.io. |
FYI one other simple reason/issue is that we are using |
I do agree that if a config is important in 90% of created apps, then having it commented out could make sense. |
OK, I haven't thought about the YAML configuration. |
I'm not sure if this is the right place for this issue, but let me know otherwise.
When I create a new project and include the Hibernate Reactive extension using the start with quarkus page, the created application.properties is empty. This is a bit annoying because now I have to go and look in the documentation for the most common properties that i need.
I think it would be nice to have at least some properties related to the extensions I've selected.
They can just be commented.
For example, for Hibernate Reactive, I would like to have an application.properties similar to this out-of-the-box:
My most common scenario is figure out which properties to set for logging.
But in case of Hibernate, it's also nice to have the properties about the creation of the schema and datasource configuration.
I haven't checked all the extensions, maybe this is something that's already done somewhere else.
The text was updated successfully, but these errors were encountered: