Posts by helciodasilva • 118 points
16 posts
-
0
votes2
answers203
viewsQ: Swagger2 with Springboot. How to separate documentation from source code?
Good afternoon, you guys. I’m documenting the Apis of a Spring Boot project using Swagger2. There are two ways to document: using a text file (JSON or YML) or using annotations. The problem of using…
-
4
votes1
answer243
viewsQ: Remote debugging in isolated environments
I work at a company doing bug fixes. Some clients deploy the system to computers on their internal network, so it is not possible to debug it remotely. Customers' computers usually have Internet…
-
1
votes0
answers100
viewsQ: Keep Swagger documentation updated
I am documenting an API with Swagger. I am not using annotations and the documentation is recorded in a JSON file. The problem is that API is constantly changing and with each change you need to…
-
0
votes1
answer867
viewsQ: Configure Spring Boot with Swagger to generate documentation from a json
Good morning, everyone. I’m documenting a project’s Apis using Swagger2. In this documentation instead of using annotations a json file is used. I wonder if it is possible to create a Spring Boot…
-
0
votes1
answer1045
viewsQ: Configure Log4j appender to display in the log console from Error and save in logs file from Info
Good evening, everyone. I need to display in the console only logs from Error and write to file logs from Info. I’ve tried using the additivity property for false, but when using it the appender…
-
0
votes0
answers104
viewsQ: Create a JPQL and define the entity at runtime
Good night. I wonder if there is a way to make a JPQL query and define the entity at runtime, without having to concatenate or interpolate String. Example using interpolation: public long…
-
3
votes1
answer44
viewsQ: Snapshot generated by Selenium is very large
Good afternoon, everyone. I am using Firefoxdriver in version 2.53.0 and when taking snapshot of a site is being generated an image with very large dimensions (111159x17555). Does anyone know a way…
-
0
votes1
answer436
viewsA: Extract information from a text using regular expression
Processo.+?((?=\\n?Processo)|(?>\\d{4}$)) Link from where I found the solution: http://www.guj.com.br/t/extrair-informacoes-de-um-texto-usando-expressao-regular/321491…
javaanswered helciodasilva 118 -
0
votes1
answer436
viewsQ: Extract information from a text using regular expression
Good afternoon, everyone. I am developing a regular expression to extract information from a text. I want to get just one paragraph. The pattern of the text I’m extracting is: it always starts with…
javaasked helciodasilva 118 -
2
votes1
answer227
viewsQ: Archive template for Eclipse IDE
Good evening, everyone. In Netbeans, by right-clicking any file you can create a template with the Save as Template option... Does Eclipse have that option? If not, there are some plugin that does…
-
0
votes1
answer45
viewsQ: Generate file template with Maven
Good morning, everyone. With Maven Archetype you can generate project templates. Is there any way to generate file templates for Netbeans with Maven?
-
2
votes1
answer1400
viewsA: Tomcat 8 does not start
If you use a Servlet Container (such as Tomcat or Jetty), you need to add the CDI reference implementation: Weld. Make sure you are using these dependencies: <dependency>…
-
0
votes1
answer57
viewsA: Problem running manually compressed jar
To generate a . jar you cannot just compress it. You must compile your source code (.java) to generate a bytecode (.class). JVM interprets only this type of file. Follow the link of material on this…
javaanswered helciodasilva 118 -
1
votes0
answers68
viewsQ: Archive Template for Netbeans
With Maven Archetype you can create project templates. And for archive template there is something similar? I would like to create a file creation wizard. Something like creating Servlets, where the…
-
0
votes2
answers717
viewsA: JPA error with Wildfly - No Persistence Provider for Entitymanager named Project
To use JTA you must create a Data Source. Go to localhost:9990 and create a. you can also use the sample data source that is created automatically.
-
2
votes0
answers186
viewsQ: Generate test javadoc with Maven in Netbeans
I need to generate test javadoc using Maven. I found this tutorial => https://maven.apache.org/plugins/maven-javadoc-plugin/examples/test-javadocs.html It worked, however, I can only generate…