Skip to content

Tag: spring-boot

I can’t generate the gRPC stubs classes

I managed to generate the classes through the .proto file but they are in the build. I would like the classes to be generated within the main because when I am going to extend the stub, it is not being possible to implement the methods. Look: File .proto: The .proto file is inside the main folder. Does anyone…

Getters and setters for List in Spring boot

I am creating my API in Spring Boot. I have that a product is composed of components: Here is my code: (Entity Layer) } My Question: In the controller class should I change the update method to be as follows, to have the following code, product.addProduct(myComponent) or should I have it as follows: product.s…

Spark UDF function fail on Standalone Spark

I have spring boot java application myapp.jar with something udf function. SparkConfuration.java ToIntegerUdf.java sparkJars contains path to myJar.jar. Application build with Maven. Spark library version is 3.02 and scala version is 2.12.10. When I running application on Spark Standalone 3.0.2 I have an erro…

HTML5 video skips ranges after 32,768

I am exploring Http Range requests and video streaming with Java. I wanted to create a controller which streams a video to a tag. For some reason, after end range of 32768, the browser sends request for start of 100237312. Here are a slice of the logs from my console: My code: The client: I would appreciate i…