GithubHelp home page GithubHelp logo

liuhui163 / springwebsockefortomcatlog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smile326/springwebsockefortomcatlog

0.0 2.0 0.0 997 KB

使用spring websocket实现将tomcat日志实时输出到web页面

HTML 6.03% Java 93.97%

springwebsockefortomcatlog's Introduction

springWebsockeForTomcatLog

相比于原始博客http://blog.csdn.net/smile326/article/details/52218264 文中的内容,主要作以下两点改变 1.为了在建立连接之后能够获取到上传的参数,用MyHandShake实现了HandshakeInterceptor接口,在beforeHandshake方法里面对上传参数进行了处理,所以后面才可以获取到。 2.session的容器,使用ConcurrentHashMap,保证线程的足够安全。

用一个简单的servlet类test,模拟接口,部署之后访问test,即可看到test接口中打印的内容出现在log.html的页面上

springwebsockefortomcatlog's People

Contributors

smile326 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.