Bootstrap

springcloudalibaba集成fegin报错ClassNotFoundException解决方案

集成fegin遇到问题:

        java.lang.ClassNotFoundException: com.netflix.config.CachedDynamicIntProperty

解决方案:

        在pom文件中添加依赖

        <dependency>
            <groupId>com.netflix.archaius</groupId>
            <artifactId>archaius-core</artifactId>
            <version>0.7.6</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

;