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 ...
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
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.
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 ...
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 ...
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).
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 ...
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 ...
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 ...
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&...
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 ...
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. ...
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 ...
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 ...
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.
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.
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
springboot × 65java × 23
amazon-web-services × 10
nginx × 8
ssl × 8
tomcat × 8
docker × 7
springframework × 6
linux × 4
deployment × 4
ubuntu × 3
amazon-ec2 × 3
kubernetes × 3
http × 3
postgresql × 3
elastic-beanstalk × 3
cors × 3
angular × 3
centos × 2
mysql × 2
ssl-certificate × 2
https × 2
systemd × 2