spring-boot-maven-plugin

Since 2.2.0 spring-boot-maven-plugin create 2 java process (may cause CreateProcess error=206). Need workaround to fix it

て烟熏妆下的殇ゞ 提交于 2020-11-29 11:43:32
问题 Since Spring Boot 2.2.0.RELEASE spring-boot-maven-plugin mvn spring-boot:run -Drun.profiles=prod create two java process (see https://github.com/spring-projects/spring-boot/issues/17766). In my case: 14811 ? Sl 1:34 /usr/lib/jvm/java-11-oracle/bin/java -classpath /opt/maven/boot/plexus-classworlds-2.5.2.jar -Dclassworlds.conf=/opt/maven/bin/m2.conf -Dmaven.home=/opt/maven -Dlibrary.jansi.path =/opt/maven/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/opt/javaops org.codehaus.plexus

How to prevent lombok from being packaged into Spring Boot jar?

末鹿安然 提交于 2020-08-05 11:32:31
问题 If you visit official Lombok Maven guide, you will see that it's scope should be provided . When I create a new project from scratch using start.spring.io and add Lombok, it gets only <optional>true</optional> in resulting pom. Then I package Spring boot app like this and out of curiosity decide to see what gets packaged inside of jar: mvn clean package -DskipTests=true && unzip target/demo-0.0.1-SNAPSHOT.jar -d exploded Lombok is packaged, does not matter if I set scope to provided or only

Simple spring-boot jar doesn't work except build/target folder

天涯浪子 提交于 2020-06-01 04:48:51
问题 I have a simple spring-boot application but it doesn't work except run from target/build folder. Here are all my config and files. Please help me to find out why it is not working and what is the wrong I am doing. It works perfectly fine while I run from target folder java -jar target\demo-0.0.1-SNAPSHOT and by running from IDE(Eclipse). and my weburl is http://localhost:8082/demo/edit.html . I just copied this jar to different machine/folder it is not longer working. package com.example.demo

proxyBeanMthods annotation error when running springboot application

假装没事ソ 提交于 2020-05-29 09:56:22
问题 I am trying to run my first springboot application but facing some issues. In my application file, this is my code package com.clog.ServiceMgmt; import java.util.List; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.context.annotation.ComponentScan; import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

proxyBeanMthods annotation error when running springboot application

风流意气都作罢 提交于 2020-05-29 09:56:22
问题 I am trying to run my first springboot application but facing some issues. In my application file, this is my code package com.clog.ServiceMgmt; import java.util.List; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.context.annotation.ComponentScan; import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

cannot resolve the issue with sql exception while adding user and role with spring security

不想你离开。 提交于 2020-03-28 06:46:12
问题 AppConfiguration class package com.access6; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import com.access6.model.Customers; import com.access6.model.Role; @Configuration

Spring Boot Multi-Module maven project repackage failed

老子叫甜甜 提交于 2020-01-04 02:06:12
问题 I'm currently following John Thompson's Spring Framework Beginner to Guru course. I follow his step by step procedures on creating multi module maven project for spring pet clinic on spring boot. When I clicked package on my root module it says repackaged failed, unable to find main class. <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>repackage</goal> </goals> <configuration>

Deploy Spring Boot 1.3.2 IBM WAS 8.5

北慕城南 提交于 2020-01-02 10:03:59
问题 I'm facing a problem deploying a simple spring boot web on IBM Websphere 8.5.5.8 using full profile WAS is by default using servlet 3.0 and java 1.7. The application does not do much, just display a page with a "Hi - [current-date]". When deploying the war file, we see the following in server log output: [2/3/16 13:30:44:857 AST] 00000078 AdminHelper A ADMN1008I: An attempt is made to start the simpledemo_war application. (User ID = defaultWIMFileBasedRealm/wps_admin) [2/3/16 13:30:44:871 AST

Deploy Spring Boot 1.3.2 IBM WAS 8.5

被刻印的时光 ゝ 提交于 2020-01-02 10:03:25
问题 I'm facing a problem deploying a simple spring boot web on IBM Websphere 8.5.5.8 using full profile WAS is by default using servlet 3.0 and java 1.7. The application does not do much, just display a page with a "Hi - [current-date]". When deploying the war file, we see the following in server log output: [2/3/16 13:30:44:857 AST] 00000078 AdminHelper A ADMN1008I: An attempt is made to start the simpledemo_war application. (User ID = defaultWIMFileBasedRealm/wps_admin) [2/3/16 13:30:44:871 AST

Spring Boot add files to classpath from command line execution

流过昼夜 提交于 2020-01-01 11:43:05
问题 I am using Netbeans 8.2 to develop Spring applications. This specific app with which I am having trouble is a Spring Boot 1.5.3 app. I have a spring xml file and an application.properties that I keep in /config under the root project directory. I am passing the spring xml file to my project via the @ImportResource annotation and a value property like @ImportResource(value="${config.xmlfile}") . When I click the 'Run Project' button in Netbeans my Spring app starts up and it correctly finds