Skip to main content
4 votes
Accepted

WSL and maven wrapper?

Something has probably messed with the line endings in the mvnw script. If you have dos2unix installed (sudo apt install dos2unix), you should be able to repair the script with dos2unix mvnw. Or just ...
seanf's user avatar
  • 266
2 votes

Delombok Lombok cannot find symbol location: package javax.annotation after spring boot 3 and jdk17 migration

Had the same issue. In my case solution was to remove from lombok.config this line: lombok.addJavaxGeneratedAnnotation = true
Hubert Szymański's user avatar
2 votes

Proper method for reloading a Spring (Tomcat) application?

I could offer simple solution, you should put reverse proxy before tomcat, for example nginx, start new instance of tomcat on different port, change nginx upstream configuration and reload it.
Alexander Tolkachev's user avatar
1 vote

Nginx reverse proxy to apache server, redirection gives 404

The most common use case for a Nginx proxy in this kind of setup would be providing the TLS termination and preventing clients from using the unencrypted backend services directly. The Nginx ...
Esa Jokinen's user avatar
  • 53.3k
1 vote
Accepted

Tomcat Tomcat/9.0.8 error java.lang.NoClassDefFoundError: javax/management/MBeanServerNotification

I was facing same issue while deploying application on tomcat 9/Unix. It was due to wrong JAVA_OPTS entries in setenv.sh hence tomcat was not able to find javax.management.MBeanServerNotification ...
ChetanK's user avatar
  • 26
1 vote

Spring boot client and cloud config server HTTP authentication

To use the default Spring Boot configured HTTP Basic security, just include Spring Security on the classpath (e.g. through spring-boot-starter-security).
kimbad's user avatar
  • 11
1 vote
Accepted

How HTTP 1.1 and HTTP 2.0 works in Spring Boot?

HTTP/1 was known to have poor response time. With websites becoming more resource-intensive, the protocol was losing its efficiency. It progressively became essential to minimize latency and boost ...
Bhargav Patel's user avatar
1 vote
Accepted

K8S limit number of starting pods at the same time

You can set CPU limits and requests. Once you set these, even if the limits are generous, the kubelet and container runtime work together to enforce the CPU limits. Along with that, you can reserve ...
Tim B's user avatar
  • 81
1 vote

maxConnections or maxThreads on tomcat

Your application suffers from database connection pool exhaustion: since you have more working threads in Tomcat (100) than available connections in the connection pool (60), many threads need to wait ...
Piotr P. Karwasz's user avatar
1 vote

CORS Error in Google App Engine on java server

You need to add Access-Control-Allow-Origin to the headers and need to respond to the request Please try with the below code blocks header := w.Header() header.Add("Access-Control-Allow-Origin&...
Wijayanga Wijekoon's user avatar
1 vote

CORS Error in Google App Engine on java server

The issue is that the CORS needs to be allowed on the app engine app. This can be done on the app.yaml by adding a handler to include the CORS headers like this: runtime: java11 instance_class: F4 ...
Soni Sol's user avatar
  • 241
1 vote
Accepted

Seeing Java Spring Boot logs from AWS Elastic Beanstalk in AWS CloudWatch

The secret is that for the AWS Elastic Beanstalk environment, under Configuration there is a section "Instance log streaming to CloudWatch Logs". The setting Log streaming must be enabled. ...
Garret Wilson's user avatar
1 vote

Are connections to databases http based or tcp based

Although JDBC connections to PostgreSQL utilize a URL (Uniform Resource Locator), they are not using the HTTP protocol. They don't use TCP port 80, either, if that's what you were asking; they use the ...
CB_Ron's user avatar
  • 348
1 vote

Nginx und Tomcat For Spring and Angular App

The URL your Angular app uses to call the API should be configurable or automatically detected. So you can use: the JavaScript global location object or a similar object on the server side, like ...
Piotr P. Karwasz's user avatar
1 vote
Accepted

Google App Engine tomcat error with Spring Boot

Since the documentation you followed was deprecated, the best way to proceed with your scenario is to follow the example code provided by Google in Github about App Engine Standard with SpringBoot.
Noohone's user avatar
  • 141
1 vote
Accepted

If I'm redirecting port 80 to 443 with ssl set up in nginx and proxy to my application on port 5000 do I still need to set up Spring boot to use SSL?

Yes, you don't need SSL in your Spring application. Your client connection is already secure.
Freddy's user avatar
  • 2,099
1 vote
Accepted

how to access external mysql from docker

If the mysql server is running on the docker host, either on metal or in another contianer with a mapped port, it could be that your app's configuration is still looking for the database server on ...
v25's user avatar
  • 810
1 vote

Azure application gateway spring boot app VM scaleset

this is not possible with lb unless your app listens on https (so it needs a certificate). its possible to do SSL offloading on the app go or do end-to-end SSL. this is the official article to ...
4c74356b41's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible