sevdokimov / log-viewer

Web UI for viewing logs
Apache License 2.0
469 stars 105 forks source link

SpringBoot configuration #56

Closed bevrard closed 3 years ago

bevrard commented 3 years ago

Trying to use the springboot configuration: I've added your configuration file to the scan: image

I get this error:

2021-05-31 13:53:38.022 ERROR 12408 --- [  restartedMain] o.s.boot.SpringApplication               : Application startup failed

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.wallride.bootstrap.Bootstrap]; nested exception is java.io.FileNotFoundException: class path resource [com/logviewer/springboot/LogViewerSpringBootConfig.class] cannot be opened because it does not exist

image

If I simply copy your configuration file in a local file: image It doesn't found your autoconfiguration or servlet from your library.

Am I missing something?

Thanks in advance

sevdokimov commented 3 years ago

The missing classes are located in com.logviewer:log-viewer:0.1.6 jar. com.logviewer:log-viewer-spring-boot:0.1.6 has dependency to it. Does com.logviewer:log-viewer:0.1.6 jar come as a transitive dependency?

bevrard commented 3 years ago

I needed to add the dependency in another module (as it was a multimodule project). It works now 🙂.