@Column(name = "`limit`")
int limit;
hibernate.globally_quoted_identifiers=true
props.put("mail.smtp.socketFactory.port", "587");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
mail.smtp.socketFactory.port
и для setPort()
props.put("mail.smtp.ssl.trust", "smtp.gmail.com");
Google now has a feature stating that it won't allow insecure devices to send emails. When I ran my program it came up with the error in the first post. I had to go into my account and allow insecure apps to send emails, which I did by clicking on my account, going into the security tab, and allowing insecure apps to use my gmail.
Вам же тут написали, что нужно реализовать. А в вашем коде этого всего нет.