All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thebund1st.liyang.boot.time.TimeConfiguration Maven / Gradle / Ivy

The newest version!
package com.thebund1st.liyang.boot.time;

import com.thebund1st.liyang.time.Clock;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TimeConfiguration {

    @ConditionalOnMissingBean(Clock.class)
    @Bean(name = "liyang.time.Clock")
    public Clock clock() {
        return new Clock();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy