katharsis-project / katharsis-framework

Katharsis adds powerful layer for RESTful endpoints providing implementenation of JSON:API standard
http://katharsis.io
Apache License 2.0
135 stars 65 forks source link

spring boot example could not find class “io.katharsis.validation.ValidationModule” and “io.katharsis.brave.BraveModule” #443

Closed wxiaoqi closed 7 years ago

wxiaoqi commented 7 years ago

spring boot example could not find class “io.katharsis.validation.ValidationModule” and “io.katharsis.brave.BraveModule”。


@Configuration
public class ModuleConfig {

    @Autowired
    private EntityManager em;

    @Autowired
    private TransactionRunner transactionRunner;

    /**
     * Basic monitoring setup with Brave
     * @return module
     */
    @Bean
    public BraveModule braveModule() {
        String serviceName = "exampleApp";
        Endpoint localEndpoint = Endpoint.builder().serviceName(serviceName).build();
        InheritableServerClientAndLocalSpanState spanState = new InheritableServerClientAndLocalSpanState(localEndpoint);
        Brave.Builder builder = new Brave.Builder(spanState);
        builder = builder.reporter(new LoggingReporter());
        Brave brave = builder.build();
        return BraveModule.newServerModule(brave);
    }
}
davidyscott commented 7 years ago

This may be due to the fact that the latest version of the artifacts that is available on mavencentral is 3.0.2, not 3.0.4-SNAPSHOT as is used in the example code.