The format of annotate is not uniform
Opened this issue · 2 comments
@FXMLView(value = "./helloworld.fxml", css = {"./test.css"}, bundle = "com.example.demo.helloworld")
@FXMLView Annotate has 3 property, value, css, bundle, but there are some formatting problems.
I need to provide a suffix for value and css,, however, no for bundle. In fact, for value, css, the properties need file path, the bundle needs different ways(java package manage).
So, can you do something to unify the format.
Last, It's a very good package for javafx & spring boot! Thanks!
Thanks a lot!
Good point: You are right. It doesn't look very accurate or uniform.
An issue that should be addressed!
For the prefix of the path, we can specify by the configuration file of spring. In practice, we often put the view in a package, put CSS in another package, and put the I18N file in a package (folder). It looks like this at last:
javafx:
css: path
view: path
i18n: path
@FXMLView (value = "HelloWorld", css = {"test"}, bundle = "HelloWorld")
Personally, I think it's optional to ignore file suffixes, but ignoring the long path is a good idea, Of course, we still need to be able to specify paths for special situations.