小编yyy*_*yyy的帖子

Maven Tomcat插件上的SSL配置

我正在尝试开发Wicket应用程序.它的登录页面必须使用SSL打开.所以我做了一些编码.但我找不到为SSL配置maven tomcat 7插件.我正确创建了密钥库文件.使用keytool -genkey -alias tomcat -keyalg RSA命令它位于windows上的用户目录中.密码是密码.

这就是我在pom.xml中定义tomcat的方法:

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.0-beta-1</version>
    <executions>
        <execution>
            <id>tomcat-run</id>
            <goals>
                <goal>exec-war-only</goal>
            </goals>
            <phase>package</phase>
            <configuration>
                <path>foo</path>
                <!-- optional only if you want to use a preconfigured server.xml file -->
                <serverXml>src/main/tomcatconf/server.xml</serverXml>
                <!-- optional values which can be configurable -->
                <attachArtifactClassifier>
                                    default value is exec-war but you can   customize
                                </attachArtifactClassifier>
                <attachArtifactClassifierType>
                                      default value is jar
                                </attachArtifactClassifierType>
                <httpsPort>8443</httpsPort>
                <keystoreFile>${user.home}/.keystore</keystoreFile>
                <keystorePass>password</keystorePass>
                <protocol>org.apache.coyote.http11.Http11AprProtocol</protocol>
            </configuration>
        </execution>
    </executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)

ssl tomcat7 maven-tomcat-plugin

15
推荐指数
2
解决办法
1万
查看次数

RegEx检查数字中的数字是否全部相同或按顺序排列

我想检查用户在服务器端的输入.如果用户输入的数字111111或22222具有相同的数字,并且输入的顺序如12345或456789.

java regex

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

java ×1

maven-tomcat-plugin ×1

regex ×1

ssl ×1

tomcat7 ×1