wanghc
2023-03-07 c59d3777fea2e08731bc8b6c0fa7e32e5d3f6ded
docker
1 files added
2 files modified
41 ■■■■■ changed files
cmci-pfcs-gateway/pom.xml 24 ●●●●● patch | view | raw | blame | history
cmci-pfcs-gateway/src/main/docker/Dockerfile 11 ●●●●● patch | view | raw | blame | history
cmci-pfcs-gateway/src/main/java/com/jttech/pfcs/services/wsdl/S080030795.java 6 ●●●● patch | view | raw | blame | history
cmci-pfcs-gateway/pom.xml
@@ -81,6 +81,30 @@
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <!-- docker 镜像生成 -->
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>1.2.0</version>
                <configuration>
                    <!-- 镜像名 -->
                    <imageName>${project.artifactId}</imageName>
                    <!-- Dockerfile所在目录 -->
                    <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
                    <!-- 生成的jar文件 -->
                    <buildArgs>
                        <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
                    </buildArgs>
                    <!-- 复制jar到docker容器指定目录 -->
                    <resources>
                        <resource>
                            <targetPath>/</targetPath>
                            <directory>${project.build.directory}</directory>
                            <include>${project.build.finalName}.jar</include>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
            <!-- wsdl生成插件 生成了就不用了 这里注释掉 -->
<!--            <plugin>-->
<!--                <groupId>org.apache.cxf</groupId>-->
cmci-pfcs-gateway/src/main/docker/Dockerfile
New file
@@ -0,0 +1,11 @@
FROM java:8
MAINTAINER whc
WORKDIR /home
VOLUME /logs
RUN mkdir -p /hom/cmci
ADD cmci-pfcs-gateway.jar /home/cmci/cmci-pfcs-gateway.jar
EXPOSE 8400
ENTRYPOINT ["java","-server","-Xms128M","-Xmx512M","-Xss512k","-Duser.timezone=GMT+8","-jar", "/home/cmci/cmci-pfcs-gateway.jar"]
cmci-pfcs-gateway/src/main/java/com/jttech/pfcs/services/wsdl/S080030795.java
@@ -15,7 +15,7 @@
 *
 */
@WebServiceClient(name = "S080030795",
                  wsdlLocation = "file:/F:/idealwork/cmci-bank-pfcs/cmci-pfcs-gateway/src/main/resources/wsdl/DU93.wsdl",
                  wsdlLocation = "classpath:wsdl/DU93.wsdl",
                  targetNamespace = "http://esb.spdbbiz.com/services/S080030795/wsdl")
public class S080030795 extends Service {
@@ -26,11 +26,11 @@
    static {
        URL url = null;
        try {
            url = new URL("file:/F:/idealwork/cmci-bank-pfcs/cmci-pfcs-gateway/src/main/resources/wsdl/DU93.wsdl");
            url = new URL("classpath:wsdl/DU93.wsdl");
        } catch (MalformedURLException e) {
            java.util.logging.Logger.getLogger(S080030795.class.getName())
                .log(java.util.logging.Level.INFO,
                     "Can not initialize the default wsdl from {0}", "file:/F:/idealwork/cmci-bank-pfcs/cmci-pfcs-gateway/src/main/resources/wsdl/DU93.wsdl");
                     "Can not initialize the default wsdl from {0}", "classpath:wsdl/DU93.wsdl");
        }
        WSDL_LOCATION = url;
    }