I have modified the file: /etc/apache2/sites-available/elcor.com.conf adding: in order to access a SpringBoot app I have in the same server, but when I acees the site, this is what I see: When I start Apache I have this error: Answer could it be the case you did not enable mod_proxy on your system? you can do that via “a2enmod proxy_http”
Tag: spring-boot
Spring Boot Index jsp works on localhost, but not found in linux server
I create Spring Boot application. It works successfully in my localhost. But when I deploy and run jar file in linux centos server index page can not found (I get : There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/index.jsp) This is my code structure and application.properties : code structure and here is my pom.xml dependencies : Answer Springboot and
how to change springboot application start directory?
I run a springboot application as service on CENTOS7. The default start directory is “/”, now I want change to “/home/centos/fpcyproxy” where the configuration file is in. How to change it? logging file: content of the service configuration file: OS version: Java version: Answer If you are talking about homedir for application – try to set WorkingDirectory property: But if
Jsch running a remote jar with combined tail command is not working properly
I am trying to run a number of standalone spring boot jars on a remote linux server(on different ports) over SSH with JSch. I use tail on my command, because i need tomcat server logs. When i start service that runs standalone jars, some jars is not running. Here is a sample script that i use to run standalone jars
`spring.config.location` is ignored
Fairly straight forward. I have a configuration file: I run my application as a follows: And logging indicates the setting is visible to the application: 04:28:16.919 [main] WARNING CONFIG- [–spring.config.location=file:///etc/my-application] But my settings are ignored: The following yields the same outcome: So does: This doesn’t work either, the arguments don’t come through as well: Curiously enough if I specify the
Spring Boot Missing Plugin when Running from Command Line
I have a maven project that I can run in Eclipse, but I can’t get it to run from the linux command line. I get an error when I run ‘mvn spring-boot:run’: “No plugin found for prefix ‘spring-boot’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories” Here is my POM: Answer I ended
Running multiple Gradle commands in parallel on Linux shell
Please note: Although the two primary techs in this question are Spring Boot and Gradle, I really think this is a Linux/command-line question at heart, involving fore- and background processes! I’m trying to get my Spring Boot app to run in hot swap (“dev”) mode via Gradle. After reading this interesting DZone article, all it takes is a few easy