Posts by Joao Alberto • 269 points
9 posts
-
1
votes0
answers409
viewsQ: What is the best Design Pattern for Java Logger
I would like to know which is the best choice to implement Java Loggers. Currently I have used dependency inversion as the following example: @Controller @RequestMapping("/"); public class…
-
0
votes1
answer1299
viewsA: Configuring Tomcat with SSL
To set up a Tomcat certificate follow these steps: First you should create a P12 with openssl like this: openssl pkcs12 -export -in fullchain.pem -inkey chavePrivada.pem -out Tomcat.P12 -name Tomcat…
-
3
votes1
answer1021
viewsQ: I would like to understand the use of an DTO with an Entity
I wonder if my reasoning is correct regarding the use of a DTO Following this logic, I am correct in using a DTO? @Controller @RequestMapping("/") public class CadastroController { private final…
-
-1
votes2
answers4728
viewsA: How to do WHILE in PL/SQL
DECLARE CONT INT SET CONT=0; WHILE CONT < 3 DO BEGIN SELECT CONT SET CONT = CONT +1; END WHILE; In MYSQL
oracleanswered Joao Alberto 269 -
0
votes1
answer244
viewsA: Counting Numbers using Array in C
Come on, if it’s C you need then follow: //Define a entrada dos 2 valores char rangeStr[] = "8 15"; //Define a variavel que vai armazenar os valores convertidos int rangeInt[2] = { 0, 0 };…
-
1
votes1
answer95
viewsA: Libraries in Cmake as a project submodule
You should probably be referring about target_include_directories to include the headers and target_link_libraries to include library references.
-
6
votes1
answer87
viewsQ: Doubt Class C++
I would like to understand why some classes in C++ have the following statement: class Bla; class Ble { .... } My doubt is about the Bla class, it has no meaning as far as I could see.…
-
1
votes1
answer78
viewsA: Use of the Big Integer class to build an MD5 hash
In fact the toString(16) method will convert to hexadecimal so of 16. as you can see hash is a byte array and if you are to observe the Biginteger constructor the byte[] parameter is represented as:…
-
1
votes3
answers808
viewsQ: Spring MVC Enum
I would like a help, I am new with Spring MVC and I am trying to send a numeral value of an Enum that I own in my class, but I am not succeeding, it is only accepted the Nominal value. I’d like some…