Open wohu233 opened 3 weeks ago
https://github.com/eugenp/tutorials/tree/master/core-java-modules/java-spi
Run this command in root of the java-spi module , the command line output is empty.
java -cp "D:\java-spi\exchange-rate-api\target\exchange-rate-api-1.0.0-SNAPSHOT.jar;D:\java-spi\exchange-rate-app\target\exchange-rate-app-1.0 .0-SNAPSHOT.jar;D:\java-spi\exchange-rate-impl\target\exchange-rate-impl-1.0.0-SNAPSHOT.jar;D:\java-spi\exchange-rate-impl\target\depends\*" com.baeldung.rate.app.MainApp
Retreiving USD quotes from provider :com.baeldung.rate.impl.YahooFinanceExchangeRateProvider@27973e9b ... ... ...
META-INF/services/com.baeldung.rate.spi.YahooFinanceExchangeRateProvider
YahooFinanceExchangeRateProvider
ExchangeRateProvider
Hey, @wohu233.
This might be a windows-related issue. This issue will remain open while we look into it.
Article link: https://www.baeldung.com/java-spi
https://github.com/eugenp/tutorials/tree/master/core-java-modules/java-spi
Steps to Reproduce
Run this command in root of the java-spi module , the command line output is empty.
Expected Behavior
Environment
Additional Information
META-INF/services/com.baeldung.rate.spi.YahooFinanceExchangeRateProvider
file exists.YahooFinanceExchangeRateProvider
class correctly implements theExchangeRateProvider
interface.