Posts by Caio Augusto Papai • 498 points
24 posts
-
0
votes1
answer10
viewsA: Problem trying to open my java application
Good afternoon, all right? The problem is the version of the java the program was compiled in, and the version of the java the . jar is running in For example, sometimes in your IDE you are running…
javaanswered Caio Augusto Papai 498 -
0
votes3
answers339
viewsA: Spring Boot does not recognize the controller when a request with parameters is sent
Missing you add @Queryparam in the parameters you are passing via Query. What is the case with "? Scope=public_profile"
-
0
votes2
answers129
viewsA: Build error of . jar via command line in Spring Boot/Postgresql
Try adding these lines in your application.properties. spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false spring.jpa.database-Platform=org.hibernate.dialect.Postgresql9dialect…
-
0
votes2
answers176
viewsA: How to create a Docker image using a github project but to download it into the Docker with the clone using ssh key
Whoops? One way to do it is: Insert a step to copy the file from your machine into the container before making the clone. Example: COPY arquivo.txt diretório Hug…
-
0
votes1
answer61
viewsA: Spring Boot Map Static Files (React)
Good Morning, Loveliness? Man, there is but I found it kind of strange how you want to use it there. Anyway, on their website (Spring) there is a basic tutorial to do what you want, I think it can…
-
-1
votes1
answer65
viewsA: What is the main difference between Kafk, Rabbitmq and Digibee?
Good Morning, All right? In this case, I would go to Rabbitmq, he already has natively several Facures that meet his project (Retry, Ack, deadletter) and does not require as much implementation…
-
0
votes2
answers58
viewsA: Content is not being saved to the file using the Printwriter class
Flush and Close are missing try { PrintWriter writer = new PrintWriter("C:\\Users\\MY_USER_NAME\\Desktop\\teste.java", "UTF-8"); String[] words = program().split("\\n"); for (String word : words) {…
javaanswered Caio Augusto Papai 498 -
2
votes1
answer200
viewsA: How to open "Save As" in a Java application?
What you are invoking in Runtime runs the "explorer.exe" which is no longer the same Windows file explorer. Generally, you send as parameters in which directory you want to save the file. What you…
-
0
votes1
answer61
viewsA: Started’s Springboot Project but I can’t get Postman’s Apis
Place the @Componentscan(value = "br.com.your package.controller.ou.etc") annotation in your Application class. example: package br.com.meuprojeto.exemplo; import…
-
3
votes5
answers1841
viewsA: Why are there so many programming languages?
There was a very cool talk that I saw in Xconf this year from Luciano Ramalho and Rosi Teixeira from TW who talked a little about it. The basic structure of programming logic has changed very little…
language-independentanswered Caio Augusto Papai 498 -
1
votes3
answers339
viewsA: Spring Boot does not recognize the controller when a request with parameters is sent
Good Morning, From what I understand, your method lacks an attribute: (@RequestParam(value="scope", defaultValue="public_profile") String scope) Dai yes, you can do this query in the URL.…
-
0
votes2
answers129
viewsA: Build error of . jar via command line in Spring Boot/Postgresql
Good night, all right? Have you tried using this version? <dependency> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId>…
-
0
votes1
answer88
viewsA: List information of inserted objects in a Linkedlist
Good Morning, You can do it this way: import java.util.LinkedList; import java.util.List; public class FilaAnimais { private List<Animal> animais = new LinkedList<Animal>(); public void…
-
2
votes1
answer95
viewsA: Java in Eclipse: displaying many warnings
Good afternoon, all right? Yes, it’s normal for the eclipse to display the warinigs to you. In theory, for the compiler, there is nothing wrong with your project. Who displays these warnings is the…
-
1
votes1
answer47
viewsA: Falling in catch while trying to establish a connection
Good Morning, Add the line to your connection class. Class.forName("org.postgresql.Driver"); This way it can identify which driver should be used for this connection.…
-
0
votes1
answer160
viewsA: Apache Tomcat Eclipse Java IDE
Good Afternoon, Usually this happens when you are running more than one instance of the program at the same time. For example: You have climbed an application, tested and crashed into an Exception…
-
1
votes1
answer1120
viewsA: Configure Mysql Tiimezone in Spring Boot
Good afternoon, all right? Insert the line below in application properties : spring.datasource.url=jdbc:mysql://localhost:3306/seubanco?useTimezone=true&serverTimezone=UTC do not forget to…
-
1
votes1
answer291
viewsA: Statement or Preparedstatement, for what reason avoid using Statement
Good Afternoon All right? The difference is in speed, ease of maintenance and information security between objects. When you use Statement, you have all the processing of this declaration to be…
-
0
votes1
answer177
viewsA: SQL query returning one of the empty columns, different from the database
Good afternoon, all right? Try to run this way: SELECT A.CAMPO1, A.CAMPO2, B.CAMPO3 -- CAMPO RETORNANDO VAZIO FROM TABELAA A, TABELAB B WHERE A.CAMPO1 = B.CAMPO1(+) I had the same problem when I…
-
0
votes1
answer36
viewsA: Error formatting the Json
Whoa, come on, come on. you can hide, search in the API you are using which method or annotation you ignore the nulls. example, in Jackson json you can do this in mapper…
-
1
votes2
answers786
viewsA: High demand stock control with Firebird and/or mongodb
Let’s talk about Kafka. Maybe I’m coming in late but.... Kafka can handle 100,000 tpm. So it works with very high volumes quiet, of course it goes much of the infra that you have available to it,…
-
0
votes1
answer40
viewsA: I need the name of the package to appear in the history table but the id_package is appearing
Puts Alias in your select. SELECT hv.id as "id do hv", p.id as "id do p", hv.id_pacote as "id do pacote", hv.data as "data", p.nome as "nome" FROM historico_de_viagens hv INNER JOIN pacotes p ON…
-
0
votes4
answers3972
viewsA: java.lang.Noclassdeffounderror: org/slf4j/Loggerfactory
Complementing for those who have this same mistake in the future: This error may also occur when you are using a Library that uses slf4j to generate runtime error logs. And this was my case, I was…
javaanswered Caio Augusto Papai 498 -
14
votes1
answer3773
viewsA: What is this Apache Kafka?
I will try to spend some of what I have learned by studying, working and being part of the Apache community Kafka® Kafka is a distributed streaming platform. And in practice what that would be? With…