package com.shr.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

@Component
@Data
@ConfigurationProperties(prefix = "spring.datasource")
public class DataSource {
	public String url;
	public String username;
	public String password;
	@Value("${datasource.driver-class-name}")
	public String driverclassname;
}
