spring-tool-suite

Spring Boot Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test

这一生的挚爱 提交于 2019-12-13 06:31:31
问题 I am using Eclipse Version: 2018-09 (4.9.0) and i have installed the Spring Tool Suit(STS) in eclipse for building Spring Boot Applications. Question -> When ever I create new Spring Starter Project and try to maven build my project without any code addition. Build fails with below Error. [WARNING] The requested profile "pom.xml" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project

How do I move my src/main/webapp/WEB-INF/views folder out of src/main/webapp/?

不羁岁月 提交于 2019-12-13 05:22:16
问题 I have a folder in Spring MVC src/main/webapp/WEB-INF/views that contains my view templates. I want to move it to src/main/java/views (or some other folder outside of src/main/webapp ). How do I configure that in Spring MVC? I see a file src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml that contains <beans:property name="prefix" value="/WEB-INF/views/" /> It's obvious from looking at that that I can change it to <beans:property name="prefix" value="/views/" /> which would put my

Unable to download/import package org.springframework.cloud.config.server.EnableConfigServer

怎甘沉沦 提交于 2019-12-13 03:40:00
问题 I'm new to spring-cloud concepts and had followed each and every step of spring cloud document provided by spring.io https://spring.io/guides/gs/centralized-configuration/ weird thing is when I do clt+space on spring-cloud- in my STS, I don't see any option to add spring-cloud-starter-config dependency in pom.xml file, as a result I couldn't able to import the package org.springframework.cloud.config.server.EnableConfigServer in my class file. I'm not understanding what would be the reason

classpath container for Grails in STS

非 Y 不嫁゛ 提交于 2019-12-12 15:03:30
问题 I have a problem with STS on Grails Dependencies. There is one entry, which is pointing to wrong directory. Internal STS build fails due to an error: Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". java.lang.NullPointerException at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNodeBuilder.toRawType(JDTClassNodeBuilder.java:116) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNodeBuilder.configureParameterizedType(JDTClassNodeBuilder.java:290)

Spring boot , pom.xml

左心房为你撑大大i 提交于 2019-12-12 02:57:30
问题 I am a spring new bee, trying to import gs-rest-service-complete into my STS , I am able to import but getting compilation error in pom.xml Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.2.3.RELEASE from/to spring-releases (https://repo.spring.io/libs-release): Connection refused: connect and 'parent.relativePath' points at wrong local POM " Here's my pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns

Spring Integration graph of Spring Tool Suite not showing “int-file:tail-inbound-channel-adapter” graphic

人盡茶涼 提交于 2019-12-12 01:48:01
问题 I'm currently using Spring Tool Suite (STS) (Version: 3.6.3.CI-B2266066, Build Id: 201411050946, Platform: Eclipse Luna SR1 (4.4.1)) with Spring Integration 4.1.0. I have a Spring configuration XML file that includes the "integration" and "integration/file" namespaces. I've added a "int-file:tail-inbound-channel-adapter" to the config file. When I go into the integration-graph tab however I'm not seeing the icon/graphic for that component. Sample config file: <?xml version="1.0" encoding="UTF

How to use JNDI with the tc server and postgresql in STS? (Unable to create initial connections of pool.)

核能气质少年 提交于 2019-12-11 22:13:50
问题 I want to use JPA/JNDI, as my experience with Netbeans and Glassfish has been that I could configure database settings at the server and so I'd be able to publish to different servers without changing anything in the code or configuration. I don't really get what's wrong and paste my configuration here in the hope that you can help me with some advice. I successfully tried to get a database connection with this persistence unit: <persistence-unit name="primefaces-showcase" transaction-type=

How do I send data between two jsp?

自作多情 提交于 2019-12-11 15:09:00
问题 I want to send the identificator of a product to the shoppingcard page and then display the product on the shoppingcart page I used both request.set attribute and session.setattribute and it doesn't work. If I use session.getattribute or request.getattribute.toString() the page is white nothing is displayed. If I only use request.getAttribute (without toString) the line "ok" is not displayed on the result which means that purchased is null. ProductStore is a map containing the products we

STS Boot dashboard doesn't show the starting port port

∥☆過路亽.° 提交于 2019-12-11 14:30:57
问题 I've just started to use Boot Dashboard to manage all my Spring Boot application (Boot Dashboard). The problem is that I can't see the starting port of my applications: The applications start without any problem: Started Application in 4.337 seconds (JVM running for 4.953) I'm using STS 3.7.1, Spring Boot 1.2.6.RELEASE and java 1.8. Why Boot Dashboard doesn't show me the starting port of my applications? 回答1: This particular feature is supported with Spring Boot 1.3.0 . http://docs.spring.io

Spring Boot tools suite start error

寵の児 提交于 2019-12-11 11:33:04
问题 I was using intellij for spring boot but I decided to use suite tools for spring's suggestion. I downloaded and run it in Ubuntu. Started a hello world project but there are lots of errors. Could not load the Tomcat server configuration at /Servers/Pivotal tc Server Developer Edition v3.1-config. The configuration may be corrupt or incomplete. Resource is out of sync with the file system: '/Servers/Pivotal tc Server Developer Edition v3.1-config/catalina.properties'. I did not change anything