Package org.andidev.applicationname.config

Source Code of org.andidev.applicationname.config.AuditingConfig

package org.andidev.applicationname.config;

import org.andidev.applicationname.config.auditing.AuditorProvider;
import org.andidev.applicationname.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.AuditorAware;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@Configuration
@EnableJpaAuditing
public class AuditingConfig {

    @Bean
    public AuditorAware<User> auditorProvider() {
        return new AuditorProvider();
    }
}
TOP

Related Classes of org.andidev.applicationname.config.AuditingConfig

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.