Questions tagged [spring-tool-suite]
Spring Tool Suite (STS) provides the best Eclipse-powered development environment for building Spring-powered enterprise applications. STS supplies tools for all of the latest enterprise Java and Spring, and comes on top of the latest Eclipse releases.
1,326
questions
0
votes
1
answer
35
views
Debugging with Java/Spring's @Autowired on Eclipse
I have picked up a project that uses @Autowired and dependency injection a lot. People have been saying all the nice things about them. It seems kind of like a magic.
I am new to Spring injection and @...
1
vote
1
answer
36
views
How to configure eclipse to pick config file?
I am using eclipse for spring boot development. In my project, the environment configuration file is inside in the config folder in resources folder. But when I run eclipse it is not picking the files....
4
votes
1
answer
60
views
Unable to create Spingboot project in Spring tool suite software
I am working on STS and while creating a new spring-boot project, it shows following errors:
I tried two options but it didn't work.
Option-1:
Service URL:https://start.spring.io
Error Message: ...
0
votes
1
answer
46
views
SpringToolSuite4 - Spring Tools 3 Add Install Error
I was using Spring 4.10.0 version and then re-downloaded it with Spring 4.9.0 due to namespaces error.
However, spring tools 3 add-on for spring tools 4 are not installed in the marketplace. I deleted ...
0
votes
1
answer
40
views
Spring Tools 4 for Eclipse Interface English language error
Why does the interface language is different? Example: It shows
"Recenci g Gzr.." for Package Explorer
-2
votes
1
answer
93
views
"Loading available Gradle versions has encountered a problem" in workspace-spring-tool-suite
STS Error
I was trying to install STS and this is the error that I'm facing on opening any existing project. I already have JDK installed on my system along with Eclipse IDE. What can I do to solve ...
0
votes
0
answers
45
views
Fix Eclipse / SpringToolSuite4 Ubuntu 22.04 wide header bar
Eclipse, Version: 2022-03 (4.23.0) & SpringToolSuite4, Version: 4.14.1.RELEASE has too wide header bar (window bar) and incorrectly scaled window UI buttons.
Other applications like VS Code & ...
0
votes
0
answers
25
views
How to let my spring tool suite see the postgres driver
First , i downloaded the postgres driver from the internet from https://jdbc.postgresql.org/download.html.
Then i created a maven project and converted it to jpa project by right clicking on the ...
0
votes
0
answers
38
views
I am getting the error - unable to find valid certification path" in my Springtoolsuite 4(in Mac)
I am trying to compile my first project in Spring tool suite4, but getting the following error - The following artifacts could not be resolved: commons-
io:commons-io:jar:2.6, org.codehaus.plexus:...
0
votes
1
answer
60
views
Error with maven. No error with the same external library
I'm trying to use the spire.office.free library to manage office files from java. For this I have a project using spring tool suite with maven for the download of that library. The problem is that ...
-1
votes
1
answer
42
views
SpringToolSuit can not open on macbook m1
When I open the application SrpingtoolSuite always displays the message "springtoolsuite4 can't be opened"
18
votes
1
answer
12k
views
Spring plugin in Eclipse cannot open pom.xml
I've installed the most popular plugin in Eclipse (Spring Tools 4.14.1) and i tried to create a new project and open the pom.xml and then it shows error and comes like
Failed to create the part's ...
0
votes
0
answers
19
views
save a image in the database mysql using android
i'm already able to select a photo from the gallery of the phone but im not sure how to save in the database.
i have this codes to open e select a photo:
btCapa.setOnClickListener(new View....
0
votes
2
answers
75
views
Folder not opening in Spring Tool Suite after changing folder name
Does anyone know how to retrieve a Java project after changing the folder name outside Spring Tool Suite? I didnt use the refactor feature and I instead just changed the name in my folder directory. I ...
0
votes
0
answers
37
views
list all of the books that belong to a certain user android
i have this query on the server : "SELECT b FROM Book b WHERE b.user = ?1.
the user register a book in the plataform and the book gets them id and set it in the book table, but i'm not been able ...
0
votes
1
answer
35
views
I want to create Spring Legacy Project. But I get the same error
I install STS3 Add-On to create a spring legacy project in STS4. And I want to create Spring Legacy Project. But whenever I try to create it, I get the same error as in the picture below.
enter image ...
1
vote
1
answer
266
views
JDK error in VS code spring boot extension
My vscode extension for spring boot is is not starting properly.
When I set the configuration as : "spring-boot.ls.java.home": "C:\\Program Files\\Java\\jdk1.8.0_311",
I am getting ...
0
votes
0
answers
55
views
Spring Tool Suite + Infinitest preference page error
STS 4.14.0.RELEASE with Infinitest 5.2 throws an error on accessing the Infinitest preferences page:
Unable to create the selected preference page.
java.lang.reflect.InvocationTargetException
0
votes
0
answers
36
views
Maven - Different versions of same library automatically considered for 2 different projects in a same Eclipse/STS workspace
I wanted to use same version of log4j2 for all my projects.
So I manually deleted all other versions of log4j2 from ".m2" folder and only kept log4j2 2.17.0 version of the library.
I also ...
0
votes
1
answer
42
views
How to configure Eclipse / STS autocomplete to suggest constructor argument names for new statements?
My Eclipse/STS used to autocomplete a new statement with argument names from the original class constructor. For example, let's suppose I have a Sale class like this:
public class Sale {
private ...
0
votes
1
answer
263
views
eclipse's Gradle build ship not enabled
For some reason Gradle plugin in any of the Eclipse plugin's is not working. I have downloaded different version of Eclipse IDE ( Eclipse 2021 , Eclipse 2022 , Eclipse 2019 and Even Spring tool suit 4)...
0
votes
0
answers
19
views
An internal error occurred during: "Updating Maven Project" .com/ibm/ws/ast/st/core/internal/runtime/WASRuntimeClasspathProvider90
Maven Update is failed with below mentioned error.
"An internal error occurred during: "Updating Maven Project".
com/ibm/ws/ast/st/core/internal/runtime/WASRuntimeClasspathProvider90 ...
0
votes
1
answer
265
views
How to setup an existing Gradle project on STS with springframework libraries?
I have downloaded a gradle spring boot project from GitHub. I'm using STS (Spring Tool Suite). I have downloaded the Gradle plugin from marketplace. and I have tried options such as manually adding ...
1
vote
1
answer
63
views
Eclipse not giving warning when running java code which has compilation errors
When running a Java/Spring code, If the application has compilation errors we get a popup warning as " Code contains compilation error..Continue running ". There is a checkbox there as "...
0
votes
0
answers
78
views
Eclipse: How disable the automatic download process of dependencies of an imported project based on Maven and Gradle?
Having STS-4 and Eclipse, when a project - based on either Maven or Gradle - is imported the IDE automatically starts to download the dependencies. This process is reflected in the Progress View, I ...
-1
votes
1
answer
400
views
How to run spring boot project downloaded from GitHub
I'm a beginner in Java spring boot having studied Java Core and J2EE. Previously I have been coding in PHP so now I want to learn web development in java spring boot. Before I proceed to commit myself ...
0
votes
1
answer
405
views
Spring boot stops right after "Started <app_name> in X seconds (JVM running for Y)
I am using Eclipse 14.4.0 on Ubuntu 20.04.3. I've loaded "Spring Tools 3" and a Lombok plugin.
Here's my pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project ...
0
votes
0
answers
70
views
Could not create the view: org.eclipse.wst.common.snippets.internal.ui.SnippetsView
I'm using spring tool suite IDE I found this error in the snippet. I update my existing sts and after I'm not able to create new maven projects.
java.lang.Exception
at org.eclipse.ui.internal....
1
vote
1
answer
299
views
Why console is lagging like anything in Spring Tool Suite (STS) 4.13.0.RELEASE in Windows 10?
Check this gif.
I don't know why the console is lagging like anything. I have freshly installed STS multiple times yet it's the same.
My PC Config:
OS: Windows 10 Build 19044.1466, 64-bit
RAM: 12GB
...
0
votes
1
answer
197
views
How to set the git property sslBackend = schannel in Spring Tool Suite 4
I am trying to run git clone in Spring Tool Suite (eclipse) from local gitlab server.
I'm using HTTPS clone url and the server certificate is signed by our organization CA.
I'm getting the error: ...
0
votes
1
answer
32
views
Why do breakpoints disappear in Spring Tools Suite (Eclipse)?
All breakpoints are removed from the debugger each time Maven > Update Project is executed from the project's context menu in Spring Tools Suite (version 4.12.1)? Is it possible to prevent this ...
0
votes
1
answer
21
views
Prevent STS4 from launching browser when run?
I have a Spring Boot application with only api rest calls.
Everytime I press the "run on server" button a browser is launched trying to access the current file. Of course it always prompt an ...
0
votes
0
answers
62
views
Max value of Xmx and Xms in SpringToolSuite4
What is the max memory size in SpringToolSuite4.ini for STS for the following parameters?
-Xms
-Xmx
are the above parameters customized, if yes how much size we can increase for both?
0
votes
0
answers
25
views
Issue as soon as click on pom.xml or updating maven dependencies in spring starter project
I have installed sts4 and Java 1.8. I have created a spring starter project. project created but as soon as click on pom.xml I'm getting below error. I have also configured Apache Maven in STS.
Can ...
1
vote
1
answer
221
views
Creating Test Class Quickly using Spring Tool Suite 4 as IntelliJ
I was viewing a tutorial about Testing, The exhibitor in the video shows how to create a Test on IntelliJ using Alt + Enter over the name Class. Immediately appears a secondary menu with the option ...
0
votes
0
answers
53
views
Spring Tool Suite java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
I'm trying to learn Spring core with using Spring Tool Suite. When I try to run my code it gives an error which is like this:
I'add to libraries all spring framework jars. Specially spring-core-...
0
votes
0
answers
529
views
In STS - The type groovy.transform.Generated cannot be resolved. It is indirectly referenced from required .class files
I am trying to use spock framework in STS. But I am facing this error in my groovy class.
ERROR - The type groovy.transform.Generated cannot be resolved. It is indirectly referenced from required ....
0
votes
1
answer
201
views
Autocomplete in Spring tool suite 4 is not working
I am using STS4 and I am new to it. I did all possible ways to make work auto-complete but it's not working.
Below are the preferences setting screenshots
Instead of getting autocomplete suggestions, ...
0
votes
0
answers
19
views
Having trouble with making database show
New to coding and working on a project. I can't figure out why my code isn't showing on my page. I can use all the advice you'd like to give! I know I have an error in my code that's most likely ...
0
votes
1
answer
72
views
How to start a thread on ApplicationContext load in Spring MVC application?
I am creating this Spring Web MVC application. I want to start a thread when the ApplicationContext starts loading. how should I do this??
0
votes
0
answers
32
views
STS not working after I try to install new IBM server
After trying to install IBM websphere, sts stopped working. spring and Gradle nature is lost for the existing projects. I even removed the new server, still same issue.
1
vote
1
answer
529
views
Could not determine java version from '17'
When I going to setup my Spring boot project in spring tool suite 4.12.1 as Gradle(STS) project I got error like "Could not determine java version from '17'. But project is used java 11. Gradle ...
0
votes
1
answer
392
views
An internal error occurred during: "Repository registry initialization"
I'm alternating between a Mac mini or MBP.
I created a few spring projects and saved the workspace on my external drive SSD T5. Whenever launching SpringToolSuite from the SSD on either computer, I ...
0
votes
1
answer
54
views
Java Spring Boot: project saves images in the wrong path and not display images when opening with IDE Intellji
I have a project, my project is multiple module project like in the picture below, I used SpringToolSuite(STS) to code this project, recently I switched to Intellji so I opened this project with the ...
1
vote
2
answers
258
views
STS getting this while pull/fetch latest changes Couldn't lock local tracking ref for update
Getting this issue in spring tool suit while fetching/pull latest changes from remote branch. i don't have git bash on my local previously it was working fine right now i am getting below mention ...
0
votes
1
answer
216
views
Eclipse STS - Out of memory
TRYING TO EDIT AS SUGGESTED:
STS crashes continously, here is an exmple of the last logs in projects folder:
...
...
...
!ENTRY org.eclipse.ui 4 0 2021-10-31 08:41:50.924
!MESSAGE Unhandled event loop ...
0
votes
1
answer
1k
views
Java EE perspective in STS(Spring Tool Suite)
I'm using Spring Tool Suite(STS) and to run Java Servlets on Tomcat Server through STS I need Java EE perspective. But for me in list of perspectives in STS there is no Java EE perspective.
How do I ...
0
votes
1
answer
123
views
Understanding STS: Spring boot application works fine from STS but when gradle is used to build jar, the build fails
My spring boot application works fine when run from Spring Tool Suite. However at the time of project deployment when I use Gradle command to build jar file, I get compile error - with error message ...
0
votes
0
answers
39
views
STS not recognizing POM test scope dependency during spring-boot run
I have a spring boot application with liquibase dependency added to my pom.xml with test scope, this is to run liquibase only during mvn test phase. but in STS liquibase was added to classpath by ...
0
votes
2
answers
216
views
Split String value from single to multiple values to fetch data using WHERE IN SQL clause
I have a request parameter which can accept single or comma separated values using @RequestParam.
Can you help me to break down or split the String of comma separated values so that it can be used ...