Posts by Ricardo Zanini • 421 points
12 posts
-
0
votes1
answer177
viewsA: HTTP - Correct return types
Hail! I don’t know if the question is relevant given the time that was asked. Anyway, here’s my contribution: The ideal answer would be 400: Bad Request for all the scenarios you presented. I…
-
3
votes1
answer1217
viewsA: Spring Bean sessionFactory with Nullpointerexception error
Hail! Whereas you can change the implementation of TransactionManager of its application, I suggest the following approach: applicatioContext.xml <beans…
-
2
votes1
answer554
viewsA: Injection of Beans Spring into JAX-WS / Tomcat 7 (@Webservices) - Does not work, returns Nullpointerexception (NPE)
Hail! I believe I have the answer to your question. I hope it’s still relevant. What happens is that who provides the configuration of JAX-WS is not Spring but the library provided by Java.NET, more…
-
2
votes1
answer151
viewsA: Versioning . jar in Java with Netbeans
Hail! I use the Maven to carry out the structure of my project and configuration management. He is agnostic to the IDE and suggests a means for his project to have an intelligent structure of…
-
7
votes2
answers13163
viewsA: How to make the Genericdao class using Hibernate?
I use something similar to what was indicated by @Cassio Danilo. Only sometimes it is interesting that a DAO is implemented both via JPA and Adhoc (JDBC). My suggestion is this:: Create an interface…
-
1
votes2
answers366
viewsA: Convert Spring XML declaration to Java code
Hail! Apparently you want to configure the Spring context via class using the annotation @Configuration, right? If so, use this setting as a reference: @Configuration @EnableWebMvc…
-
1
votes1
answer422
viewsA: How to create a sign-up page using JSF + Spring
Hail! I still have no reputation for comment, so I’ll try to answer your question based on what you posted. It seems the problem is access to org.springframework.security.core.userdetails.User,…
-
4
votes2
answers1522
viewsA: How to read data from txt files using Java?
An alternative is to use the Fileutils made available on Apache Commons IO: import java.util.Arrays; import org.apache.commons.io.FileUtils; (...) // é fundamental definir o charset do arquivo…
-
4
votes2
answers4712
viewsA: How to create Permissions (Permissions) instead of Roles (Roles) in Spring Security?
All hail, @utluiz! I don’t have enough reputation to make a comment, but I’d like to leave my contribution. You took a look at Spring Security ACL? Complex Applications often will find the need to…
-
1
votes2
answers124
viewsA: How to work with converted dates
Hail! That solves? public static void main(String[] args) { DateTime entrada = DateTimeFormat.forPattern("dd/MM/yyyy").parseDateTime("12/02/2015"); DateTime audiencia =…
javaanswered Ricardo Zanini 421 -
1
votes1
answer1034
viewsA: Spring Security without authentication
Hail! I didn’t see in your setting where you are declaring the UserDetailsService that you implemented in your Spring context. I imagine you must have done this in another configuration file? It is…
-
0
votes1
answer121
viewsA: Receive HTML Table in Controller (Springmvc)
Hail! If it is an option, I suggest you review its functionality so that instead of sending the table created dynamically whole via form, manipulate the DOM using a framework for templates. You can…