Package com.jverstry.Controller

Source Code of com.jverstry.Controller.UserInitialization

package com.jverstry.Controller;

import com.jverstry.Data.PracticalUserDetails.PracticalUserDetailsImpl;
import com.jverstry.Service.User.PracticalUserDetailsServiceInMemory;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserInitialization {

    @Autowired
    private PracticalUserDetailsServiceInMemory pudsim;   
   
    @PostConstruct
    public void init() {
       
        this.pudsim.upsertUser(new PracticalUserDetailsImpl("admin","admin"));
        this.pudsim.upsertUser(new PracticalUserDetailsImpl("marc","1234"));
       
    }
   
}
TOP

Related Classes of com.jverstry.Controller.UserInitialization

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.