Posts by acacio.martins • 300 points
19 posts
-
0
votes2
answers255
viewsA: First application using Maven
An alternative In your eclipse access: Window / Preference / Java / Installed Jres Select the JRE and click Edit On the field Default VM Arguments adds: -Dmaven.multiModuleProjectDirectory=$M2_HOME…
-
0
votes1
answer42
viewsA: Ionic client (ng-socket-io) and Springboot server with Sockjs
The solution was to implement a Websocket in Spring Boot using Netty-socketio.
-
4
votes4
answers11105
viewsA: Error in android SDK "License for package Android SDK Platform 28 not accepted."
Best solution: yes | sdkmanager --licenses
-
1
votes1
answer199
viewsA: Error starting Spring Boot with Tomcat 9.0.21
I found the solution... wow, good, after analyzing codes, to inspire in your comments I found the problem. Had a class Serveletinitializer extending Springbootservletinitializer. There was the…
-
1
votes1
answer199
viewsQ: Error starting Spring Boot with Tomcat 9.0.21
Situation: I have an application implemented with Spring Boot and need to deploy to Tomcat (V9.0.21). Problem: I managed the package . War normally and made the deploy. I start the application…
-
0
votes1
answer42
viewsQ: Ionic client (ng-socket-io) and Springboot server with Sockjs
I have an app made with Ionic 3 which uses as a Websocket client ng-socket-io and I have a Websocket server that was implemented with Sockjs at Spring Boot. From what I read, Spring Boot can’t work…
-
0
votes1
answer200
viewsA: Error when buildar for android Ionic
I already solved this problem by editing the file ..\Platforms android Cordovalib Cordova.Gradle in the method getAvailableBuildTools() changed the line that creates the file instance. Of: def…
-
5
votes2
answers72
viewsA: Merge two arrays with whitespace
If you look at the size of the arrays, the example is based on the informed Arrays. const array1 = ['lorem','ipsum','teste','','hello','','vol'] const array2 =…
-
0
votes2
answers73
viewsA: How to add class with pure javascript (no jQuery)
In pure Javascript you can change the class as follows: var elementos = document.getElementsByClassName("img2"); elementos[0].classList.add("imagem-ativa");
javascriptanswered acacio.martins 300 -
1
votes2
answers3881
viewsA: How do I return a Promise value in Javascript?
Simple Example of Promise. var promise = new Promise( (resolve, reject) => { let idade = 18 if (idade >= 18) { resolve('Maior de idade.'); } else { reject('Menor de idade.'); } });…
-
3
votes5
answers51834
viewsA: In Javascript, how to verify that an object is empty (without jQuery)?
ECMA 7+: Object.entries(obj).length === 0 && obj.constructor === Object
-
0
votes1
answer41
viewsA: Jboss 4.2 consuming SOA (bus) with SSL
I got the answer to the above question. Tutorial Download the class file Installcert.java Compile the class javac InstallCert.java Access the server and retrieve the certificate (accept the standard…
-
0
votes1
answer41
viewsQ: Jboss 4.2 consuming SOA (bus) with SSL
I have to put an app that today is running on Websphere to rotate in Jboss 4.2. It turns out that the application consumes services from SOA (SOAP) for Bus via HTTPS and there’s the problem I’m…
-
0
votes5
answers140
viewsA: Is it possible to scroll to git bash?
Under Gitbash, right-click and select Scrollbar.…
-
0
votes2
answers100
viewsA: save to a data file via keyboard in Avascript
You can use sessionStorage or localStorage. Very simple examples. sessionStorage let resultado = [{"otima":1}, {"boa":2}, {"pessima":2}, {"regular":2}] // Grava sessionStorage.setItem("resultado",…
javascriptanswered acacio.martins 300 -
1
votes3
answers232
viewsA: How to overlay a superclass method using a polymorphic parameter?
I just did a POC following what @alandplm suggested in the reply, changing the object Echodata for Servicedata and running a methods that has been implemented in Echodata. To be able to execute this…
-
0
votes1
answer213
viewsQ: Git Bash runs NPM on Windows Prompt
I’m using the Git Bash to run my project developed with React. After I started using the Windows 10, when typing the command npm run dev a new Windows Prompt window opens for running the command,…
-
0
votes3
answers2698
viewsA: Using 2 versions of Java
I suggest, in YOUR CASE, that you create a Windows service. So, when starting Windows it will run in backgroud. You can use the . bat already made and create a service from it. Install the NSSM and…
-
-1
votes1
answer597
viewsA: Error 415 when doing json post
Even though doubt is ancient, follow a hint. Try to use @Produces(MediaType.APPLICATION_JSON) together with the methods of POST, PUT and DELETE. Example: @POST @Consumes("application/json")…