KaesDingeling / Hybrid-Menu

Hybrid-Menu Widget for Vaadin Application
Apache License 2.0
22 stars 13 forks source link

SpringBoot boot failed when read css content from File. #56

Closed leotu closed 6 years ago

leotu commented 6 years ago

HybridMenu#fileToString(...) Not working correctly when execution boot file like "xxx-exec.jar" It is better to use "HybridMenu.class.getClassLoader().getResourceAsStream(fileName)" + "new Scanner(InputStream)"

xxx.jar!/css/hybridMenu.css (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.util.Scanner.<init>(Scanner.java:611)
KaesDingeling commented 6 years ago

The problem has already been solved. https://gitlab.com/KaesDingeling/Hybrid-Menu/issues/54

Please update the HybridMenu version to 3.0.11.vaadin10 or newer