正在显示
12 个修改的文件
包含
621 行增加
和
691 行删除
config/application.yml
0 → 100644
1 | +#上传文件的路径,要带斜杠 | ||
2 | +web: | ||
3 | + upload-path: upload/ | ||
4 | +server: | ||
5 | + port: 10001 | ||
6 | + servlet: | ||
7 | + context-path: ${SERVER_CONTEXTPATH:} | ||
8 | +spring: | ||
9 | + profiles: | ||
10 | + active: pro | ||
11 | + mvc: | ||
12 | + #静态资源,设置上传文件的访问, | ||
13 | + static-path-pattern: /** | ||
14 | + | ||
15 | + resources: | ||
16 | + static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path} | ||
17 | + | ||
18 | + application: | ||
19 | + name: changeManifestInfomation | ||
20 | + | ||
21 | + jackson: | ||
22 | + serialization: | ||
23 | + FAIL_ON_EMPTY_BEANS: false | ||
24 | + #springboot2.0之后会把Date类型字段自动给转成UTC字符串 如:1990-11-26T16:00:00.000+0000,如果想转成时间戳在application.properties配置文件增加以下配置 | ||
25 | + date-format: yyyy-MM-dd HH:mm:ss | ||
26 | + #时区必须要设置 | ||
27 | + time-zone: GMT+8 | ||
28 | + #ALWAYS的意思是即时属性为null,仍然也会输出这个key | ||
29 | + default-property-inclusion: always | ||
30 | + | ||
31 | + cloud: | ||
32 | + #eureka主机名,会在控制页面中显示 | ||
33 | + #DEV环境关闭注册。 | ||
34 | + features: | ||
35 | + enabled: true | ||
36 | + discovery: | ||
37 | + enabled: true | ||
38 | + service-registry: | ||
39 | + auto-registration: | ||
40 | + enabled: true | ||
41 | + | ||
42 | + datasource: | ||
43 | + type: com.alibaba.druid.pool.DruidDataSource | ||
44 | + #oracle | ||
45 | + driver-class-name: oracle.jdbc.OracleDriver | ||
46 | + url: jdbc:oracle:thin:@10.50.3.69:1521:CGODB | ||
47 | + username: CGONMS | ||
48 | + password: 1q2w3e4r | ||
49 | + #spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码 | ||
50 | +# url: jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8 | ||
51 | +# username: root | ||
52 | +# password: | ||
53 | +# driver-class-name: com.mysql.jdbc.Driver | ||
54 | + max-idle: 10 | ||
55 | + max-wait: 10000 | ||
56 | + min-idle: 5 | ||
57 | + initial-size: 5 | ||
58 | + #配置初始化大小/最小/最大 | ||
59 | + druid: | ||
60 | + initial-size: 1 | ||
61 | + min-idle: 1 | ||
62 | + max-active: 20 | ||
63 | + #获取连接等待超时时间 | ||
64 | + max-wait: 60000 | ||
65 | + #一个连接在池中最小生存的时间 | ||
66 | + min-evictable-idle-time-millis: 300000 | ||
67 | + #间隔多久进行一次检测,检测需要关闭的空闲连接 | ||
68 | + time-between-eviction-runs-millis: 60000 | ||
69 | + #mysql | ||
70 | +# validation-query: SELECT 1 FROM DUAL | ||
71 | + #oracle | ||
72 | + validation-query: SELECT 'x' FROM DUAL | ||
73 | + test-while-idle: true | ||
74 | + test-on-borrow: false | ||
75 | + test-on-return: false | ||
76 | + default-auto-commit: true | ||
77 | + | ||
78 | +eureka: | ||
79 | + instance: | ||
80 | + #eureka服务器页面中status的请求路径 | ||
81 | + status-page-url: http://${eureka.instance.hostname}:${server.port}/ | ||
82 | + prefer-ip-address: true | ||
83 | + instance-id: ${spring.cloud.client.ip-address}:${server.port} | ||
84 | + hostname: ${spring.cloud.client.ip-address} | ||
85 | + client: | ||
86 | + #eureka注册中心服务器地址 | ||
87 | + service-url: | ||
88 | + defaultZone: http://10.50.3.82:19527/eureka/ | ||
89 | + registry-fetch-interval-seconds: 30 | ||
90 | + lease-renewal-interval-in-seconds: 15 | ||
91 | + lease-expiration-duration-in-seconds: 45 | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | +mybatis: | ||
96 | + mapper-locations: classpath:mapping/*.xml | ||
97 | + type-aliases-package: com.tianbo.warehouse.model | ||
98 | +pagehelper: | ||
99 | + #auto-dialect: true | ||
100 | + #auto-runtime-dialect: true | ||
101 | + helper-dialect: oracle | ||
102 | + reasonable: true | ||
103 | + support-methods-arguments: true | ||
104 | + params: count=countSql | ||
105 | + | ||
106 | +#debug配置,debug或者为true的时候,logback才会记录和写入日志文件 | ||
107 | +trace: false | ||
108 | +debug: false | ||
109 | + | ||
110 | +logging: | ||
111 | + file: | ||
112 | + path: ./logs/ | ||
113 | + name: system.log | ||
114 | + config: config/logback-dev.xml | ||
115 | + #转移到logback配置文件中 | ||
116 | + #level: | ||
117 | + #org.apache.tomcat: info | ||
118 | + #com.tianbo.warehouse.dao: DEBUG | ||
119 | + #org.springframework.security: trace | ||
120 | + #日志配置,输出到文本, | ||
121 | +#Java Web Token 时效时间,单位秒 | ||
122 | +jwt: | ||
123 | + max-alive: 300 |
@@ -14,7 +14,7 @@ log4j.appender.stdout.layout.ConversionPattern=%d{MM-dd HH:mm:ss,SSSS}[%p] %m%n | @@ -14,7 +14,7 @@ log4j.appender.stdout.layout.ConversionPattern=%d{MM-dd HH:mm:ss,SSSS}[%p] %m%n | ||
14 | 14 | ||
15 | 15 | ||
16 | log4j.appender.fileout=org.apache.log4j.RollingFileAppender | 16 | log4j.appender.fileout=org.apache.log4j.RollingFileAppender |
17 | -log4j.appender.fileout.File=logs/imf.log | 17 | +log4j.appender.fileout.File=logs/sys.log |
18 | log4j.appender.fileout.MaxFileSize=50MB | 18 | log4j.appender.fileout.MaxFileSize=50MB |
19 | log4j.appender.fileout.MaxBackupIndex=10 | 19 | log4j.appender.fileout.MaxBackupIndex=10 |
20 | log4j.appender.fileout.layout=org.apache.log4j.PatternLayout | 20 | log4j.appender.fileout.layout=org.apache.log4j.PatternLayout |
config/logback-dev.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!--参考文档链接:https://blog.csdn.net/qq_34912478/article/details/80877132--> | ||
3 | +<!-- 日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL,如果设置为WARN,则低于WARN的信息都不会输出 --> | ||
4 | +<!-- scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true --> | ||
5 | +<!-- scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。当scan为true时,此属性生效。默认的时间间隔为1分钟。 --> | ||
6 | +<!-- debug:当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。 --> | ||
7 | +<configuration scan="true" scanPeriod="10 seconds"> | ||
8 | + | ||
9 | + <!--<include resource="org/springframework/boot/logging/logback/base.xml" />--> | ||
10 | + | ||
11 | + <contextName>logback</contextName> | ||
12 | + <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 --> | ||
13 | + <property name="log.path" value="./logs" /> | ||
14 | + | ||
15 | + <!-- 彩色日志 --> | ||
16 | + <!-- 彩色日志依赖的渲染类 --> | ||
17 | + <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" /> | ||
18 | + <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" /> | ||
19 | + <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" /> | ||
20 | + <!-- 彩色日志格式 --> | ||
21 | + <property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> | ||
22 | + | ||
23 | + | ||
24 | + <!--输出到控制台--> | ||
25 | + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | ||
26 | + <!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息--> | ||
27 | + <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
28 | + <level>trace</level> | ||
29 | + </filter> | ||
30 | + <encoder> | ||
31 | + <Pattern>${CONSOLE_LOG_PATTERN}</Pattern> | ||
32 | + <!-- 设置字符集 --> | ||
33 | + <charset>UTF-8</charset> | ||
34 | + </encoder> | ||
35 | + </appender> | ||
36 | + | ||
37 | + | ||
38 | + <!--输出到文件--> | ||
39 | + | ||
40 | + <!-- 时间滚动输出 level为 DEBUG 日志 --> | ||
41 | + <appender name="DEBUG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
42 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
43 | + <file>${log.path}/log_debug.log</file> | ||
44 | + <!--日志文件输出格式--> | ||
45 | + <encoder> | ||
46 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
47 | + <charset>UTF-8</charset> <!-- 设置字符集 --> | ||
48 | + </encoder> | ||
49 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
50 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
51 | + <!-- 日志归档 --> | ||
52 | + <fileNamePattern>${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
53 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
54 | + <maxFileSize>100MB</maxFileSize> | ||
55 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
56 | + <!--日志文件保留天数--> | ||
57 | + <maxHistory>15</maxHistory> | ||
58 | + </rollingPolicy> | ||
59 | + <!-- 此日志文件只记录debug级别的 --> | ||
60 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
61 | + <level>debug</level> | ||
62 | + <onMatch>ACCEPT</onMatch> | ||
63 | + <onMismatch>DENY</onMismatch> | ||
64 | + </filter> | ||
65 | + </appender> | ||
66 | + | ||
67 | + <!-- 时间滚动输出 level为 INFO 日志 --> | ||
68 | + <appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
69 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
70 | + <file>${log.path}/log_info.log</file> | ||
71 | + <!--日志文件输出格式--> | ||
72 | + <encoder> | ||
73 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
74 | + <charset>UTF-8</charset> | ||
75 | + </encoder> | ||
76 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
77 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
78 | + <!-- 每天日志归档路径以及格式 --> | ||
79 | + <fileNamePattern>${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
80 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
81 | + <maxFileSize>100MB</maxFileSize> | ||
82 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
83 | + <!--日志文件保留天数--> | ||
84 | + <maxHistory>15</maxHistory> | ||
85 | + </rollingPolicy> | ||
86 | + <!-- 此日志文件只记录info级别的 --> | ||
87 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
88 | + <level>info</level> | ||
89 | + <onMatch>ACCEPT</onMatch> | ||
90 | + <onMismatch>DENY</onMismatch> | ||
91 | + </filter> | ||
92 | + </appender> | ||
93 | + | ||
94 | + <!-- 时间滚动输出 level为 WARN 日志 --> | ||
95 | + <appender name="WARN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
96 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
97 | + <file>${log.path}/log_warn.log</file> | ||
98 | + <!--日志文件输出格式--> | ||
99 | + <encoder> | ||
100 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
101 | + <charset>UTF-8</charset> <!-- 此处设置字符集 --> | ||
102 | + </encoder> | ||
103 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
104 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
105 | + <fileNamePattern>${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
106 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
107 | + <maxFileSize>100MB</maxFileSize> | ||
108 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
109 | + <!--日志文件保留天数--> | ||
110 | + <maxHistory>15</maxHistory> | ||
111 | + </rollingPolicy> | ||
112 | + <!-- 此日志文件只记录warn级别的 --> | ||
113 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
114 | + <level>warn</level> | ||
115 | + <onMatch>ACCEPT</onMatch> | ||
116 | + <onMismatch>DENY</onMismatch> | ||
117 | + </filter> | ||
118 | + </appender> | ||
119 | + | ||
120 | + | ||
121 | + <!-- 时间滚动输出 level为 ERROR 日志 --> | ||
122 | + <appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
123 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
124 | + <file>${log.path}/log_error.log</file> | ||
125 | + <!--日志文件输出格式--> | ||
126 | + <encoder> | ||
127 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
128 | + <charset>UTF-8</charset> <!-- 此处设置字符集 --> | ||
129 | + </encoder> | ||
130 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
131 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
132 | + <fileNamePattern>${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
133 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
134 | + <maxFileSize>100MB</maxFileSize> | ||
135 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
136 | + <!--日志文件保留天数--> | ||
137 | + <maxHistory>15</maxHistory> | ||
138 | + </rollingPolicy> | ||
139 | + <!-- 此日志文件只记录ERROR级别的 --> | ||
140 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
141 | + <level>ERROR</level> | ||
142 | + <onMatch>ACCEPT</onMatch> | ||
143 | + <onMismatch>DENY</onMismatch> | ||
144 | + </filter> | ||
145 | + </appender> | ||
146 | + | ||
147 | + <!-- | ||
148 | + <logger>用来设置某一个包或者具体的某一个类的日志打印级别、 | ||
149 | + 以及指定<appender>。<logger>仅有一个name属性, | ||
150 | + 一个可选的level和一个可选的addtivity属性。 | ||
151 | + name:用来指定受此logger约束的某一个包或者具体的某一个类。 | ||
152 | + level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, | ||
153 | + 还有一个特俗值INHERITED或者同义词NULL,代表强制执行上级的级别。 | ||
154 | + 如果未设置此属性,那么当前logger将会继承上级的级别。 | ||
155 | + addtivity:是否向上级logger传递打印信息。默认是true。 | ||
156 | + --> | ||
157 | + <!--<logger name="org.springframework.web" level="info"/>--> | ||
158 | + <!--<logger name="org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor" level="INFO"/>--> | ||
159 | + <!-- | ||
160 | + 使用mybatis的时候,sql语句是debug下才会打印,而这里我们只配置了info,所以想要查看sql语句的话,有以下两种操作: | ||
161 | + 第一种把<root level="info">改成<root level="DEBUG">这样就会打印sql,不过这样日志那边会出现很多其他消息 | ||
162 | + 第二种就是单独给dao下目录配置debug模式,代码如下,这样配置sql语句会打印,其他还是正常info级别: | ||
163 | + --> | ||
164 | + | ||
165 | + | ||
166 | + <!-- | ||
167 | + root节点是必选节点,用来指定最基础的日志输出级别,只有一个level属性 | ||
168 | + level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, | ||
169 | + 不能设置为INHERITED或者同义词NULL。默认是DEBUG | ||
170 | + 可以包含零个或多个元素,标识这个appender将会添加到这个logger。 | ||
171 | + --> | ||
172 | + | ||
173 | + <!--开发环境:打印控制台--> | ||
174 | + <springProfile name="dev"> | ||
175 | + <logger name="org.springframework.boot" level="trace"/> | ||
176 | + <logger name="org.apache.tomcat" level="info" /> | ||
177 | + <logger name="com.tianbo.imfClient.dao" level="DEBUG" /> | ||
178 | + <root level="INFO"> | ||
179 | + <appender-ref ref="CONSOLE" /> | ||
180 | + <!--<appender-ref ref="DEBUG_FILE" />--> | ||
181 | + <!--<appender-ref ref="INFO_FILE" />--> | ||
182 | + <!--<appender-ref ref="WARN_FILE" />--> | ||
183 | + <appender-ref ref="ERROR_FILE" /> | ||
184 | + </root> | ||
185 | + </springProfile> | ||
186 | + | ||
187 | + <!--生产环境:输出到文件--> | ||
188 | + <springProfile name="pro"> | ||
189 | + <logger name="org.springframework.boot" level="trace"/> | ||
190 | + <logger name="com.tianbo.imfClient.dao" level="DEBUG" /> | ||
191 | + <root level="info"> | ||
192 | + <appender-ref ref="CONSOLE" /> | ||
193 | + <appender-ref ref="DEBUG_FILE" /> | ||
194 | + <appender-ref ref="INFO_FILE" /> | ||
195 | + <appender-ref ref="ERROR_FILE" /> | ||
196 | + <appender-ref ref="WARN_FILE" /> | ||
197 | + </root> | ||
198 | + </springProfile> | ||
199 | + | ||
200 | +</configuration> |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | <modelVersion>4.0.0</modelVersion> | 5 | <modelVersion>4.0.0</modelVersion> |
6 | - <packaging>pom</packaging> | 6 | + <packaging>jar</packaging> |
7 | <parent> | 7 | <parent> |
8 | <groupId>org.springframework.boot</groupId> | 8 | <groupId>org.springframework.boot</groupId> |
9 | <artifactId>spring-boot-starter-parent</artifactId> | 9 | <artifactId>spring-boot-starter-parent</artifactId> |
@@ -69,12 +69,12 @@ | @@ -69,12 +69,12 @@ | ||
69 | <artifactId>mybatis</artifactId> | 69 | <artifactId>mybatis</artifactId> |
70 | <version>3.4.6</version> | 70 | <version>3.4.6</version> |
71 | </dependency> | 71 | </dependency> |
72 | - <!-- mysql--> | ||
73 | - <dependency> | ||
74 | - <groupId>mysql</groupId> | ||
75 | - <artifactId>mysql-connector-java</artifactId> | ||
76 | - <version>8.0.15</version> | ||
77 | - </dependency> | 72 | + <!--<!– mysql–>--> |
73 | + <!--<dependency>--> | ||
74 | + <!--<groupId>mysql</groupId>--> | ||
75 | + <!--<artifactId>mysql-connector-java</artifactId>--> | ||
76 | + <!--<version>8.0.15</version>--> | ||
77 | + <!--</dependency>--> | ||
78 | <!-- oracle--> | 78 | <!-- oracle--> |
79 | <dependency> | 79 | <dependency> |
80 | <groupId>com.oracle</groupId> | 80 | <groupId>com.oracle</groupId> |
@@ -88,279 +88,279 @@ | @@ -88,279 +88,279 @@ | ||
88 | <version>1.0-SNAPSHOT</version> | 88 | <version>1.0-SNAPSHOT</version> |
89 | </dependency> | 89 | </dependency> |
90 | <!--util依赖--> | 90 | <!--util依赖--> |
91 | - <!--IMF需要的包--> | ||
92 | - <!-- https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans --> | ||
93 | - <dependency> | ||
94 | - <groupId>org.apache.xmlbeans</groupId> | ||
95 | - <artifactId>xmlbeans</artifactId> | ||
96 | - <version>2.4.0</version> | ||
97 | - </dependency> | ||
98 | - <!-- https://mvnrepository.com/artifact/org.apache.ws.commons.schema/XmlSchema --> | ||
99 | - <dependency> | ||
100 | - <groupId>org.apache.ws.commons.schema</groupId> | ||
101 | - <artifactId>XmlSchema</artifactId> | ||
102 | - <version>1.4.7</version> | ||
103 | - </dependency> | ||
104 | - <!-- https://mvnrepository.com/artifact/wsdl4j/wsdl4j --> | ||
105 | - <dependency> | ||
106 | - <groupId>wsdl4j</groupId> | ||
107 | - <artifactId>wsdl4j</artifactId> | ||
108 | - <version>1.6.2</version> | ||
109 | - </dependency> | ||
110 | - <!-- https://mvnrepository.com/artifact/org.apache.neethi/neethi --> | ||
111 | - <dependency> | ||
112 | - <groupId>org.apache.neethi</groupId> | ||
113 | - <artifactId>neethi</artifactId> | ||
114 | - <version>2.0.4</version> | ||
115 | - </dependency> | 91 | + <!--<!–IMF需要的包–>--> |
92 | + <!--<!– https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans –>--> | ||
93 | + <!--<dependency>--> | ||
94 | + <!--<groupId>org.apache.xmlbeans</groupId>--> | ||
95 | + <!--<artifactId>xmlbeans</artifactId>--> | ||
96 | + <!--<version>2.4.0</version>--> | ||
97 | + <!--</dependency>--> | ||
98 | + <!--<!– https://mvnrepository.com/artifact/org.apache.ws.commons.schema/XmlSchema –>--> | ||
99 | + <!--<dependency>--> | ||
100 | + <!--<groupId>org.apache.ws.commons.schema</groupId>--> | ||
101 | + <!--<artifactId>XmlSchema</artifactId>--> | ||
102 | + <!--<version>1.4.7</version>--> | ||
103 | + <!--</dependency>--> | ||
104 | + <!--<!– https://mvnrepository.com/artifact/wsdl4j/wsdl4j –>--> | ||
105 | + <!--<dependency>--> | ||
106 | + <!--<groupId>wsdl4j</groupId>--> | ||
107 | + <!--<artifactId>wsdl4j</artifactId>--> | ||
108 | + <!--<version>1.6.2</version>--> | ||
109 | + <!--</dependency>--> | ||
110 | + <!--<!– https://mvnrepository.com/artifact/org.apache.neethi/neethi –>--> | ||
111 | + <!--<dependency>--> | ||
112 | + <!--<groupId>org.apache.neethi</groupId>--> | ||
113 | + <!--<artifactId>neethi</artifactId>--> | ||
114 | + <!--<version>2.0.4</version>--> | ||
115 | + <!--</dependency>--> | ||
116 | 116 | ||
117 | 117 | ||
118 | 118 | ||
119 | - <!-- LOG --> | ||
120 | - <dependency> | ||
121 | - <groupId>log4j</groupId> | ||
122 | - <artifactId>log4j</artifactId> | ||
123 | - <version>1.2.16</version> | ||
124 | - </dependency> | ||
125 | - <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api --> | ||
126 | - <dependency> | ||
127 | - <groupId>org.slf4j</groupId> | ||
128 | - <artifactId>slf4j-api</artifactId> | ||
129 | - <version>1.6.1</version> | ||
130 | - </dependency> | ||
131 | - <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-jdk14 --> | ||
132 | - <dependency> | ||
133 | - <groupId>org.slf4j</groupId> | ||
134 | - <artifactId>slf4j-jdk14</artifactId> | ||
135 | - <version>1.6.1</version> | ||
136 | - <scope>test</scope> | ||
137 | - </dependency> | ||
138 | - <!-- https://mvnrepository.com/artifact/org.apache.cxf.xjcplugins/cxf-xjc-boolean --> | ||
139 | - <dependency> | ||
140 | - <groupId>org.apache.cxf.xjcplugins</groupId> | ||
141 | - <artifactId>cxf-xjc-boolean</artifactId> | ||
142 | - <version>3.2.3</version> | ||
143 | - </dependency> | ||
144 | - <!--添加本地IMF包--> | ||
145 | - <dependency> | ||
146 | - <groupId>com.caac</groupId> | ||
147 | - <artifactId>imf</artifactId> | ||
148 | - <version>1.0.0</version> | ||
149 | - <scope>system</scope> | ||
150 | - <systemPath>${project.basedir}/lib/IMFClient.1.0.0.jar</systemPath> | ||
151 | - </dependency> | ||
152 | - <dependency> | ||
153 | - <groupId>com.caac.imf</groupId> | ||
154 | - <artifactId>imfmessage</artifactId> | ||
155 | - <version>1.0.0</version> | ||
156 | - <scope>system</scope> | ||
157 | - <systemPath>${project.basedir}/lib/imfmsg.jar</systemPath> | ||
158 | - </dependency> | ||
159 | - <dependency> | ||
160 | - <groupId>com.caac.imf</groupId> | ||
161 | - <artifactId>process</artifactId> | ||
162 | - <version>1.0.0</version> | ||
163 | - <scope>system</scope> | ||
164 | - <systemPath>${project.basedir}/lib/ProcessService.jar</systemPath> | ||
165 | - </dependency> | ||
166 | - <dependency> | ||
167 | - <groupId>com.caac.imf</groupId> | ||
168 | - <artifactId>apiconfig</artifactId> | ||
169 | - <version>1.0.0</version> | ||
170 | - <scope>system</scope> | ||
171 | - <systemPath>${project.basedir}/lib/apiConfig.jar</systemPath> | ||
172 | - </dependency> | ||
173 | - <dependency> | ||
174 | - <groupId>com.caac.imf</groupId> | ||
175 | - <artifactId>upload</artifactId> | ||
176 | - <version>1.0.0</version> | ||
177 | - <scope>system</scope> | ||
178 | - <systemPath>${project.basedir}/lib/UploadService.jar</systemPath> | ||
179 | - </dependency> | ||
180 | - <dependency> | ||
181 | - <groupId>com.caac.imf</groupId> | ||
182 | - <artifactId>heartbeat</artifactId> | ||
183 | - <version>1.0.0</version> | ||
184 | - <scope>system</scope> | ||
185 | - <systemPath>${project.basedir}/lib/HeartbeatService.jar</systemPath> | ||
186 | - </dependency> | ||
187 | - <dependency> | ||
188 | - <groupId>com.caac.imf</groupId> | ||
189 | - <artifactId>returnxml</artifactId> | ||
190 | - <version>1.0.0</version> | ||
191 | - <scope>system</scope> | ||
192 | - <systemPath>${project.basedir}/lib/returnXml.jar</systemPath> | ||
193 | - </dependency> | ||
194 | - <!-- https://mvnrepository.com/artifact/org.hyperic/sigar --> | ||
195 | - <dependency> | ||
196 | - <groupId>org.hyperic</groupId> | ||
197 | - <artifactId>sigar</artifactId> | ||
198 | - <version>1.6.4</version> | ||
199 | - <scope>system</scope> | ||
200 | - <systemPath>${project.basedir}/lib/sigar.jar</systemPath> | ||
201 | - </dependency> | ||
202 | - <dependency> | ||
203 | - <groupId>org.apache</groupId> | ||
204 | - <artifactId>cxf</artifactId> | ||
205 | - <version>2.3.2</version> | ||
206 | - <scope>system</scope> | ||
207 | - <systemPath>${project.basedir}/lib/cxf-2.3.2.jar</systemPath> | ||
208 | - </dependency> | ||
209 | - <dependency> | ||
210 | - <groupId>org.apache.cxf</groupId> | ||
211 | - <artifactId>xjc</artifactId> | ||
212 | - <version>2.3.2</version> | ||
213 | - <scope>system</scope> | ||
214 | - <systemPath>${project.basedir}/lib/cxf-xjc-bug671-2.3.2.jar</systemPath> | ||
215 | - </dependency> | ||
216 | - <dependency> | ||
217 | - <groupId>maven.org.apache</groupId> | ||
218 | - <artifactId>cxf</artifactId> | ||
219 | - <version>2.0</version> | ||
220 | - <scope>system</scope> | ||
221 | - <systemPath>${project.basedir}/lib/cxf-manifest.jar</systemPath> | ||
222 | - </dependency> | ||
223 | - <dependency> | ||
224 | - <groupId>org.apache.cxf.xjc</groupId> | ||
225 | - <artifactId>dv</artifactId> | ||
226 | - <version>2.3.2</version> | ||
227 | - <scope>system</scope> | ||
228 | - <systemPath>${project.basedir}/lib/cxf-xjc-dv-2.3.2.jar</systemPath> | ||
229 | - </dependency> | ||
230 | - <dependency> | ||
231 | - <groupId>org.apache.cxf.xjc</groupId> | ||
232 | - <artifactId>ts</artifactId> | ||
233 | - <version>2.3.2</version> | ||
234 | - <scope>system</scope> | ||
235 | - <systemPath>${project.basedir}/lib/cxf-xjc-ts-2.3.2.jar</systemPath> | ||
236 | - </dependency> | ||
237 | - <dependency> | ||
238 | - <groupId>org.apache.xml</groupId> | ||
239 | - <artifactId>xmlsec</artifactId> | ||
240 | - <version>1.4.4</version> | ||
241 | - <scope>system</scope> | ||
242 | - <systemPath>${project.basedir}/lib/xmlsec-1.4.4.jar</systemPath> | ||
243 | - </dependency> | ||
244 | - <dependency> | ||
245 | - <groupId>com.ibm.disthub2.impl</groupId> | ||
246 | - <artifactId>cl3e</artifactId> | ||
247 | - <version>1.0.0</version> | ||
248 | - <scope>system</scope> | ||
249 | - <systemPath>${project.basedir}/lib/CL3Export.jar</systemPath> | ||
250 | - </dependency> | ||
251 | - <dependency> | ||
252 | - <groupId>com.ibm.disthub2.impl</groupId> | ||
253 | - <artifactId>cl3ne</artifactId> | ||
254 | - <version>1.0.0</version> | ||
255 | - <scope>system</scope> | ||
256 | - <systemPath>${project.basedir}/lib/CL3Nonexport.jar</systemPath> | ||
257 | - </dependency> | ||
258 | - <dependency> | ||
259 | - <groupId>com.ibm.mq</groupId> | ||
260 | - <artifactId>axis2</artifactId> | ||
261 | - <version>1.0.0</version> | ||
262 | - <scope>system</scope> | ||
263 | - <systemPath>${project.basedir}/lib/com.ibm.mq.axis2.jar</systemPath> | ||
264 | - </dependency> | ||
265 | - <dependency> | ||
266 | - <groupId>com.ibm.mq</groupId> | ||
267 | - <artifactId>commonservices</artifactId> | ||
268 | - <version>1.0.0</version> | ||
269 | - <scope>system</scope> | ||
270 | - <systemPath>${project.basedir}/lib/com.ibm.mq.commonservices.jar</systemPath> | ||
271 | - </dependency> | ||
272 | - <dependency> | ||
273 | - <groupId>com.ibm.mq</groupId> | ||
274 | - <artifactId>defaultconfig</artifactId> | ||
275 | - <version>1.0.0</version> | ||
276 | - <scope>system</scope> | ||
277 | - <systemPath>${project.basedir}/lib/com.ibm.mq.defaultconfig.jar</systemPath> | ||
278 | - </dependency> | ||
279 | - <dependency> | ||
280 | - <groupId>com.ibm.mq</groupId> | ||
281 | - <artifactId>fta</artifactId> | ||
282 | - <version>1.0.0</version> | ||
283 | - <scope>system</scope> | ||
284 | - <systemPath>${project.basedir}/lib/com.ibm.mq.fta.jar</systemPath> | ||
285 | - </dependency> | ||
286 | - <dependency> | ||
287 | - <groupId>com.ibm.mq</groupId> | ||
288 | - <artifactId>headers</artifactId> | ||
289 | - <version>1.0.0</version> | ||
290 | - <scope>system</scope> | ||
291 | - <systemPath>${project.basedir}/lib/com.ibm.mq.headers.jar</systemPath> | ||
292 | - </dependency> | ||
293 | - <dependency> | ||
294 | - <groupId>com.ibm</groupId> | ||
295 | - <artifactId>mq</artifactId> | ||
296 | - <version>1.0.0</version> | ||
297 | - <scope>system</scope> | ||
298 | - <systemPath>${project.basedir}/lib/com.ibm.mq.jar</systemPath> | ||
299 | - </dependency> | ||
300 | - <dependency> | ||
301 | - <groupId>com.ibm</groupId> | ||
302 | - <artifactId>jmqi</artifactId> | ||
303 | - <version>1.0.0</version> | ||
304 | - <scope>system</scope> | ||
305 | - <systemPath>${project.basedir}/lib/com.ibm.mq.jmqi.jar</systemPath> | ||
306 | - </dependency> | ||
307 | - <dependency> | ||
308 | - <groupId>com.ibm.mq</groupId> | ||
309 | - <artifactId>jms.nojndi</artifactId> | ||
310 | - <version>1.0.0</version> | ||
311 | - <scope>system</scope> | ||
312 | - <systemPath>${project.basedir}/lib/com.ibm.mq.jms.Nojndi.jar</systemPath> | ||
313 | - </dependency> | ||
314 | - <dependency> | ||
315 | - <groupId>com.ibm.mq</groupId> | ||
316 | - <artifactId>pcf</artifactId> | ||
317 | - <version>1.0.0</version> | ||
318 | - <scope>system</scope> | ||
319 | - <systemPath>${project.basedir}/lib/com.ibm.mq.pcf.jar</systemPath> | ||
320 | - </dependency> | ||
321 | - <dependency> | ||
322 | - <groupId>com.ibm.mq</groupId> | ||
323 | - <artifactId>postcard</artifactId> | ||
324 | - <version>1.0.0</version> | ||
325 | - <scope>system</scope> | ||
326 | - <systemPath>${project.basedir}/lib/com.ibm.mq.postcard.jar</systemPath> | ||
327 | - </dependency> | ||
328 | - <dependency> | ||
329 | - <groupId>com.ibm.mq</groupId> | ||
330 | - <artifactId>soap</artifactId> | ||
331 | - <version>1.0.0</version> | ||
332 | - <scope>system</scope> | ||
333 | - <systemPath>${project.basedir}/lib/com.ibm.mq.soap.jar</systemPath> | ||
334 | - </dependency> | ||
335 | - <dependency> | ||
336 | - <groupId>com.ibm.mq</groupId> | ||
337 | - <artifactId>tools.ras</artifactId> | ||
338 | - <version>1.0.0</version> | ||
339 | - <scope>system</scope> | ||
340 | - <systemPath>${project.basedir}/lib/com.ibm.mq.tools.ras.jar</systemPath> | ||
341 | - </dependency> | ||
342 | - <dependency> | ||
343 | - <groupId>com.ibm.mq</groupId> | ||
344 | - <artifactId>etclient</artifactId> | ||
345 | - <version>1.0.0</version> | ||
346 | - <scope>system</scope> | ||
347 | - <systemPath>${project.basedir}/lib/com.ibm.mqetclient.jar</systemPath> | ||
348 | - </dependency> | ||
349 | - <dependency> | ||
350 | - <groupId>com.ibm</groupId> | ||
351 | - <artifactId>mqjms</artifactId> | ||
352 | - <version>1.0.0</version> | ||
353 | - <scope>system</scope> | ||
354 | - <systemPath>${project.basedir}/lib/com.ibm.mqjms.jar</systemPath> | ||
355 | - <!-- https://mvnrepository.com/artifact/javax.resource/connector --> | ||
356 | - </dependency> | ||
357 | - <dependency> | ||
358 | - <groupId>javax.resource</groupId> | ||
359 | - <artifactId>connector</artifactId> | ||
360 | - <version>1.0</version> | ||
361 | - <scope>system</scope> | ||
362 | - <systemPath>${project.basedir}/lib/connector.jar</systemPath> | ||
363 | - </dependency> | 119 | + <!--<!– LOG –>--> |
120 | + <!--<dependency>--> | ||
121 | + <!--<groupId>log4j</groupId>--> | ||
122 | + <!--<artifactId>log4j</artifactId>--> | ||
123 | + <!--<version>1.2.16</version>--> | ||
124 | + <!--</dependency>--> | ||
125 | + <!--<!– https://mvnrepository.com/artifact/org.slf4j/slf4j-api –>--> | ||
126 | + <!--<dependency>--> | ||
127 | + <!--<groupId>org.slf4j</groupId>--> | ||
128 | + <!--<artifactId>slf4j-api</artifactId>--> | ||
129 | + <!--<version>1.6.1</version>--> | ||
130 | + <!--</dependency>--> | ||
131 | + <!--<!– https://mvnrepository.com/artifact/org.slf4j/slf4j-jdk14 –>--> | ||
132 | + <!--<dependency>--> | ||
133 | + <!--<groupId>org.slf4j</groupId>--> | ||
134 | + <!--<artifactId>slf4j-jdk14</artifactId>--> | ||
135 | + <!--<version>1.6.1</version>--> | ||
136 | + <!--<scope>test</scope>--> | ||
137 | + <!--</dependency>--> | ||
138 | + <!--<!– https://mvnrepository.com/artifact/org.apache.cxf.xjcplugins/cxf-xjc-boolean –>--> | ||
139 | + <!--<dependency>--> | ||
140 | + <!--<groupId>org.apache.cxf.xjcplugins</groupId>--> | ||
141 | + <!--<artifactId>cxf-xjc-boolean</artifactId>--> | ||
142 | + <!--<version>3.2.3</version>--> | ||
143 | + <!--</dependency>--> | ||
144 | + <!--<!–添加本地IMF包–>--> | ||
145 | + <!--<dependency>--> | ||
146 | + <!--<groupId>com.caac</groupId>--> | ||
147 | + <!--<artifactId>imf</artifactId>--> | ||
148 | + <!--<version>1.0.0</version>--> | ||
149 | + <!--<scope>system</scope>--> | ||
150 | + <!--<systemPath>${project.basedir}/lib/IMFClient.1.0.0.jar</systemPath>--> | ||
151 | + <!--</dependency>--> | ||
152 | + <!--<dependency>--> | ||
153 | + <!--<groupId>com.caac.imf</groupId>--> | ||
154 | + <!--<artifactId>imfmessage</artifactId>--> | ||
155 | + <!--<version>1.0.0</version>--> | ||
156 | + <!--<scope>system</scope>--> | ||
157 | + <!--<systemPath>${project.basedir}/lib/imfmsg.jar</systemPath>--> | ||
158 | + <!--</dependency>--> | ||
159 | + <!--<dependency>--> | ||
160 | + <!--<groupId>com.caac.imf</groupId>--> | ||
161 | + <!--<artifactId>process</artifactId>--> | ||
162 | + <!--<version>1.0.0</version>--> | ||
163 | + <!--<scope>system</scope>--> | ||
164 | + <!--<systemPath>${project.basedir}/lib/ProcessService.jar</systemPath>--> | ||
165 | + <!--</dependency>--> | ||
166 | + <!--<dependency>--> | ||
167 | + <!--<groupId>com.caac.imf</groupId>--> | ||
168 | + <!--<artifactId>apiconfig</artifactId>--> | ||
169 | + <!--<version>1.0.0</version>--> | ||
170 | + <!--<scope>system</scope>--> | ||
171 | + <!--<systemPath>${project.basedir}/lib/apiConfig.jar</systemPath>--> | ||
172 | + <!--</dependency>--> | ||
173 | + <!--<dependency>--> | ||
174 | + <!--<groupId>com.caac.imf</groupId>--> | ||
175 | + <!--<artifactId>upload</artifactId>--> | ||
176 | + <!--<version>1.0.0</version>--> | ||
177 | + <!--<scope>system</scope>--> | ||
178 | + <!--<systemPath>${project.basedir}/lib/UploadService.jar</systemPath>--> | ||
179 | + <!--</dependency>--> | ||
180 | + <!--<dependency>--> | ||
181 | + <!--<groupId>com.caac.imf</groupId>--> | ||
182 | + <!--<artifactId>heartbeat</artifactId>--> | ||
183 | + <!--<version>1.0.0</version>--> | ||
184 | + <!--<scope>system</scope>--> | ||
185 | + <!--<systemPath>${project.basedir}/lib/HeartbeatService.jar</systemPath>--> | ||
186 | + <!--</dependency>--> | ||
187 | + <!--<dependency>--> | ||
188 | + <!--<groupId>com.caac.imf</groupId>--> | ||
189 | + <!--<artifactId>returnxml</artifactId>--> | ||
190 | + <!--<version>1.0.0</version>--> | ||
191 | + <!--<scope>system</scope>--> | ||
192 | + <!--<systemPath>${project.basedir}/lib/returnXml.jar</systemPath>--> | ||
193 | + <!--</dependency>--> | ||
194 | + <!--<!– https://mvnrepository.com/artifact/org.hyperic/sigar –>--> | ||
195 | + <!--<dependency>--> | ||
196 | + <!--<groupId>org.hyperic</groupId>--> | ||
197 | + <!--<artifactId>sigar</artifactId>--> | ||
198 | + <!--<version>1.6.4</version>--> | ||
199 | + <!--<scope>system</scope>--> | ||
200 | + <!--<systemPath>${project.basedir}/lib/sigar.jar</systemPath>--> | ||
201 | + <!--</dependency>--> | ||
202 | + <!--<dependency>--> | ||
203 | + <!--<groupId>org.apache</groupId>--> | ||
204 | + <!--<artifactId>cxf</artifactId>--> | ||
205 | + <!--<version>2.3.2</version>--> | ||
206 | + <!--<scope>system</scope>--> | ||
207 | + <!--<systemPath>${project.basedir}/lib/cxf-2.3.2.jar</systemPath>--> | ||
208 | + <!--</dependency>--> | ||
209 | + <!--<dependency>--> | ||
210 | + <!--<groupId>org.apache.cxf</groupId>--> | ||
211 | + <!--<artifactId>xjc</artifactId>--> | ||
212 | + <!--<version>2.3.2</version>--> | ||
213 | + <!--<scope>system</scope>--> | ||
214 | + <!--<systemPath>${project.basedir}/lib/cxf-xjc-bug671-2.3.2.jar</systemPath>--> | ||
215 | + <!--</dependency>--> | ||
216 | + <!--<dependency>--> | ||
217 | + <!--<groupId>maven.org.apache</groupId>--> | ||
218 | + <!--<artifactId>cxf</artifactId>--> | ||
219 | + <!--<version>2.0</version>--> | ||
220 | + <!--<scope>system</scope>--> | ||
221 | + <!--<systemPath>${project.basedir}/lib/cxf-manifest.jar</systemPath>--> | ||
222 | + <!--</dependency>--> | ||
223 | + <!--<dependency>--> | ||
224 | + <!--<groupId>org.apache.cxf.xjc</groupId>--> | ||
225 | + <!--<artifactId>dv</artifactId>--> | ||
226 | + <!--<version>2.3.2</version>--> | ||
227 | + <!--<scope>system</scope>--> | ||
228 | + <!--<systemPath>${project.basedir}/lib/cxf-xjc-dv-2.3.2.jar</systemPath>--> | ||
229 | + <!--</dependency>--> | ||
230 | + <!--<dependency>--> | ||
231 | + <!--<groupId>org.apache.cxf.xjc</groupId>--> | ||
232 | + <!--<artifactId>ts</artifactId>--> | ||
233 | + <!--<version>2.3.2</version>--> | ||
234 | + <!--<scope>system</scope>--> | ||
235 | + <!--<systemPath>${project.basedir}/lib/cxf-xjc-ts-2.3.2.jar</systemPath>--> | ||
236 | + <!--</dependency>--> | ||
237 | + <!--<dependency>--> | ||
238 | + <!--<groupId>org.apache.xml</groupId>--> | ||
239 | + <!--<artifactId>xmlsec</artifactId>--> | ||
240 | + <!--<version>1.4.4</version>--> | ||
241 | + <!--<scope>system</scope>--> | ||
242 | + <!--<systemPath>${project.basedir}/lib/xmlsec-1.4.4.jar</systemPath>--> | ||
243 | + <!--</dependency>--> | ||
244 | + <!--<dependency>--> | ||
245 | + <!--<groupId>com.ibm.disthub2.impl</groupId>--> | ||
246 | + <!--<artifactId>cl3e</artifactId>--> | ||
247 | + <!--<version>1.0.0</version>--> | ||
248 | + <!--<scope>system</scope>--> | ||
249 | + <!--<systemPath>${project.basedir}/lib/CL3Export.jar</systemPath>--> | ||
250 | + <!--</dependency>--> | ||
251 | + <!--<dependency>--> | ||
252 | + <!--<groupId>com.ibm.disthub2.impl</groupId>--> | ||
253 | + <!--<artifactId>cl3ne</artifactId>--> | ||
254 | + <!--<version>1.0.0</version>--> | ||
255 | + <!--<scope>system</scope>--> | ||
256 | + <!--<systemPath>${project.basedir}/lib/CL3Nonexport.jar</systemPath>--> | ||
257 | + <!--</dependency>--> | ||
258 | + <!--<dependency>--> | ||
259 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
260 | + <!--<artifactId>axis2</artifactId>--> | ||
261 | + <!--<version>1.0.0</version>--> | ||
262 | + <!--<scope>system</scope>--> | ||
263 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.axis2.jar</systemPath>--> | ||
264 | + <!--</dependency>--> | ||
265 | + <!--<dependency>--> | ||
266 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
267 | + <!--<artifactId>commonservices</artifactId>--> | ||
268 | + <!--<version>1.0.0</version>--> | ||
269 | + <!--<scope>system</scope>--> | ||
270 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.commonservices.jar</systemPath>--> | ||
271 | + <!--</dependency>--> | ||
272 | + <!--<dependency>--> | ||
273 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
274 | + <!--<artifactId>defaultconfig</artifactId>--> | ||
275 | + <!--<version>1.0.0</version>--> | ||
276 | + <!--<scope>system</scope>--> | ||
277 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.defaultconfig.jar</systemPath>--> | ||
278 | + <!--</dependency>--> | ||
279 | + <!--<dependency>--> | ||
280 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
281 | + <!--<artifactId>fta</artifactId>--> | ||
282 | + <!--<version>1.0.0</version>--> | ||
283 | + <!--<scope>system</scope>--> | ||
284 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.fta.jar</systemPath>--> | ||
285 | + <!--</dependency>--> | ||
286 | + <!--<dependency>--> | ||
287 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
288 | + <!--<artifactId>headers</artifactId>--> | ||
289 | + <!--<version>1.0.0</version>--> | ||
290 | + <!--<scope>system</scope>--> | ||
291 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.headers.jar</systemPath>--> | ||
292 | + <!--</dependency>--> | ||
293 | + <!--<dependency>--> | ||
294 | + <!--<groupId>com.ibm</groupId>--> | ||
295 | + <!--<artifactId>mq</artifactId>--> | ||
296 | + <!--<version>1.0.0</version>--> | ||
297 | + <!--<scope>system</scope>--> | ||
298 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.jar</systemPath>--> | ||
299 | + <!--</dependency>--> | ||
300 | + <!--<dependency>--> | ||
301 | + <!--<groupId>com.ibm</groupId>--> | ||
302 | + <!--<artifactId>jmqi</artifactId>--> | ||
303 | + <!--<version>1.0.0</version>--> | ||
304 | + <!--<scope>system</scope>--> | ||
305 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.jmqi.jar</systemPath>--> | ||
306 | + <!--</dependency>--> | ||
307 | + <!--<dependency>--> | ||
308 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
309 | + <!--<artifactId>jms.nojndi</artifactId>--> | ||
310 | + <!--<version>1.0.0</version>--> | ||
311 | + <!--<scope>system</scope>--> | ||
312 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.jms.Nojndi.jar</systemPath>--> | ||
313 | + <!--</dependency>--> | ||
314 | + <!--<dependency>--> | ||
315 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
316 | + <!--<artifactId>pcf</artifactId>--> | ||
317 | + <!--<version>1.0.0</version>--> | ||
318 | + <!--<scope>system</scope>--> | ||
319 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.pcf.jar</systemPath>--> | ||
320 | + <!--</dependency>--> | ||
321 | + <!--<dependency>--> | ||
322 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
323 | + <!--<artifactId>postcard</artifactId>--> | ||
324 | + <!--<version>1.0.0</version>--> | ||
325 | + <!--<scope>system</scope>--> | ||
326 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.postcard.jar</systemPath>--> | ||
327 | + <!--</dependency>--> | ||
328 | + <!--<dependency>--> | ||
329 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
330 | + <!--<artifactId>soap</artifactId>--> | ||
331 | + <!--<version>1.0.0</version>--> | ||
332 | + <!--<scope>system</scope>--> | ||
333 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.soap.jar</systemPath>--> | ||
334 | + <!--</dependency>--> | ||
335 | + <!--<dependency>--> | ||
336 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
337 | + <!--<artifactId>tools.ras</artifactId>--> | ||
338 | + <!--<version>1.0.0</version>--> | ||
339 | + <!--<scope>system</scope>--> | ||
340 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mq.tools.ras.jar</systemPath>--> | ||
341 | + <!--</dependency>--> | ||
342 | + <!--<dependency>--> | ||
343 | + <!--<groupId>com.ibm.mq</groupId>--> | ||
344 | + <!--<artifactId>etclient</artifactId>--> | ||
345 | + <!--<version>1.0.0</version>--> | ||
346 | + <!--<scope>system</scope>--> | ||
347 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mqetclient.jar</systemPath>--> | ||
348 | + <!--</dependency>--> | ||
349 | + <!--<dependency>--> | ||
350 | + <!--<groupId>com.ibm</groupId>--> | ||
351 | + <!--<artifactId>mqjms</artifactId>--> | ||
352 | + <!--<version>1.0.0</version>--> | ||
353 | + <!--<scope>system</scope>--> | ||
354 | + <!--<systemPath>${project.basedir}/lib/com.ibm.mqjms.jar</systemPath>--> | ||
355 | + <!--<!– https://mvnrepository.com/artifact/javax.resource/connector –>--> | ||
356 | + <!--</dependency>--> | ||
357 | + <!--<dependency>--> | ||
358 | + <!--<groupId>javax.resource</groupId>--> | ||
359 | + <!--<artifactId>connector</artifactId>--> | ||
360 | + <!--<version>1.0</version>--> | ||
361 | + <!--<scope>system</scope>--> | ||
362 | + <!--<systemPath>${project.basedir}/lib/connector.jar</systemPath>--> | ||
363 | + <!--</dependency>--> | ||
364 | </dependencies> | 364 | </dependencies> |
365 | 365 | ||
366 | <dependencyManagement> | 366 | <dependencyManagement> |
@@ -17,7 +17,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; | @@ -17,7 +17,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; | ||
17 | import org.springframework.web.client.RestTemplate; | 17 | import org.springframework.web.client.RestTemplate; |
18 | 18 | ||
19 | @SpringBootApplication | 19 | @SpringBootApplication |
20 | -@EnableScheduling | 20 | +//@EnableScheduling |
21 | @EnableDiscoveryClient | 21 | @EnableDiscoveryClient |
22 | @EnableTransactionManagement | 22 | @EnableTransactionManagement |
23 | @MapperScan("com.tianbo.imfClient.dao") | 23 | @MapperScan("com.tianbo.imfClient.dao") |
1 | +package com.tianbo.imfClient.controller; | ||
2 | + | ||
3 | +import org.springframework.stereotype.Controller; | ||
4 | +import org.springframework.web.bind.annotation.GetMapping; | ||
5 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
6 | + | ||
7 | +@Controller | ||
8 | +public class IndexController { | ||
9 | + | ||
10 | + @RequestMapping("/") | ||
11 | + public String index(){ | ||
12 | + return "index"; | ||
13 | + } | ||
14 | +} |
@@ -5,7 +5,6 @@ import com.tianbo.imfClient.service.T_ETL_MESSAGEService; | @@ -5,7 +5,6 @@ import com.tianbo.imfClient.service.T_ETL_MESSAGEService; | ||
5 | import com.tianbo.util.Date.DateUtil; | 5 | import com.tianbo.util.Date.DateUtil; |
6 | import com.tianbo.util.IO.FileTool; | 6 | import com.tianbo.util.IO.FileTool; |
7 | import com.tianbo.util.XML.XML2ENTITY; | 7 | import com.tianbo.util.XML.XML2ENTITY; |
8 | -import org.apache.log4j.Logger; | ||
9 | import org.dom4j.Document; | 8 | import org.dom4j.Document; |
10 | import org.dom4j.DocumentHelper; | 9 | import org.dom4j.DocumentHelper; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 10 | import org.springframework.beans.factory.annotation.Autowired; |
@@ -26,7 +25,6 @@ public class IMFSaveHandle { | @@ -26,7 +25,6 @@ public class IMFSaveHandle { | ||
26 | 25 | ||
27 | private static IMFSaveHandle saveHandle; | 26 | private static IMFSaveHandle saveHandle; |
28 | 27 | ||
29 | - protected static final Logger logger = Logger.getLogger(IMFSaveHandle.class); | ||
30 | 28 | ||
31 | @PostConstruct | 29 | @PostConstruct |
32 | public void init(){ | 30 | public void init(){ |
@@ -98,9 +96,6 @@ public class IMFSaveHandle { | @@ -98,9 +96,6 @@ public class IMFSaveHandle { | ||
98 | }catch (Exception e){ | 96 | }catch (Exception e){ |
99 | FileTool.writeFile("err",e.toString()+"\n"+xmlmessage,false); | 97 | FileTool.writeFile("err",e.toString()+"\n"+xmlmessage,false); |
100 | FileTool.writeFile("errxml",xmlmessage,false); | 98 | FileTool.writeFile("errxml",xmlmessage,false); |
101 | - logger.warn("*报文入库失败已存储成备份文件*"); | ||
102 | - logger.error(e); | ||
103 | - logger.warn(e); | ||
104 | } | 99 | } |
105 | 100 | ||
106 | 101 |
1 | -package com.tianbo.imfClient.schedul; | ||
2 | - | ||
3 | -import com.caac.imf.api.IMFClient; | ||
4 | -import org.apache.log4j.Logger; | ||
5 | -import org.springframework.beans.factory.annotation.Autowired; | ||
6 | -import org.springframework.boot.web.client.RestTemplateBuilder; | ||
7 | -import org.springframework.stereotype.Component; | ||
8 | -import org.springframework.web.client.RestOperations; | ||
9 | - | ||
10 | -@Component | ||
11 | -public class IMF_Reader extends Thread{ | ||
12 | - protected static final Logger logger = Logger.getLogger(IMF_Reader.class); | ||
13 | - public static boolean isrunning; | ||
14 | - protected IMF_Reader imf_reader; | ||
15 | - | ||
16 | - | ||
17 | - @Autowired | ||
18 | - private RestOperations restTemplate; | ||
19 | - | ||
20 | - | ||
21 | - @Override | ||
22 | - public void run() { | ||
23 | - try{ | ||
24 | - isrunning =true; | ||
25 | - while(true) { | ||
26 | - IMFClient client = IMF_Task.client; | ||
27 | - if (null==restTemplate){ | ||
28 | - RestTemplateBuilder builder = new RestTemplateBuilder(); | ||
29 | - restTemplate = builder.build(); | ||
30 | - } | ||
31 | - if (IMF_Task.LOGIN_OK) { | ||
32 | - String message = client.getMSG(); | ||
33 | - if (message != null) { | ||
34 | - //调用spring cloud 其他服务接口处理 | ||
35 | - restTemplate.put("http://fimsagentserver/msgAgent",message); | ||
36 | -// IMFSaveHandle imfSaveHandle = new IMFSaveHandle(); | ||
37 | -// imfSaveHandle.handle(message); | ||
38 | - } | ||
39 | - | ||
40 | - } else { | ||
41 | - //logger.info("***"); | ||
42 | - } | ||
43 | - | ||
44 | - try { | ||
45 | - Thread.sleep(500L); | ||
46 | - } catch (InterruptedException var3) { | ||
47 | - var3.printStackTrace(); | ||
48 | - | ||
49 | - } | ||
50 | - } | ||
51 | - | ||
52 | - }catch (Exception e){ | ||
53 | - e.printStackTrace(); | ||
54 | - } | ||
55 | - isrunning=false; | ||
56 | - logger.info("****************读取线程不在了****************"); | ||
57 | - } | ||
58 | -} |
1 | -package com.tianbo.imfClient.schedul; | ||
2 | - | ||
3 | -import com.caac.imf.api.IMFClient; | ||
4 | -import com.tianbo.util.Date.DateUtil; | ||
5 | -import com.tianbo.util.IO.FileTool; | ||
6 | -import com.tianbo.util.XML.MakeImfMeta; | ||
7 | -import org.apache.commons.io.FileUtils; | ||
8 | -import org.apache.log4j.Logger; | ||
9 | - | ||
10 | -import java.io.File; | ||
11 | -import java.util.Iterator; | ||
12 | -import java.util.List; | ||
13 | - | ||
14 | -public class IMF_Sender extends Thread{ | ||
15 | - | ||
16 | - protected static final Logger logger = Logger.getLogger(IMF_Sender.class); | ||
17 | - public static boolean isrunning; | ||
18 | - private IMFClient client; | ||
19 | - private String content; | ||
20 | - | ||
21 | - public IMF_Sender(IMFClient client) { | ||
22 | - this.client = client; | ||
23 | - } | ||
24 | - public IMF_Sender(IMFClient client, String content) { | ||
25 | - this.client = client; | ||
26 | - this.content = content; | ||
27 | - } | ||
28 | - | ||
29 | - @Override | ||
30 | - public void run(){ | ||
31 | - | ||
32 | - String sendDir = FileTool.readProperties("readDirectory"); | ||
33 | - String SNDR = FileTool.readProperties("loginname"); | ||
34 | - String TYPE = FileTool.readProperties("TYPE"); | ||
35 | - String STYP = FileTool.readProperties("STYP"); | ||
36 | - String RCVR = FileTool.readProperties("RCVR"); | ||
37 | - String DDTM = DateUtil.getDDTM(); | ||
38 | - String SEQN = DDTM; | ||
39 | - | ||
40 | - if (this.client == null) { | ||
41 | - logger.info("IMFClient has been closed"); | ||
42 | - return; | ||
43 | - } | ||
44 | - isrunning=true; | ||
45 | - if(IMF_Task.isSuc){ | ||
46 | - if(IMF_Task.LOGIN_OK){ | ||
47 | - while (true){ | ||
48 | - //发送报文 | ||
49 | - List<File> files = FileTool.readDirectoryFiles(new File(sendDir)); | ||
50 | - String sendMsg = ""; | ||
51 | - Iterator<File> it = files.iterator(); | ||
52 | - while(it.hasNext()){ | ||
53 | - File file = it.next(); | ||
54 | - try { | ||
55 | - sendMsg = MakeImfMeta.makeImfDocument(SNDR,RCVR,TYPE,STYP,DDTM,SEQN,file); | ||
56 | - String returnMsg = this.client.sendMSG(sendMsg); | ||
57 | - if(returnMsg.indexOf("<CODE>9</CODE>")>=0){ | ||
58 | - FileUtils.forceDelete(file); | ||
59 | - } | ||
60 | - }catch (Exception e){ | ||
61 | - e.printStackTrace(); | ||
62 | - } | ||
63 | - } | ||
64 | - | ||
65 | - try { | ||
66 | - Thread.sleep(500L); | ||
67 | - } catch (InterruptedException var3) { | ||
68 | - var3.printStackTrace(); | ||
69 | - } | ||
70 | - } | ||
71 | - }else{ | ||
72 | - logger.info("<<<<<<<<<<<登陆中>>>>>>>>>>>>"); | ||
73 | - } | ||
74 | - } | ||
75 | - | ||
76 | - | ||
77 | - | ||
78 | - isrunning=false; | ||
79 | - logger.info("<<<<<<<<<<<发送线程结束>>>>>>>>>>>>"); | ||
80 | - } | ||
81 | - | ||
82 | - public String getContent() { | ||
83 | - return content; | ||
84 | - } | ||
85 | - | ||
86 | - public void setContent(String content) { | ||
87 | - this.content = content; | ||
88 | - } | ||
89 | -} |
1 | -package com.tianbo.imfClient.schedul; | ||
2 | - | ||
3 | -import com.caac.imf.api.IMFClient; | ||
4 | -import com.caac.imf.api.IMFClientFactory; | ||
5 | -import com.tianbo.util.IO.FileTool; | ||
6 | -import org.apache.log4j.Logger; | ||
7 | -import org.apache.log4j.PropertyConfigurator; | ||
8 | -import org.springframework.beans.factory.annotation.Autowired; | ||
9 | -import org.springframework.scheduling.annotation.Scheduled; | ||
10 | -import org.springframework.stereotype.Component; | ||
11 | -import org.springframework.web.client.RestOperations; | ||
12 | - | ||
13 | -import java.text.SimpleDateFormat; | ||
14 | - | ||
15 | -@Component | ||
16 | -public class IMF_Task { | ||
17 | - protected static final Logger logger = Logger.getLogger(IMF_Task.class); | ||
18 | - private static final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | ||
19 | - public static boolean LOGIN_OK = false; | ||
20 | - public static boolean isSuc = true; | ||
21 | - public static IMFClient client = null; | ||
22 | - public static String loginname; | ||
23 | - public static String loginpass; | ||
24 | - public static String isNeedSend = "N"; | ||
25 | - | ||
26 | - @Autowired | ||
27 | - private RestOperations restTemplate; | ||
28 | - | ||
29 | - | ||
30 | -// @Scheduled(fixedRate = 5000) | ||
31 | - public void start() throws Exception { | ||
32 | - PropertyConfigurator.configure("config/log4j.properties"); | ||
33 | - client = IMFClientFactory.createInstance(); | ||
34 | - loginname= FileTool.readProperties("loginname"); | ||
35 | - loginpass= FileTool.readProperties("loginpass"); | ||
36 | - isNeedSend= FileTool.readProperties("isNeedSend"); | ||
37 | - | ||
38 | - logger.info(restTemplate); | ||
39 | - restTemplate.put("http://fimsagentserver/msgAgent","<MSG>\n" + | ||
40 | - "\t<META>\n" + | ||
41 | - "\t\t<SNDR>FIMS</SNDR>\n" + | ||
42 | - "\t\t<RCVR/>\n" + | ||
43 | - "\t\t<SEQN>315756</SEQN>\n" + | ||
44 | - "\t\t<DDTM>20190401020521</DDTM>\n" + | ||
45 | - "\t\t<TYPE>DFOE</TYPE>\n" + | ||
46 | - "\t\t<STYP>DFDL</STYP>\n" + | ||
47 | - "\t</META>" + | ||
48 | - "</MSG>"); | ||
49 | - | ||
50 | - //登录 | ||
51 | - if (!LOGIN_OK) { | ||
52 | - loginIMF(client, loginname, loginpass, "config/imf_config.properties"); | ||
53 | - } | ||
54 | - | ||
55 | - //启动读取线程 | ||
56 | - if (client != null) { | ||
57 | - IMF_Reader reader = new IMF_Reader(); | ||
58 | - | ||
59 | - if (!IMF_Reader.isrunning) { | ||
60 | - reader.start(); | ||
61 | - logger.info("*********读取线程已开启***********"); | ||
62 | - } else { | ||
63 | - // logger.info("*********读取线程已开启-不再启动线程*********"); | ||
64 | - } | ||
65 | - | ||
66 | - if("Y".equals(isNeedSend)){ | ||
67 | - IMF_Sender kako_sender = new IMF_Sender(client); | ||
68 | - if(!IMF_Sender.isrunning) { | ||
69 | - kako_sender.start(); | ||
70 | - } | ||
71 | - } | ||
72 | - | ||
73 | - } | ||
74 | - | ||
75 | - } | ||
76 | - | ||
77 | - /** | ||
78 | - * 对外部调用提供的的发送接口 | ||
79 | - * @param msg | ||
80 | - */ | ||
81 | - public void sendMsg(String msg){ | ||
82 | - if (!msg.equals(null) && !msg.isEmpty()){ | ||
83 | - if(LOGIN_OK && null!=client && isSuc){ | ||
84 | - IMF_Sender sender = new IMF_Sender(client,msg); | ||
85 | - sender.setContent(msg); | ||
86 | - sender.start(); | ||
87 | - } | ||
88 | - | ||
89 | - } | ||
90 | - | ||
91 | - } | ||
92 | - | ||
93 | - /** | ||
94 | - * 登录流程 | ||
95 | - * @param client 客户端实例 | ||
96 | - * @param userName 登录账号 | ||
97 | - * @param password 登录密码 | ||
98 | - * @param confFileName IMF服务器信息配置文件路径 | ||
99 | - */ | ||
100 | - private static void loginIMF(IMFClient client, String userName, String password, String confFileName) { | ||
101 | - if (client.initial(confFileName)) { | ||
102 | - String message = client.login(userName, password); | ||
103 | - logger.info("message=" + message); | ||
104 | - if (message.indexOf("<CODE>1</CODE>") > 0) { | ||
105 | - logger.info("登陆成功"); | ||
106 | - LOGIN_OK = true; | ||
107 | - } else { | ||
108 | - int times = 0; | ||
109 | - | ||
110 | - while(times <= 3) { | ||
111 | - logger.info("try connection..."); | ||
112 | - ++times; | ||
113 | - logger.info("message.=" + message); | ||
114 | - if (message.indexOf("<CODE>1</CODE>") > 0) { | ||
115 | - logger.info("登陆成功"); | ||
116 | - LOGIN_OK = true; | ||
117 | - break; | ||
118 | - } | ||
119 | - | ||
120 | - logger.info("登录失败~~~~"); | ||
121 | - message = client.login(userName, password); | ||
122 | - | ||
123 | - try { | ||
124 | - Thread.sleep(4000L); | ||
125 | - } catch (InterruptedException var7) { | ||
126 | - var7.printStackTrace(); | ||
127 | - } | ||
128 | - } | ||
129 | - | ||
130 | - if (!LOGIN_OK) { | ||
131 | - logger.info("多次尝试登录失败,退出登陆"); | ||
132 | - client.disconnect(); | ||
133 | - isSuc =false; | ||
134 | - System.exit(-1); | ||
135 | - } | ||
136 | - } | ||
137 | - } | ||
138 | - | ||
139 | - } | ||
140 | - | ||
141 | -} |
1 | - | ||
2 | -#服务端口 | ||
3 | -server.port=8001 | ||
4 | -server.servlet.context-path=${SERVER_CONTEXTPATH:} | ||
5 | - | ||
6 | -#静态资源,设置上传文件的访问,上传文件的路径,要带斜杠 | ||
7 | -web.upload-path=upload/ | ||
8 | -#表示所有的访问经过静态资源路径 | ||
9 | -springboot.mvc.static-path-pattern=/** | ||
10 | -spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,classpath:/templates/,file:${web.upload-path} | ||
11 | - | ||
12 | -#springcloud 基本配置 | ||
13 | - | ||
14 | -#eureka主机名,会在控制页面中显示 | ||
15 | -spring.cloud.features.enabled=false | ||
16 | -spring.cloud.discovery.enabled=false | ||
17 | -spring.cloud.service-registry.auto-registration.enabled=false | ||
18 | -eureka.instance.hostname=${spring.cloud.client.ip-address} | ||
19 | -#eureka服务器页面中status的请求路径 | ||
20 | -eureka.instance.status-page-url=http://${eureka.instance.hostname}:${server.port}/index | ||
21 | - | ||
22 | -#eureka注册中心服务器地址 | ||
23 | -eureka.client.service-url.defaultZone=http://127.0.0.1:19527/eureka/ | ||
24 | -eureka.instance.prefer-ip-address=true | ||
25 | -eureka.instance.instance-id=${spring.cloud.client.ip-address}:${server.port} | ||
26 | -eureka.client.registry-fetch-interval-seconds=30 | ||
27 | -eureka.instance.lease-renewal-interval-in-seconds=15 | ||
28 | -eureka.instance.lease-expiration-duration-in-seconds=45 | ||
29 | - | ||
30 | -#服务名 | ||
31 | -spring.application.name=changeManifestInfomation | ||
32 | - | ||
33 | -spring.jackson.serialization.fail-on-empty-beans=false | ||
34 | - | ||
35 | -#springboot2.0之后会把Date类型字段自动给转成UTC字符串 如:1990-11-26T16:00:00.000+0000,如果想转成时间戳在application.properties配置文件增加以下配置 | ||
36 | -#jackson相关配置 | ||
37 | -spring.jackson.date-format = yyyy-MM-dd HH:mm:ss | ||
38 | -spring.jackson.serialization.write-dates-as-timestamps=false | ||
39 | -#时区必须要设置 | ||
40 | -spring.jackson.time-zone=GMT+8 | ||
41 | -#ALWAYS的意思是即时属性为null,仍然也会输出这个key | ||
42 | -spring.jackson.default-property-inclusion=always | ||
43 | - | ||
44 | -spring.mvc.view.suffix=.html | ||
45 | - | ||
46 | -#spring.datasource oracle | ||
47 | -spring.datasource.type=com.alibaba.druid.pool.DruidDataSource | ||
48 | -spring.datasource.driver-class-name=oracle.jdbc.OracleDriver | ||
49 | -spring.datasource.url=jdbc:oracle:thin:@218.28.199.134:8004:CGODB | ||
50 | -spring.datasource.username=CGONMS | ||
51 | -spring.datasource.password=1q2w3e4r | ||
52 | - | ||
53 | -#spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码 | ||
54 | -#spring.datasource.url=jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8 | ||
55 | -#spring.datasource.username=root | ||
56 | -#spring.datasource.password= | ||
57 | -#spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
58 | -spring.datasource.max-idle=10 | ||
59 | -spring.datasource.max-wait=10000 | ||
60 | -spring.datasource.min-idle=5 | ||
61 | -spring.datasource.initial-size=5 | ||
62 | - | ||
63 | -#配置初始化大小/最小/最大 | ||
64 | -spring.datasource.druid.initial-size=1 | ||
65 | -spring.datasource.druid.min-idle=1 | ||
66 | -spring.datasource.druid.max-active=20 | ||
67 | -#获取连接等待超时时间 | ||
68 | -spring.datasource.druid.max-wait=60000 | ||
69 | -#一个连接在池中最小生存的时间 | ||
70 | -spring.datasource.druid.min-evictable-idle-time-millis=300000 | ||
71 | -#间隔多久进行一次检测,检测需要关闭的空闲连接 | ||
72 | -spring.datasource.druid.time-between-eviction-runs-millis=60000 | ||
73 | -#oracle | ||
74 | -spring.datasource.druid.validation-query=SELECT 'x' FROM DUAL | ||
75 | -#mysql | ||
76 | -#spring.datasource.druid.validation-query=SELECT 1 FROM DUAL | ||
77 | -spring.datasource.druid.test-while-idle=true | ||
78 | -spring.datasource.druid.test-on-borrow=false | ||
79 | -spring.datasource.druid.test-on-return=false | ||
80 | -spring.datasource.druid.default-auto-commit=true | ||
81 | - | ||
82 | - | ||
83 | - | ||
84 | -mybatis.mapper-locations=classpath:mapping/*.xml | ||
85 | -mybatis.type-aliases-package=com.tianbo.imfClient.model | ||
86 | - | ||
87 | - | ||
88 | - | ||
89 | -pagehelper.helper-dialect=oracle | ||
90 | -#pagehelper.auto-dialect=true | ||
91 | -#pagehelper.auto-runtime-dialect=true | ||
92 | -pagehelper.reasonable=true | ||
93 | -pagehelper.support-methods-arguments=true | ||
94 | -pagehelper.params=count=countSql | ||
95 | - | ||
96 | -#debug配置 | ||
97 | -trace=false | ||
98 | -debug=true | ||
99 | -logging.level.org.apache.tomcat=info | ||
100 | -logging.level.com.tianbo.imfClient.dao=DEBUG | ||
101 | - |
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | -<html xmlns:th="http://www.thymeleaf.org"> | 2 | +<html lang="en"> |
3 | <head> | 3 | <head> |
4 | - <meta content="text/html;charset=UTF-8"/> | 4 | + <meta charset="UTF-8"> |
5 | <title>登录页面</title> | 5 | <title>登录页面</title> |
6 | - <link rel="stylesheet" th:href="@{css/bootstrap.min.css}"/> | ||
7 | <style type="text/css"> | 6 | <style type="text/css"> |
8 | body { | 7 | body { |
9 | padding-top: 50px; | 8 | padding-top: 50px; |
9 | + color: #ffffff; | ||
10 | } | 10 | } |
11 | .starter-template { | 11 | .starter-template { |
12 | padding: 40px 15px; | 12 | padding: 40px 15px; |
13 | text-align: center; | 13 | text-align: center; |
14 | } | 14 | } |
15 | </style> | 15 | </style> |
16 | + <link rel="stylesheet" href="/css/style.css"> | ||
16 | </head> | 17 | </head> |
17 | <body> | 18 | <body> |
18 | - | ||
19 | -<nav class="navbar navbar-inverse navbar-fixed-top"> | ||
20 | - <div class="container"> | ||
21 | - <div class="navbar-header"> | ||
22 | - <a class="navbar-brand" href="#">Spring Security演示</a> | ||
23 | - </div> | ||
24 | - <div id="navbar" class="collapse navbar-collapse"> | ||
25 | - <ul class="nav navbar-nav"> | ||
26 | - <li><a th:href="@{/}"> 首页 </a></li> | ||
27 | - | ||
28 | - </ul> | ||
29 | - </div><!--/.nav-collapse --> | ||
30 | - </div> | ||
31 | -</nav> | ||
32 | <div class="container"> | 19 | <div class="container"> |
33 | - welcom | 20 | + 新舱单信息舱单信息修改服务 |
34 | </div> | 21 | </div> |
35 | </body> | 22 | </body> |
36 | </html> | 23 | </html> |
-
请 注册 或 登录 后发表评论