C是一个类 C c = new c(); c.method(); method是实例方法 这个实例方法需要用到 Jpa 的 Dao层的Repository。 请问怎么做? 哪里讲不清楚,我补充,谢谢各位大佬
用ApplicationContext获取Repository