上午还在学习JPA框架。我在下面创建了我的mysql查询: SELECT DISTINCT(tia.VoucherId) As Voucher, f.Name As Farm, CONCAT(far.FirstName, ' ', far.LastName) AS Farmer, s.Name Season, fa.Name As FarmingActivity
FROM Enrollment
我正在使用guice来注入我的依赖关系。我的IDE是IntelliJ 2017.2.5。当我运行下面的代码时,我的main方法继续运行并且没有停止。当我移除DI时,程序将以Process finished with exit code 0停止。 与main方法的类: public class Test {
@Inject
Provider<EntityManager> em;
publi