1、本机安装tomcat7
2、在tomcat/conf/context.xml最后添加 <Loader delegate="true" />
3、执行命令keytool -genkey -alias tomcat -keyalg RSA,生成~/.keystore文件
4、在tomcat/conf/server.xml中添加
<Connector SSLEnabled="true" acceptCount="100" clientAuth="false"
disableUploadTimeout="true" enableLookups="false" maxThreads="25"
port="8443" keystoreFile="/home/zhaoqiangwei/.keystore" keystorePass="password"
protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https"
secure="true" sslProtocol="TLS" />
5、在idea中添加tomcat配置,注意要填写两个标签页(server和deployment),在server标签页配置好tomcat服务器,在deployment标签页,点击加号,选择artifact,然后选择hightlight_springmvc4:war exploded,点击确定。
点击启动tomcat就可以启动调试了
网友评论