第一步、在配置文件中配置数据源
第二步、添加配置文件 注解进来
package com.gdup.gdup_analysis.config; import com.alibaba.druid.pool.DruidDataSource; import com.gdup.gdup_analysis.utils.JasyptUtils; import lombok.extern.java.Log; import lombok.extern.log4j.Log4j2; import org.jasypt.encryption.pbe.StandardPBEStringEncryptor; import org.jasypt.encryption.pbe.config.EnvironmentPBEConfig; import org.nutz.dao.Dao; import org.nutz.dao.impl.NutDao; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.bind.Binder; import org.springframework.context.En