2017-02-17 82 views
0

我正在使用STS 3.8.3。當我試圖運行示例GS-REST的服務,最初使用Spring啓動應用程序的選擇,我沒有得到在控制檯中的任何輸出,除了以下:無法從STS運行gs-rest-service-initial

任何一個可以請建議它在哪兒走錯了:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
SLF4J: Defaulting to no-operation (NOP) logger implementation 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 

    . ____   _   __ _ _ 
/\\/___'_ __ _ _(_)_ __ __ _ \ \ \ \ 
(()\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 
\\/ ___)| |_)| | | | | || (_| | )))) 
    ' |____| .__|_| |_|_| |_\__, |//// 
=========|_|==============|___/=/_/_/_/ 
:: Spring Boot ::  (v1.5.1.RELEASE) 

[2017-02-17 12:54:07.073] - 12600 WARN [main] --- org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator: HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported 
[2017-02-17 12:54:07.195] - 12600 WARN [main] --- org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator: HV000184: ParameterMessageInterpolator has been chosen, EL interpolation will not be supported 
+0

請提供一些代碼。從Application.java開始,解釋什麼是STS以及如何包含它。 – aholbreich

回答

0

在你的類路徑中添加slf4j-simple jar。

<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple --> 
<dependency> 
    <groupId>org.slf4j</groupId> 
    <artifactId>slf4j-simple</artifactId> 
    <version>1.7.22</version> 
</dependency> 
+0

謝謝,不僅slf4j,我不得不添加幾個不同的罐子。基本上我試圖解決所有的警告,並開始工作:-) – NewBee