更新类名
This commit is contained in:
@@ -13,10 +13,9 @@ import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
|
|||||||
* @author Elias
|
* @author Elias
|
||||||
* @since 2021-09-28 16:12
|
* @since 2021-09-28 16:12
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@Data
|
||||||
@Configuration
|
@Configuration
|
||||||
@ConfigurationProperties(prefix = "document")
|
@ConfigurationProperties(prefix = "document")
|
||||||
@Data
|
|
||||||
public class DocumentConfig {
|
public class DocumentConfig {
|
||||||
|
|
||||||
private String docToProgram;
|
private String docToProgram;
|
||||||
@@ -26,6 +25,7 @@ public class DocumentConfig {
|
|||||||
*
|
*
|
||||||
* @return httpinvoker
|
* @return httpinvoker
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Bean(name = "/document-service")
|
@Bean(name = "/document-service")
|
||||||
HttpInvokerServiceExporter wordService(DocumentService documentService) {
|
HttpInvokerServiceExporter wordService(DocumentService documentService) {
|
||||||
HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();
|
HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
<artifactId>document-server</artifactId>
|
<artifactId>document-server</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>jod-document-server</artifactId>
|
<artifactId>jodconverter-document-server</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
<name>Jod Document Server</name>
|
<name>JodConverter Document Server</name>
|
||||||
<description>Jod 文档操作服务</description>
|
<description>JodConverter 文档操作服务</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jodconverter.version>4.4.9</jodconverter.version>
|
<jodconverter.version>4.4.9</jodconverter.version>
|
||||||
@@ -4,10 +4,10 @@ import org.springframework.boot.SpringApplication;
|
|||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class JodDocumentServer {
|
public class JodConverterDocumentServer {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(JodDocumentServer.class, args);
|
SpringApplication.run(JodConverterDocumentServer.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
package com.optima.document.server.config;
|
package com.optima.document.server.config;
|
||||||
|
|
||||||
import com.optima.document.api.DocumentService;
|
import com.optima.document.api.DocumentService;
|
||||||
import lombok.Data;
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
|
import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
|
||||||
@@ -13,16 +11,14 @@ import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
|
|||||||
* @author Elias
|
* @author Elias
|
||||||
* @since 2021-09-28 16:12
|
* @since 2021-09-28 16:12
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@ConfigurationProperties(prefix = "document")
|
|
||||||
@Data
|
|
||||||
public class DocumentConfig {
|
public class DocumentConfig {
|
||||||
/**
|
/**
|
||||||
* 文档接口
|
* 文档接口
|
||||||
*
|
*
|
||||||
* @return httpinvoker
|
* @return httpinvoker
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Bean(name = "/document-service")
|
@Bean(name = "/document-service")
|
||||||
HttpInvokerServiceExporter wordService(DocumentService documentService) {
|
HttpInvokerServiceExporter wordService(DocumentService documentService) {
|
||||||
HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();
|
HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
port: 9005
|
port: 9004
|
||||||
|
|
||||||
jodconverter:
|
jodconverter:
|
||||||
local:
|
local:
|
||||||
@@ -13,7 +13,7 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@Disabled
|
@Disabled
|
||||||
public class JodDocumentServerTest {
|
public class JodConverterDocumentServerTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test() throws IOException {
|
public void test() throws IOException {
|
||||||
@@ -33,7 +33,7 @@ public class JodDocumentServerTest {
|
|||||||
private static DocumentService buildDocumentService() {
|
private static DocumentService buildDocumentService() {
|
||||||
// 创建客户端代理
|
// 创建客户端代理
|
||||||
HttpInvokerProxyFactoryBean factoryBean = new HttpInvokerProxyFactoryBean();
|
HttpInvokerProxyFactoryBean factoryBean = new HttpInvokerProxyFactoryBean();
|
||||||
factoryBean.setServiceUrl("http://10.211.55.13:9005/document-service");
|
factoryBean.setServiceUrl("http://127.0.0.1:9005/document-service");
|
||||||
factoryBean.setServiceInterface(DocumentService.class);
|
factoryBean.setServiceInterface(DocumentService.class);
|
||||||
factoryBean.afterPropertiesSet();
|
factoryBean.afterPropertiesSet();
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<description>文档操作模块</description>
|
<description>文档操作模块</description>
|
||||||
<modules>
|
<modules>
|
||||||
<module>docto-document-server</module>
|
<module>docto-document-server</module>
|
||||||
<module>jod-document-server</module>
|
<module>jodconverter-document-server</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
Reference in New Issue
Block a user