de.digitalcollections.iiif.hymir.config.SpringConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iiif-server-hymir Show documentation
Show all versions of iiif-server-hymir Show documentation
Hymir is a Java based IIIF Server. It is based on "IIIF API Java Libraries" (Java implementations of the IIIF specifications, see https://github.com/dbmdz/iiif-apis).
package de.digitalcollections.iiif.hymir.config;
import de.digitalcollections.iiif.model.jackson.IiifObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
@ComponentScan(basePackages = {
"de.digitalcollections.commons.springboot.actuator",
"de.digitalcollections.commons.springboot.contributor",
"de.digitalcollections.commons.springboot.metrics",
"de.digitalcollections.commons.springboot.monitoring"
})
@Configuration
public class SpringConfig {
@Bean
@Primary
public IiifObjectMapper objectMapper() {
return new IiifObjectMapper();
}
}