Posts by Marcelo Henrique • 67 points
9 posts
-
0
votes1
answer177
viewsQ: Rest Spring server identifying a point as a regular expression
I have a Rest service with the following method: @RequestMapping(value = "/usuario/{login}", method = RequestMethod.GET) @ResponseBody public ResponseEntity<InputStreamResource>…
-
0
votes1
answer2159
viewsQ: Add items dynamically to a list using Thymeleaf
In my application, I have a form to add an object to the database. In this object I have a list of other objects. For example, it is as if the object I am registering is a Sale and the list is…
-
0
votes1
answer2523
viewsQ: Jsonformat changing date on a get request
I have a java web service using Spring Boot, in a class I have a date attribute and I use Jsonformat to format the date and convert on the client side using Gson. However, even defining the locale…
-
1
votes1
answer244
viewsQ: Receive multiple inputs in html tag with Angular 2
In my Component app, I am sending the following inputs to html. How do I receive all of them in html? export class AppComponent { nomeRedeSocial: string = "Minha Rede Social"; linhaDoTempo: string =…
-
0
votes1
answer3383
viewsQ: Upload and download image to project folder using Spring Boot
I am developing a web module that I need to upload an image. Save to the project folder, I am using Apache’s Commons Io: public class FileUtil { public static void saveFile(String path,…
-
1
votes1
answer40
viewsA: Check that all objects in the class that extends Realmobject are empty
You need an instance of Realmresults to do this check. It would look like this: RealmResults<Book> books = realm.where(Book.class).findAll(); if(books.isEmpty())…
-
1
votes0
answers42
viewsQ: Google Maps point dialog box
I have some points marked on a map, I would like that when some point was selected, open a dialog box with two options, get information of the point and trace a route to it. How could I do that?…
-
1
votes1
answer475
viewsQ: Replicate message to all chat customers
I need to replicate a client’s message to everyone who’s connected except the client you sent. Below is the classes I have so far. How could I replicate these messages? public class Servidor {…
-
1
votes3
answers2915
viewsQ: How to access a private attribute of a class in another class?
I created a chat in Java. In the class Servidor, the user passes as input the port on which the server will run. In order for the chat to work correctly, I need to access this class variable…