why do i get redirected to /login?
hey guys. i have java spring app. it has this websecurity config chain:
```java
@Override
protected void configure(HttpSecurity http) throws Exception {
http...
Is there a way to optimize my code more?
```java
import java.util.*;
public class Main
{
public static void main(String[] args) {...
javafx.fxml.LoadException
Hello. I use GravitLauncher for minecraft, I compiled my runtime module, but when I try to run it, it gives an error related to the controller (That the class could not be found), I have attached a detailed error below
confused as how to implement stars next to space "∆"
i am doing an assignment where you have to make a right-leaning triangle. However, I am confused as how to make the stars go be placed next to the "∆" (Place holder for " "). I tried using a for loop for the stars where they would supposedly be placed next to the space (∆), however, the output of the stars become jagged and the output overall doesn't look like a right-leaning triangle. Anyone out there who could help?
java/scala multithreading on spark?
I'm using scala spark to get data from hudi table to hive table. I'm already maximizing optimization on spark with worker nodes and cluster size. Table is missing a lot of features that could improve the speed, but it's managed by other team and many other teams are also accessing this table (Thus table side change cannot happen). What I've not tried is multithreading from scala.
Has any of you used java and spark, and applied java multithreading and saw noticeable improvement from data ETL duration?...
Spring Boot, Eureka Server shuts Service down
My Eureka Discovery Service always shuts down my services, although i configure it with
`spring:
application:
name: test-service...
Dealing with concurrent updates
Does anyone have suggestions on resources, concepts and topics to look into on handling concurrent updates? Like I have two different systems possibly updating the same record/object, how should I be handling concurrent updates to prevent duplicates and other issues. The two different systems have their own db but eventually the shared data has to be written in a middleware postgres db that has to handle the concurrent scenarios.
Can I make a superclass's variable static final in subclass?
```abstract class User {
String about;
}
class Bots extend User {
final static String about = "Bots are not humans"; // I think this replaces Superclass 's instance variable about...
Java Swing (jtextfield)
Boa tarde pessoal, tenho uma dúvida, quando executo este projeto, porque só digitar no swing ele não aparece os dados, mais ao pressionar o botão de = aí sim mostra o resultado da soma? Alguém pode me ajudar a resolver isso, para que quando eu digite os dados na tela gráfica, os dados já apareçam de imediato? Porque só está aparecendo após pressionar o botão de resultado!
Code Help Please!
I have been trying to fit a function to a data set, but my function appears as linear line on gnuplot... what am I doing wrong?
Converting int array to byte array
I am attempting to convert an array of ints to a byte array to store in a file which will later be read and converted back into an int array.
these are my conversion methods:
```java
public static byte[] intArrayToByteArray(int[] intArr) {...
Minecraft plugin returns error
So, i want to make a simple plugin, that prints some text into console, and after build, i get error
[20:16:08 ERROR]: Error occurred while enabling LogConsole v1.0 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "ru.mrksbgg.logConsole.LogConsole.getCommand(String)" is null...
Blocking/Preventing certain GIT actions on repositories
I've implemented a combination of Git Hooks both client side and server side to prevent the merging between specific branches. As of right now, the server side pre-receive hook is able to prevent the push to remote, but the commits from the merge command is still staged locally, thus having to reset HEAD~n. I am looking for a cleaner way to prevent if I am invoking that command from and only , to be staged locally. Can the client side pre-commit hook somehow check for this?
Any suggestions?...
git merge x
git merge x
branch y
branch y
branch y
branch y
Hotswap file not found error. Running works fine.
My Project runs just fine. Even the "missing" code works. But when I want to hotswap it fails with errors like this one with a lot of files.
/home/spieler/IdeaProjects/BBsentials-Server/main/src/main/java/de/hype/bbsentials/server/discord/events/staticimplementations/commands/commands/development/TestDiscordCommand.java:17: Fehler: Failed to parse source file: src/main/java/de/hype/bbsentials/server/discord/events/staticimplementations/commands/commands/development/TestDiscordCommand.java (Datei oder Verzeichnis nicht gefunden)
public class TestDiscordCommand extends AbstractSingleCommand {
^...
Jwt Auth Issue
```@Configuration
@EnableWebSecurity
public class SecurityConfiguration {
@Autowired...
How I make Spotless follows my checkstyle configuration?
I have some annoying conflicts between Checkstyle and Spotless and I dunno what is the best approach to do ?
VS Code Setting
This may seem silly but it's been really annoying to deal with for a while now. Whenever I use overloaded methods (for example the println or the add method on ArrayList) that can have either different type or number of arguments, I get this box (see image) that lets me arrow between different versions. Does anyone know how to remove this? It takes priority on up/down arrow keys which makes moving between lines of code very frustrating since I frequently use the arrow keys to navigate my code. L...
Should mock objects be in a single class?
Hey so should different mock objects be in a single class for different tests? is this good practice? or should they be in their respective test classes
How to get built jar during test-time (JUnit)
I'm making an integration testing framework for Minecraft plugins which uses JUnit. My plan is to send a built plugin file during test-time to a docker container, which in term runs a server with that specific plugin file, which will be loaded using the servers class loader. This file should not include test resources
The problem I'm facing is that there's large differences in buildscripts for projects; it would not be feasible to just run something like
./gradlew build
and retrieve the file from it's directory, as there's also maven, and multimodule projects and much more that I don't know about. What is the least painful approach to generate or fetch this file?...Scanner Bug (Tried Everything)
So I ask users through input through these two methods:
```java
public static String whileLoopInputString (Predicate<String> checkCase, String inputMessage, String errorMessage, Scanner scanner) {
String input = "";
...