Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

With more than 20,000 members, join one of the biggest and most active Java Communities on Discord! ☕

Join

java-help

❓︱qotw-answers

Selective finalNames in Maven?

Currently, my pom's finalName is ProjectName-${project.version}-${git.branch.caps}-${git.commit.id.abbrev} I want to make it so that the -${git.commit.id.abbrev} is dropped from the end on every branch other than nightly. Does anyone know of a sane way to do that?...

Maven and Git?

I really want something like ${git.branch} in my maven pom's finalName. I would prefer not to need to replace the default install and default deploy. Is there still a way to do that, like there used to be, or am I stuck doing an annoying workaround?...

need someone to look over my code

i made this script for a amazon bot to monitor their website can someone jsut lokk over it and make sure i made no errors https://github.com/Bigmacman12/really-cool-Amazon-bot.git

Cannot make static reference in non-static field

I'm trying to call a method for my code to print multiple "dice rolls" and am getting an error (attached)
No description

Spring Boot - PrePersist and PreUpdate for Couchbase

I try to implement an example of Spring Boot with the usage Couchbase I have no idea how to implement PrePersist and PreUpdate for Couchbase Here are my codes shown below ...

Package Error in VS Code

when i am creating two classes (Main.java) and (Human.java) in the same folder in VS Code, why i am unable to use Human Class in Main.java file, it is saying "Main.java:6: error: cannot find symbol" when i did the same in "intellij idea" it worked perfectly, i think something is wrong with my vs code

what password to enter when doing git push?

hey guys. can smb help me out with git? I tried googling but theres no normal and simple answer. the more i read the less i understand. i did git commit -m "my message". then when i try to do git push i get: ``` banana@dev2:/var/www/lms2$ git push...

tracing table help

I don’t understand this at all and idk why there is three columns in each
No description

homework help

I was wondering if anyone can help me understand this tracing table
No description

Jenkins build step doesn't execute as it should.

I try to download my project from GitHub repository using Jenkins and then to build. Later I will join tomcat server and automatically host on localhost or aws. Currently something is wrong. I have this script: ``` @echo off SETLOCAL...

set up a grpc client on java springboot application

i have a grpc server set up on my python application......i want to request data from that application from my java application......i keep getting issues "protoc did not exit cleanly. Review output for more information." or "package doesnt exist" for all my different attempts.....how do i proceed i also had lots of issues handling the pom.xml to use the protobuf plugin and im still not sure if that is working.....however there is no error ...

Error loading image (?)

trying to load some images. I have sent my code and the error
No description

How to secure apis using JWT in Spring Boot?

Hello experts, Hope you are doing great. I'm making simple RESTful Web Service using Spring Boot. CRUD apis already implemented, and I have to make authentication and authorization part using Spring Security and JWT. I'd like to get detailed implementation for this....

what does this mean

i made a basic maven project and this happened Source option 7 is no longer supported. Use 8 or later. Target option 7 is no longer supported. Use 8 or later....

how to enable basic auth in java spring app?

hey guys. i have java spring app. in WebSecurityConfig i have this: ```java @Override protected void configure(HttpSecurity http) throws Exception { http...

help

im trying to make an item and i dont see anything wrong with the bottom 2 lines, it would very appreciated if someone could help meh
No description

Download a file with its given name

Normally if you want to download a file through your browser, the browser asks you for the destination path and the name of the file is already given. Now I want to download a file with that specific filename. How can I do that?...