All Questions
8,690
questions
0
votes
0
answers
5
views
When i am. trying to run spring intializr using ./mvnw spring-boot:run. it showing the error
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.3.2:run (default-cli) on project initializr: Unable to find a suitable main class, please add a 'mainClass' property -...
-1
votes
1
answer
24
views
Is there any chance to get the vulnerability fixed for spring-web and spring-webmvc version 5.3.37?
Recently I'm migrating spring boot legacy application from spring boot version 1.x to 2.7.x and used spring-web and spring-webmvc artifact with version 5..3.37 which is having 1 vulnerability. I'm ...
-2
votes
0
answers
24
views
Issue in spring-boot war startup in external tomcat due to unwanted spring jar
I am trying to run an spring-boot web application war file in external tomcat where many other applications (Spring and not spring-boot) are already running. There are some dependencies at some shared ...
-1
votes
0
answers
11
views
Debug kotlin in spring boot maven java
https://github.com/fwcd/vscode-kotlin/issues/154
Can i debug kotlin (vscode) in spring boot maven java (i only use kotlin build controller)
can debug kotlin when run app java , i want when run spring ...
-1
votes
0
answers
58
views
Springboot application working using command line but failed to start using IntelliJ IDE
I am looking to build and run the source code on my Mac(Springboot application and using java version 17), I have successfully build and run the application (using command line) by using these ...
0
votes
0
answers
25
views
Maven test pass, but with install tests fail
I'm using maven, liquibase in project and spock with groovy to test java code.
Normally my tests pass, but when I'm using packaging/install then tests fails with error of spring context initializing ...
1
vote
0
answers
54
views
Jenkins build is failing, After upgrading spring boot version from 3.0.0 to 3.3.0
[click here for logs screenshot][2]
Upgraded spring boot version to 3.3.0
maven-surefire-plugin - 3.2.5
Maven-failsafe-plugin - 3.2.5
Jacoco-maven-plugin- 0.8.11
Upgraded these maven related plugins ...
0
votes
0
answers
27
views
Maven exception: has been compiled by a more recent version of the Java Runtime (class file version 61.0) [duplicate]
i wrote default java spring code built by maven, but i have this exception:
java.lang.UnsupportedClassVersionError: org/springframework/context/support/ClassPathXmlApplicationContext has been compiled ...
0
votes
0
answers
55
views
I'm having issues with setting up flyway migrations with a postgres database
After hours of trials and tribulations, I'm trying to set up flyway migrations so I can easily create database tables within my project.
Here is my current POM file:
<?xml version="1.0" ...
-2
votes
0
answers
39
views
Spring Web Application do not create executable jar file in Intellij Idea
I am trying to create an executable jar file for deploy in Intellij Idea
Instead of that "mvn clean package" starts an application (that is working for sure) but there is no jar file in \...
0
votes
0
answers
38
views
Error creating bean with name 'filterChain' defined in class path resource
I'm currently following a guide to set up Spring Security for my application, I don't fully understand what's going on with the code so it's a bit hard to debug.
The methods that are deprecated are: ...
0
votes
0
answers
27
views
cannot access ResourceSource
I faced with compile error:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[...
1
vote
2
answers
91
views
Java Spring API NoClassDefFoundError: javax/persistence/EntityManagerFactory
I want to create my first Java API with Spring, so fir start I decided to make a simple API which allow to list all person, one person by id and create one person. I success the compilation but when I ...
0
votes
0
answers
40
views
Cannot resolve symbol 'WebSecurityConfigurerAdapter' even though I have it in my pom.xml [duplicate]
I am trying to create my security config file and have downloaded the spring-boot-starter-security dependency in my pom.xml. This is how it looks in my pom.xml:
<dependency>
<...
1
vote
1
answer
49
views
Maven transitive dependency shows older version even though parent package is updated within dependencyManagement
I have the following POM (not the complete file):
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven....