Serious problems with Maven
As much as I'd like to be concise, this will take a while to explain. I wanted to make simple annotation processor for my side project - http server with sort of MVC model. I added annotations
@Mapping
and @Mappings
(@Mapping
is @Repeatable
) and I proceeded with creating the processor. For this I used Google's AutoService, however it wouldn't generate the files (Maybe I did something wrong?). So, I included maven-compiler-plugin
in my build configuration, but it still wouldn't generate the files. I started digging deeper, running mvn clean
, mvn install
, mvn compile
, yet it almost always results in build failure. The only time it gets to work is when I delete the plugin mentioned earlier (which means that no files are generated). It's worth mentioning that my project has a umm unique structure, and so here it is:
```
HttpServerEnv/
├─ Application/
│ ├─ src/...Need ideas for separating my client, server, and common code for my game
Title isn't good, but it's the best I can think of. I've been working on a game for almost 17 months now, and when I just tried to add multiplayer, I came across an issue. I have my world separated into modifiable chunks. These chunks have code for rendering and storing the world data inside. Both client and server need the storing part, but only the client needs rendering part. I can't think of a good way to separate them so that both client and server get their versions of common, but client h...
Spring boot cookies won't obey application.properties settings
Hello,
I have in application.properties the following :
```
server.servlet.session.cookie.same-site=none...
Why does creating a subclass of some Exception, throws this error?
Custom exceptions are supposed to be caught if occurs, not intentionally thrown.
```jshell> class WrongInputException extends Exception {
...> public String toString() {
...> return "ERROR!!";...
authenticationManager threw StackOverFlow
My end point http://localhost:8080/auth/login doesn't work, it always throws StackOverFlow.
java.lang.StackOverflowError: null
at org.springframework.aop.support.AopUtils.isEqualsMethod(AopUtils.java:166) ~[spring-aop-6.2.2.jar:6.2.2]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:175) ~[spring-aop-6.2.2.jar:6.2.2]...
Lombok @Builder error
I'm getting this error: when using the .builder() method on an object that I previously marked with the annotation...
java: cannot find symbol
symbol: method builder()
java: cannot find symbol
symbol: method builder()
@Builder
@Builder
Extend/Inherit java class - how to?
I have a repo with some kind of config in the style of a YAML file... As an example its something like this:
```yaml
something:
calling-birds: four
french-hens: 3...
Jwt token
I am not able to extract the header from my spring boot app controller
Spring boot backend
```@PostMapping("login")
public ResponseEntity<?> login(@Valid @RequestBody AuthRequest authRequest, BindingResult bindingResult) {...
Java College Project
Hey everyone, I'm about to start working on a Java project about a task and event scheduling system in a calendar based on urgency.
For a task, I'll have the following fields:
taskId...
Dynamically create redis keyspaces
I have a spring boot, thymeleaf & redis app and am struggling with finding a way to provide to create a dynamic keyspace name that is pojo class name plus session id for each session, it's not a shopping cart but same idea, a link to example doco would be appreciate?
which IDE should I use for java ?
Eclipse , netbeans , apache netbeans , bluej , intelliJ idea community edition , JDeveloper , JGrasp , Myeclipse, Sublime Text, VS Code (with Java Extensions) , Clojure with Java Support (Cursive) , Codenvy , JCreator, Replit , Xcode , Android Studio vs Kdevelop which editor should I choose for java ? Which one is the best ?
Interfaces for the Service layer
Hello everyone, in the context of backend development, what is the advantage of creating interfaces for the Service layer?
Programming a game
Hey reader. I have programmed several projects in java and wanna take it to a new level (I used BlueJ) . I wanna try programming a little funny pixel game. Any recommendations concerning the Software i can be using? Is Eclipse a good way to do so? Thanks!
Programming a game
Hey reader. I have programmed several projects in java and wanna take it to a new level. I wann try programming a little funny pixel game. Any recommendations concerning the Software i can be using? Is Eclipse a good way to do so? Thanks!
Packing 2 bit numbers into an int.
I have an array of ints where each int represents 16 blocks,
I am attempting to set and read groups of 2 bits within the int as their own numbers, but am getting numbers I did not put in. (ex. i write a 2 in but it gives me a 3 when reading)
This is how I'm setting the values: (key is the new value)
```java
int intPos = pos / 16;...
ThreadPoolTaskExecutor - Configuration way.
Helo, what is the best way to configure ThreadPoolTaskExecutor and why?
1 -
@Bean(name = "thisIsBeanName")
public ThreadPoolTaskExecutor taskExecutor(ThreadProperties threadProperties) {
ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
properties..
...unit testing error
I wrote this unit test: ```@WebMvcTest(CustomerController.class)
public class CustomerControllerTest {
@Autowired
private MockMvc mockMvc;
...
git question, not a java question
I have a project on git, and I use github desktop to handle commits and pushes. For some reason, every time I open a branch, including main, it acts like none of my files have been added, and that I created them (when its a team project, and these files have been there for months). Its really tripping me up and making it harder to keep up with files I'm actually supposed to be working on in my branch. Anybody know what this is?