MdS
MdS
JCHJava Community | Help. Code. Learn.
Created by OMIDD on 10/11/2024 in #java-help
recursion
Recursion in Java (or any programming language) is a technique where a method calls itself
13 replies
JCHJava Community | Help. Code. Learn.
Created by . πš‚πšŽπš›πšŠπš™πš‘πš’πš—πšŠ ~ πŸ‘  on 10/6/2024 in #java-help
Convert boolean inside if statement
Yeah, but is it in like a List or something? Since you are using .size()
28 replies
JCHJava Community | Help. Code. Learn.
Created by . πš‚πšŽπš›πšŠπš™πš‘πš’πš—πšŠ ~ πŸ‘  on 10/6/2024 in #java-help
Convert boolean inside if statement
What is your reversedBinaryValue? Would like to test it
28 replies
JCHJava Community | Help. Code. Learn.
Created by MdS on 8/3/2024 in #java-help
Spring Value annotation not working everywhere
Hi! So I have combined my Discord JDA project with a Spring Boot app for REST functionality (not going to discuss it, as I’m a newbie with JDA). Now I switched from config.json which was loaded via my singleton ConfigLoader class to the Spring properties file. The problem I have now is that the app doesn’t load the Values everywhere. I have a Component class for my bot, which accesses a property, but it comes back as null. I have a AppConfig class defining a Bean for RestTemplate, which uses a Value for debug reasons annotated as Configuration. The Configuration prints the value of the variable, the Component doesn’t. Any ideas?
5 replies