更新类名

This commit is contained in:
2025-07-01 11:55:53 +08:00
parent a4c4994759
commit b76d116f68
9 changed files with 12 additions and 16 deletions

View File

@@ -13,10 +13,9 @@ import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
* @author Elias
* @since 2021-09-28 16:12
*/
@SuppressWarnings("deprecation")
@Data
@Configuration
@ConfigurationProperties(prefix = "document")
@Data
public class DocumentConfig {
private String docToProgram;
@@ -26,6 +25,7 @@ public class DocumentConfig {
*
* @return httpinvoker
*/
@SuppressWarnings("deprecation")
@Bean(name = "/document-service")
HttpInvokerServiceExporter wordService(DocumentService documentService) {
HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();

View File

@@ -7,10 +7,10 @@
<artifactId>document-server</artifactId>
<version>2.0.0</version>
</parent>
<artifactId>jod-document-server</artifactId>
<artifactId>jodconverter-document-server</artifactId>
<version>2.0.0</version>
<name>Jod Document Server</name>
<description>Jod 文档操作服务</description>
<name>JodConverter Document Server</name>
<description>JodConverter 文档操作服务</description>
<properties>
<jodconverter.version>4.4.9</jodconverter.version>

View File

@@ -4,10 +4,10 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class JodDocumentServer {
public class JodConverterDocumentServer {
public static void main(String[] args) {
SpringApplication.run(JodDocumentServer.class, args);
SpringApplication.run(JodConverterDocumentServer.class, args);
}
}

View File

@@ -1,8 +1,6 @@
package com.optima.document.server.config;
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.Configuration;
import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
@@ -13,16 +11,14 @@ import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
* @author Elias
* @since 2021-09-28 16:12
*/
@SuppressWarnings("deprecation")
@Configuration
@ConfigurationProperties(prefix = "document")
@Data
public class DocumentConfig {
/**
* 文档接口
*
* @return httpinvoker
*/
@SuppressWarnings("deprecation")
@Bean(name = "/document-service")
HttpInvokerServiceExporter wordService(DocumentService documentService) {
HttpInvokerServiceExporter exporter = new HttpInvokerServiceExporter();

View File

@@ -13,7 +13,7 @@ import java.util.HashMap;
import java.util.Map;
@Disabled
public class JodDocumentServerTest {
public class JodConverterDocumentServerTest {
@Test
public void test() throws IOException {
@@ -33,7 +33,7 @@ public class JodDocumentServerTest {
private static DocumentService buildDocumentService() {
// 创建客户端代理
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.afterPropertiesSet();

View File

@@ -13,7 +13,7 @@
<description>文档操作模块</description>
<modules>
<module>docto-document-server</module>
<module>jod-document-server</module>
<module>jodconverter-document-server</module>
</modules>
<properties>