---
title: "@DataSource切换数据库失效"
author: "cuityang"
date: "2022-08-08T11:31:19Z"
tags: []
categories: ["编程语言"]
slug: "datasource"
draft: false
lastmod: "2022-08-08T11:31:19Z"
id: 2538023
url: "https://cuityang.iteye.com/blog/2538023"
---

在实现类中 再次注入即可

public class FaceImageServiceImpl
类，引入如下：
@Resource
private FaceImageService faceImageService;

https://blog.csdn.net/a31462627/article/details/125098234