Posts by Sandro Luciano Giacomozzi • 41 points
5 posts
-
0
votes1
answer77
viewsA: Creating Ejbs in Spring MVC Project - Problems with Dependency Injection
Have you tried the @Autowired annotation? Take a look at this article http://blog.algaworks.com/injecao-de-dependencias-com-spring…
-
1
votes1
answer510
viewsA: Problem with deploying to Heroku
Hello. 1 - Procfile is without extension. 2 - You can run the local Heroku before deploying. Using the cli Heroku https://devcenter.heroku.com/articles/heroku-local 3 - Take a look at this example I…
-
2
votes2
answers6416
viewsA: Check if the string contains only numbers
Another way is to try the conversion to integer: String input = "123s"; try { Integer.valueOf(input); } catch (Exception e) { System.out.println("Número inválido"); }…
javaanswered Sandro Luciano Giacomozzi 41 -
1
votes1
answer324
viewsA: Hibernate Duplicating Records
It is because of its mapping in the list attribute. When you make the call to int idped = pedDAO.gravarPedidoMobile(pedido); he’s already creating the item because of Cascade.ALL In this case, you…
-
0
votes2
answers1238
viewsA: read only first and last line file
You can use Apache Fileutils (https://commons.apache.org/proper/commons-io/description.html) that makes it much easier. File file = new File("C:\\Users\\Douglas Williamn\\Documents\\2244.txt");…
javaanswered Sandro Luciano Giacomozzi 41