Posts by Tássio Auad • 1,482 points
67 posts
-
0
votes1
answer133
viewsQ: Maven Dependency Tree
I’m having some version conflict issues in my project dependencies and command mvn dependency:tree is not enough, because I have many dependencies and it is difficult to identify which dependencies…
mavenasked Tássio Auad 1,482 -
1
votes1
answer133
viewsA: Maven Dependency Tree
According to the Maven documentation, there is the command: mvn dependency:tree -Dverbose -Dincludes=<biblioteca> They will specifically return dependencies that depend on the informed…
mavenanswered Tássio Auad 1,482 -
1
votes1
answer132
viewsQ: Test APK Dependency Conflicts
In an old application I was updating the version of the dependencies of Gradle, when running I received the following message regarding a conflict between the version of the dependency…
-
3
votes1
answer132
viewsA: Test APK Dependency Conflicts
What is happening is that two or more dependencies are depending on this library com.google.code.findbugs:jsr305, but in different versions. With this, this conflict is occurring. Force a single…
-
0
votes1
answer20
viewsQ: Dexarchivebuilderexception with Guava 21.0
I just received an Exception when I went to update the versions of the frameworks and run an application that was long stalled. My dependencies are these: dependencies { compile fileTree(dir:…
-
0
votes1
answer20
viewsA: Dexarchivebuilderexception with Guava 21.0
Version 21 of Guava can only be used in Java 8 environment, and the application is probably in version 7. The solution is to update the library to a unique version compatible with android. Below:…
-
2
votes1
answer3188
viewsQ: Configuring Multiple Databases in Spring Boot
My application has a remote database connection (Sqlserver), but I would like to perform a small duplication of certain less volatile data in a local and embedded database (H2) to gain in…
-
3
votes1
answer3188
viewsA: Configuring Multiple Databases in Spring Boot
First, let’s configure the connection data with the two databases in the file application.properties: #----DATABASE SQLSERVER spring.jpa.show-sql=true…
-
0
votes1
answer498
viewsQ: How to test my web service done under spring boot using a specific profile?
I am developing a Restful web service using Spring Boot and I would like to know how to run unit tests with requests directed to web services without first having to raise the server manually. I…
-
0
votes1
answer498
viewsA: How to test my web service done under spring boot using a specific profile?
It is. First, let’s think about automatically raising your services. For this, we will use two Annotations, one informing the "executor" of Spring, which is @RunWith(SpringRunner.class), and another…
-
1
votes1
answer115
viewsQ: How to package a Spring Boot application with Maven without running the tests?
I am developing an application with Spring Boot and every time I perform the command mvn package He runs my unit tests. However, my tests do not raise the server with the application to run the…
-
1
votes1
answer115
viewsA: How to package a Spring Boot application with Maven without running the tests?
Simple, just perform add value true the variable maven.test.skip. The command goes like this: mvn package -Dmaven.test.skip=true
-
2
votes2
answers711
viewsQ: Using Maven or Spring Boot?
In my researches I could understand that there is how to perform application Profiling (e.g. homologation and production) in two ways, via Maven and spring-boot. The big question is that I have…
-
3
votes2
answers711
viewsA: Using Maven or Spring Boot?
In fact, if you already want to package in a specific profile, you will use both. The first way is through Spring Boot itself, creating several . properties files in the model…
-
0
votes1
answer685
viewsA: Omit DTO (Spring Data JPA) attribute
There is a Annotation calling for @JsonIgnore queser recognized by Jackson, which is the default library used by Spring for Json conversions. Jackson will identify that you do not want to serialize…
-
1
votes1
answer592
viewsQ: spring boot modules via Maven do not interact
I’m using Spring Boot to create a Restful web service and a SOAP, each in a module but both in a single project. So I decided to separate my domain layer into a third module since it’s the same for…
-
1
votes1
answer592
viewsA: spring boot modules via Maven do not interact
This usually happens when you separate the project into several modules. It turns out that Spring cannot perform the scan of components, entities, positions and services from one module to another…
-
2
votes1
answer782
viewsQ: I lost the Glassfish administrator password
I lost the password of the Glassfish admin account, how should I proceed? To update the password I need the old password, which I lost. It has to work directly on the files to reset?
glassfishasked Tássio Auad 1,482 -
2
votes1
answer782
viewsA: I lost the Glassfish administrator password
The only way I have found to date is by changing the configuration file called admin-keyfile which gets into: $GLASSFISH_HOME$\glassfish\domains\domain1\config\admin-keyfile Remove the content (or…
glassfishanswered Tássio Auad 1,482 -
2
votes1
answer1110
viewsA: How do I return in json to Foreign key in Spring Boot?
@wladyband, If I understand your problem correctly, you would like to display the state code next to the city data. Also, you want to also keep the @JsonIgnore in the relationship @ManyToOne with…
-
1
votes1
answer434
viewsQ: How to modify the Glassfish port without starting it?
I need to modify the Glassfish port on the server without starting it, because I ended up installing another service that is making use of port 8080 and I can’t stop it to start Glassfish and go to…
glassfishasked Tássio Auad 1,482 -
0
votes1
answer434
viewsA: How to modify the Glassfish port without starting it?
Yes, there are ways to modify through files. Go to the Glassfish folder and access the following subfolders: PASTAGLASSFISH/glassfish/domains/domain1/config Inside this config folder is a file…
glassfishanswered Tássio Auad 1,482 -
3
votes3
answers621
viewsQ: How to clone the repository and all the arms of the remote?
I would like to know how to automatically clone all the remote arms to the location, without having to be doing the command below for each. git checkout -b <branch>…
gitasked Tássio Auad 1,482 -
2
votes3
answers621
viewsA: How to clone the repository and all the arms of the remote?
I suggest creating the alias below, which performs the checkout for all remote branches. The name of each branch in place will be equal to the remote branch. git config --global alias.clone-branches…
gitanswered Tássio Auad 1,482 -
0
votes2
answers1156
viewsQ: Spring MVC and UTF-8
I’m making use of Spring MVC in a project, running on a Glassfish server and having trouble displaying text on JSP pages that contain special characters such as accents. I tried to put the charset…
-
0
votes2
answers1156
viewsA: Spring MVC and UTF-8
Confirm that you are using charset in HTML correctly: HTML 4 <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> HTML 5 <meta charset="utf-8"/> JSP <%@page…
-
1
votes1
answer3871
viewsQ: How to recover a deleted arm in Git
I deleted an arm from git via git branch -D <nomedobraco> And I need the commits I did on that arm, I need to restore it. The problem is that it had not been sent to the remote, so there is no…
gitasked Tássio Auad 1,482 -
4
votes1
answer3871
viewsA: How to recover a deleted arm in Git
Yes, there’s a way to get it back, because the arm reference was deleted, but the commits no. Just discover the SHA1 of an arm commit and perform checkout to him. Being in that commit, just create…
gitanswered Tássio Auad 1,482 -
3
votes3
answers312
viewsA: Check for file on the web
Fabricio, There are two ways to do this, I especially prefer the first. You do not need to do a "manual test" of the file’s existence, Picasso himself, if he cannot upload the image, will inform you…
-
0
votes3
answers5068
viewsA: How to include the Access-Control-Allow-Origin header?
Joseph, I do not know if it is your knowledge, but this something on the server side, which in your case is PHP. That is, it is not in HTML that you will fix, but in PHP. This is a matter related to…
html-metaanswered Tássio Auad 1,482 -
0
votes1
answer40
viewsA: Web-service Architecture and Functionality
Joshua, Yes, your thinking is not incorrect, in fact, it is even a common architecture. I will advise you on the focus of each project so that the responsibility of each project is well defined and…
-
2
votes2
answers240
viewsA: JDBC, query returns false but saved in database
Ricardo, Will surely return false, for the execute() is not specific for entering data although it works as well. You should have used the executeUpdate(), in this case, command of INSERT is…
-
0
votes1
answer255
viewsQ: Using Gson instead of Jackson in web service that makes use of Jersey
I found out that Jersey by default makes use of the Jackson framework for resources to return data in Json format. However, I had the need to use the Gson framework to convert objects to Json. How…
-
0
votes1
answer255
viewsA: Using Gson instead of Jackson in web service that makes use of Jersey
Just create a provider class that implements the interfaces javax.ws.rs.ext.MessageBodyWriter, for serialization of a Json Java object, and javax.ws.rs.ext.MessageBodyReader, for deserialization of…
-
1
votes1
answer693
viewsA: Serializing and deserializing attributes with names different from Json fields
It’s very simple, just use a Annotation, but first let’s visualize the problem with an example: { "arrayInteger": [ 1, 2, 3 ], "boolean": true, "nullObject": null, "number": 123, "text": "Hello…
-
0
votes1
answer693
viewsQ: Serializing and deserializing attributes with names different from Json fields
I’m having the need to serialize and deserialize an attribute that your Json reference has a different name. For example, in the Json I’m receiving there is a field text and would like the value of…
-
1
votes1
answer151
viewsA: Preventing an attribute from being serialized or deserialized
Exclusionstrategy One of the ways to prevent an attribute from being serialized is by implementing a ExclusionStrategy, where through the rewriting of the method shouldSkipField() we will inform…
-
1
votes1
answer151
viewsQ: Preventing an attribute from being serialized or deserialized
I am using Gson on a web service and need to prevent some attributes from being serialized and others that are prevented from being deserialized. One of the reasons to prevent serialization is due…
-
2
votes2
answers68
viewsA: Sound only plays in debug mode
Ultraseven, You’re making some mistakes. I’m going to begin the explanation with an image I took from Mediaplayer class documentation Notice what the reset method and method release() do, or to what…
-
1
votes2
answers68
viewsA: New page in html
Gabriel, By default, every server will identify the file index.html and will reference it as a "home" or home page automatically and any other page would come au end of the address, as /sub.html. It…
-
3
votes1
answer402
viewsA: Relationship between the OR and Agile Methodologies
The RUP is iterative, incremental and in many ways looks like an agile methodology, but in many others it is different from any agile methodology. I will be listing down the points: Number of…
software-engineeringanswered Tássio Auad 1,482 -
4
votes1
answer402
viewsQ: Relationship between the OR and Agile Methodologies
I see some books considering the RUP as agile and others not. The more traditional books do not consider it agile, which sounds more correct because historically it has not appeared in the "boom" of…
software-engineeringasked Tássio Auad 1,482 -
0
votes2
answers377
viewsA: Error converting String to int
Hello, Aline. I do not see much sense in what you want to do and I request that an example of the cited Adapter be put forward, because I believe the problem lies in the way the Adapter is being…
androidanswered Tássio Auad 1,482 -
1
votes1
answer92
viewsA: java.lang.Nullpointerexception: return null button
Hello, Aline What you intend to do unfortunately is not possible. A View only exists after an activity inflates it (instantiates, makes it exist...) through the method setContentView(int layout) and…
-
8
votes2
answers5470
viewsA: How is good documentation done using SCRUM?
Hello, Ivcs! I’ll try to answer the question "How is good documentation done using SCRUM?" by answering something more generic like "How is agile documentation?" OK? I’ll try to be very informal and…
-
1
votes2
answers222
viewsA: Place an Edittext in Dialogfragment
Nathan, I’ll give you a slightly better suggestion. What was done in the above @Eduarda reply can be done without necessarily inheriting Dialog. The AlertDialog has a method called setView(), where…
androidanswered Tássio Auad 1,482 -
0
votes3
answers886
viewsA: Fragment error "Unable to start Activity"
Hello, Everton Let’s look at the section below where you inflate the Fragment in your Activity: HoroscopoDetailFragment horoscopoDetailFragment = new HoroscopoDetailFragment();…
-
1
votes1
answer137
viewsA: My application is closing when starting the screen with database
Nathan It is very difficult to find the error without the log, but we try to move around to see where the error is. First, let’s fix your table creation SQL, because it is missing some spaces during…
androidanswered Tássio Auad 1,482 -
7
votes1
answer84
viewsA: How to rescue a variable from an Actor in Libgdx?
Hello, Emerson Wouldn’t it be because you put the variable weight as Static? Static makes its variable unique to any instance of the Letter class, because the weight attribute of all instances…
-
5
votes4
answers1988
viewsA: Is there any way to know if I’ve done git push?
There are two ways. The first is by running git status, where you’ll get a message like: $ git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit:…
gitanswered Tássio Auad 1,482