Posts by Brenno Serrato • 136 points
4 posts
-
1
votes1
answer33
viewsA: Class Dependency Injection that I don’t have access to
You can do this through Applicationcontext using the getAutowireCapableBeanFactory() together with autowireBeanProperties(): @Autowired ApplicationContext ctx; private void foo(){…
-
1
votes1
answer37
viewsA: Generate key to access document
The easiest way to solve this would be with UUID (Universal Unique Identifier) which is represented by 128-bit value. You can generate one with the following code snippet: private String…
-
5
votes2
answers213
viewsA: Like "clone" an Inputstream?
Java 9 In this situation you do not want to close the input it is possible to use the Inputstream.transfer and keep in Bytearrayoutputstream. It will be possible to read the data and placed in…
-
2
votes2
answers41
viewsA: Kotlin+Springboot [Beginner] I can’t create Post method
The @Requestmapping is an annotation used to define a URL that will be requested: @RequestMapping("/foo") public fun foo() { return "Foo"; } you are creating the URL: /foo The annotation in question…