EzyFox: Bắt đầu tìm hiểu từ đâu để hiểu được cơ chế của spring?
Anh cho em hỏi nếu muốn hiểu cái core với flow ezyfox của anh thì em nên đọc repo nào trước anh nhỉ, Kiểu trước kia em hay thắc mắc vì sao @Component annotation ở spring thì giúp mình đăng kí lớp đó như là bean để được quản lý ở bên dứoi á. Nay em thấy opensource của anh có những thứ đó. Nên em muốn dùng và nghiên cứu thêm thử. Với em thấy có cái gamebox cũng ...
[Easyfox-server] null pointer Exception on user repo while trying to connect
So I watched the video for the authentication with Ezyfox-server but I got an NullPointerException on UserRepo while I try to log in. I can't figure out why because I triple check my code and the video... Here is my code: # entity/BullyUser: @Getter @Setter @ToString @EzyCollection public class BullyUser { @EzyId int id; String username; String password; } # ...
Cách tạo mock ScheduledExecutorService cho EzyAppContext khi test
Em đang viết test cho issue https://github.com/youngmonkeys/ezyfox-server/issues/68 . Em dùng Mockito để khởi tạo EzyAppContext: EzyAppContext appContext = mock(EzyAppContext.class) . Nhưng làm vậy context.get(ScheduledExecutorService.class) trả về null : Cho em hỏi nên khởi tạo EzyAppContext như nào ạ? ...
[ezyfox-server] Chạy test EzySimpleAppEntryTest bị exception!
Em đã import ezyfox-server thành công, nhưng khi chạy thử ezyfox-server/ezyfox-server-support/src/test/java/com/tvd12/ezyfoxserver/support/test/entry/EzySimpleAppEntryTest.java thì bị exception, mặc dù test vẫn passed. Anh giải thích chỗ này giúp em với ạ. Full log: 19:58:31,683 DEBUG [main] impl.EzyObjectWriterElementsFetcher - start scan class com.tvd12.ezyfoxserver.support.test.entry.ClientNoUserRequestHandler ...
[ezyfox-server] Làm sao để mở ezyfox-server bằng IntelliJ Idea?
Em đã import ezyfox-server vào IntelliJ nhưng các file test không chạy được. Các bước: Fork ezyfox-server về: https://github.com/vu-luong/ezyfox-server Import vào IntelliJ Idea Set Sources Root: Kết quả bị lỗi: ...
[ezyfox-boot] packagesToScan bị rỗng
Mình tạo project bằng ezyfox-server-archetype , và dùng thư viện ezyfox-boot-autoconfigure , nhưng packagesToScan bị rỗng. Source code: https://github.com/vu-luong/EzySmashers ...