maven jetty https配置
参考链接:
http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin#Quick_Start:_Get_Up_and_Running
http://blog.csdn.net/bolg_hero/article/details/50424665
http://blog.csdn.net/tomato__/article/details/37927813
http://jingyan.baidu.com/article/d3b74d64f07e101f77e60906.html
https://my.oschina.net/cokolin/blog/409164
http://www.cnblogs.com/zhuyoufeng/p/3707448.html
环境
IDEA 2016
jetty 8
生成keystore
由于在tomcat配置https时已经做了这样的操作。
地址:
配置pox.xml
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.16.v20140903</version>
<configuration>
<stopPort>9966</stopPort>
<stopKey>foo</stopKey>
<scanIntervalSeconds>5</scanIntervalSeconds>
<webApp>
<contextPath>/</contextPath>
</webApp>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>8080</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
<connector implementation="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
<port>8443</port>
<password>123456</password>
<keystore> D:/tomcat.keystore</keystore>
</connector>
</connectors>
</configuration>
</plugin>
启动
jetty:run
在浏览器输入:
在浏览器输入: