|  |  |  | 
|---|
|  |  |  | import com.dy.pipIrrMwTestRtu.tcpClient.TcpClUnitConfigVo; | 
|---|
|  |  |  | import org.jdom2.Document; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Value; | 
|---|
|  |  |  | import org.springframework.core.io.ResourceLoader; | 
|---|
|  |  |  | import org.springframework.stereotype.Component; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | public class Server { | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | protected ResourceLoader resourceLoader ; | 
|---|
|  |  |  | @Value("${server.port}") | 
|---|
|  |  |  | private Integer webPort ; | 
|---|
|  |  |  | @Value("${server.servlet.context-path}") | 
|---|
|  |  |  | private String webContext ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private ConfigXml4Springboot conf = null ; | 
|---|
|  |  |  | private Document doc = null ; | 
|---|
|  |  |  | 
|---|
|  |  |  | System.out.println("@@@@@@$       O@@@@@@@@@     &@@@@@@@@") ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(this.mwServerUrl != null){ | 
|---|
|  |  |  | System.out.println("@@@@@@$       O@@@@@@@@@     &@@@@@@@@       中间件服务端 " + this.mwServerUrl ) ; | 
|---|
|  |  |  | System.out.println("@@@@@@$       O@@@@@@@@@     &@@@@@@@@       远程中间件服务端 " + this.mwServerUrl ) ; | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | System.out.println("@@@@@@$       O@@@@@@@@@     &@@@@@@@@") ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | System.out.println("@@@@@@$      #@@@@@@@@@$     &@@@@@@@@" ) ; | 
|---|
|  |  |  | System.out.println("@@@@@@$      #@@@@@@@@@$     &@@@@@@@@       本地web服务端http://[ip]:" + this.webPort + this.webContext ) ; | 
|---|
|  |  |  | System.out.println("@@@@@@@@@@@@@@@@@@@@@@#      &@@@@@@@@       Runing in standalone mode" ) ; | 
|---|
|  |  |  | System.out.println("@@@@@@@@@@@@@@@@@@@@@&       &@@@@@@@@       Startup in " + (System.currentTimeMillis() - start) + " MS" ) ; | 
|---|
|  |  |  | System.out.println("@@@@@@@@@@@@@@@@@@@#         &@@@@@@@@       " + company) ; | 
|---|