Does IntelliJ have an internal web server to serve static content of a web application?

前端 未结 7 2545
悲&欢浪女
悲&欢浪女 2021-02-19 16:28

Right now, the directory of my module is defined as an IIS virtual directory and IIS serves the files.

I was wondering whether IntelliJ has an internal web server, whic

7条回答
  •  灰色年华
    2021-02-19 17:09

    A built-in HTTP preview server will be part of Intellij IDEA 13 and is already available in the EAP: http://youtrack.jetbrains.com/issue/WEB-7148

    "All existing actions — preview in browser (pop-up over html file or menu action or shortcut), open in browser and create/debug html file action now open file on built-in web server http://localhost:63342//"

    In other words, right-click on an HTML page and select "Debug" or "Open in browser", and IDEA 13+ will serve up that page via port 63342.

提交回复
热议问题