change: starter-jetty不再添加jsp相关的jar

add: starter-jetty添加nutz-plugins-websocket
This commit is contained in:
Wendal Chen 2017-11-24 22:50:13 +08:00
parent 541dd0bfda
commit 9050bed926
2 changed files with 8 additions and 23 deletions

View File

@ -85,30 +85,15 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>apache-jsp</artifactId>
<version>9.4.7.v20170914</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-client</artifactId>
<version>9.4.7.v20170914</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>apache-jstl</artifactId>
<version>9.4.7.v20170914</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutz-plugins-websocket</artifactId>
<version>1.r.65-SNAPSHOT</version>
</dependency>
</dependencies>
</project>

View File

@ -3,12 +3,12 @@ package org.nutz.log.impl;
import org.nutz.log.Log;
import org.nutz.log.LogAdapter;
import org.nutz.plugin.Plugin;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.spi.LocationAwareLogger;
/**
* @author wendal
*
* 让Nutz的日志走Slf4j的API
*/
public class Slf4jLogAdapter implements LogAdapter, Plugin {
@ -18,7 +18,7 @@ public class Slf4jLogAdapter implements LogAdapter, Plugin {
public boolean canWork() {
try {
this.getLogger(getClass().getName()).info("Using Slf4jLogger");
Logger.class.getName();
return true;
} catch (Throwable e) {
e.printStackTrace();