Itsurran
JCHJava Community | Help. Code. Learn.
•Created by Itsurran on 2/4/2025 in #java-help
Websocket Postman
’’’java
@PostMapping("/register")
’’’
211 replies
JCHJava Community | Help. Code. Learn.
•Created by Serkan Gülbol on 1/28/2025 in #java-help
Own video streaming
What exactly do you mean with implementing video streaming?
114 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
@Configuration
@EnableWebSecurity
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
@RestController
@RequestMapping(value = "/auth")
44 replies
JCHJava Community | Help. Code. Learn.
•Created by nikcho-kouhai on 1/23/2025 in #java-help
Type inference for generic parameters when calling a method
There are several approaches to work around this limitation:
Explicit Type Declaration: The simplest way is to explicitly specify the type when creating the instance:
java
bar(new Foo<Integer>().self());
Factory Method: You can create a factory method that returns a Foo<T> with a specific type:
java
These methods allow you to maintain clarity in your code while still leveraging generics effectively without cluttering your main logic with verbose type specifications.
By using these techniques, you can streamline your code and avoid the verbosity of specifying long generic types repeatedly while ensuring that the compiler understands what types you are working with.
13 replies
JCHJava Community | Help. Code. Learn.
•Created by °~° on 1/22/2025 in #java-help
someone explain this code (which i mostly understand
import java.util.Scanner;
Used no help
82 replies
JCHJava Community | Help. Code. Learn.
•Created by °~° on 1/22/2025 in #java-help
someone explain this code (which i mostly understand
import java.util.Scanner;
look i made this code by my own but i dont get the one above
look i made this code by my own but i dont get the one above
82 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
JwtProvider:
package com.Config;
import java.util.Date;
import static java.lang.System.currentTimeMillis;
import java.util.stream.Collectors;
import javax.crypto.SecretKey;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.stereotype.Service;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.security.Keys;
@Service
public class JwtProvider
271 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
Forget about everything, my code is running fine in these entity classes while development and not getting any errors but while in production i am getting this exception on render.com.
271 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
@Bean
271 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
package hibtest.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
271 replies
JCHJava Community | Help. Code. Learn.
•Created by Maxxx005 on 1/16/2025 in #java-help
production vs development
Can you show the DDL from the actual database?
271 replies
JCHJava Community | Help. Code. Learn.
•Created by Hype_the_Time on 1/18/2025 in #java-help
Hotswap file not found error. Running works fine.
312 replies
JCHJava Community | Help. Code. Learn.
•Created by Hype_the_Time on 1/18/2025 in #java-help
Hotswap file not found error. Running works fine.
312 replies
JCHJava Community | Help. Code. Learn.
•Created by Hype_the_Time on 1/18/2025 in #java-help
Hotswap file not found error. Running works fine.
312 replies
JCHJava Community | Help. Code. Learn.
•Created by Ainhart on 1/14/2025 in #java-help
TestNG won't detect my test or build it
92 replies
JCHJava Community | Help. Code. Learn.
•Created by nomoney4u on 1/9/2025 in #java-help
Configuring Eclipse to use explode war with Tomcat for debugging
307 replies
JCHJava Community | Help. Code. Learn.
•Created by nomoney4u on 1/9/2025 in #java-help
Configuring Eclipse to use explode war with Tomcat for debugging
307 replies
JCHJava Community | Help. Code. Learn.
•Created by Omen on 12/25/2024 in #java-help
The bot isnt responding when i run an message
C:\Users\priya\Desktop\Study\Programs\Omenize Bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:136
const invalidToken = new DiscordjsError(ErrorCodes.TokenInvalid);
^
Error [TokenInvalid]: An invalid token was provided.
at WebSocketManager.connect (C:\Users\priya\Desktop\Study\Programs\Omenize Bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:136:26)
at Client.login (C:\Users\priya\Desktop\Study\Programs\Omenize Bot\node_modules\discord.js\src\client\Client.js:228:21)
at Object.<anonymous> (C:\Users\priya\Desktop\Study\Programs\Omenize Bot\src\index.js:21:8)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
Node.js v20.18.0
[nodemon] app crashed - waiting for file changes before starting...
13 replies