How to make a connection between Java and Azure SQL Edge (localhost)

Is there anyone here who ever use Macbook M1 and try to connect with Azure SQL Edge with Java,
could you share with me the way,
I’m surprising b/c MS SQL Server did not support Macbook with ARM, so I go ahead and install Azure SQL Edge, but It seems that very hard to get the connection with Java, unlike MS SQL Server very easy.
Thanks so much.