Posts by andreybleme • 328 points
12 posts
-
2
votes1
answer1050
viewsA: Login Spring Boot + Spring Secutrity + Angular
If you choose the REST style, you can use authentication via Json Web Tokens (Jwts). Jwts have several advantages over the traditional authentication model (via session). Beneath the surface, an…
-
1
votes2
answers1618
viewsA: How to take the value of a checkbox with javascript and move to another page?
There are some ways to do this: Pass the parameters by Ajax to the server, and save to the session for later use (in that case you would need a server). Store the parameters in a cookie generated…
-
1
votes1
answer407
viewsA: Doubt about mapping with Java
To map the entities with JPA, simply create a class represented by the entity and the class attributes will represent the columns. I will leave here an example of the mapping of your entity usuario.…
spring-jpaanswered andreybleme 328 -
0
votes1
answer330
viewsA: RMI application works localhost, but gives error when placing Server IP
It is not necessary to use "//" in front of the rmi protocol declaration. In the lookup URL: Naming.lookup("//rmi://192.168.0.107/ServidorTrilha"); The right thing would be:…
-
-1
votes5
answers1818
viewsA: Group records per day
You can add a clause GROUP BY YEAR(Início). Or, use the two columns to group the result. See how the Mysql date and time functions.…
-
-1
votes1
answer263
viewsA: Error trying to access site using Http Service
This Apache Client has problems when accessing websites with SSL. In your case, what is causing the problem is exactly the fact that you are trying to access a secure website (https): new…
-
1
votes3
answers6155
viewsA: Code to send email message by Send button
The plugin Phpmailer implements all the PHP methods necessary for you to be able to send the email. Clicking here you can see an example that exactly solves your problem. In short: 1. Download the…
-
1
votes1
answer76
viewsQ: Request Angularjs being executed first incorrectly
In a controller, I have two HTTP requests: function findProfessionalEmail(professional) { EmailHunter.findProfessionalEmail(professional.company_name, professional.first_name,…
-
0
votes1
answer299
viewsQ: Paypal Plus integration: incorrect iframe
I’m using a Paypal Plus integration using iframe, as below: <script type="application/javascript"> var ppp = PAYPAL.apps.PPP({"approvalUrl": 'myApprovalUrl',"placeholder": "ppplus","mode":…
-
2
votes2
answers5400
viewsQ: Mysql not connecting connects by socket error
Good afternoon friends, after having correctly installed Mysql 5.7 on my Ubuntu 16.04, while trying to connect to the bank, I get an error message saying that I could not connect through the socket.…
-
3
votes1
answer103
viewsA: How to confirm if user exists with those "green ticks"
You can solve this problem using the Success callback of your AJAX request. You can keep your validation logic existing, but you must return a result (result) to the AJAX function and invoke it…
-
2
votes1
answer286
viewsA: Instantiate annotated class with Hibernate inheritance using CDI
Recover if the type of person to be registered by the form is Physical or Legal and install an object of the type you want. Ex.: if (TipoCliente.FISICO == form.getTipoPessoaValue()) { ClienteFisico…