-
-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
4,446 additions
and
4,475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 33 additions & 33 deletions
66
...ava/com/sonic/agent/AgentApplication.java → ...g/cloud/sonic/agent/AgentApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
package com.sonic.agent; | ||
|
||
import com.sonic.agent.tools.SpringTool; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer; | ||
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Import; | ||
|
||
/** | ||
* @author ZhouYiXun | ||
* @des Agent端启动类 | ||
* @date 2021/08/16 19:26 | ||
*/ | ||
@Import(SpringTool.class) | ||
@SpringBootApplication | ||
public class AgentApplication { | ||
@Value("${sonic.agent.port}") | ||
private int port; | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(AgentApplication.class, args); | ||
} | ||
|
||
@Bean | ||
public TomcatServletWebServerFactory servletContainer() { | ||
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(port); | ||
factory.addConnectorCustomizers((TomcatConnectorCustomizer) connector -> connector.setProperty("relaxedQueryChars", "|{}[]\\")); | ||
return factory; | ||
} | ||
} | ||
package org.cloud.sonic.agent; | ||
|
||
import org.cloud.sonic.agent.tools.SpringTool; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer; | ||
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Import; | ||
|
||
/** | ||
* @author ZhouYiXun | ||
* @des Agent端启动类 | ||
* @date 2021/08/16 19:26 | ||
*/ | ||
@Import(SpringTool.class) | ||
@SpringBootApplication | ||
public class AgentApplication { | ||
@Value("${sonic.agent.port}") | ||
private int port; | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(AgentApplication.class, args); | ||
} | ||
|
||
@Bean | ||
public TomcatServletWebServerFactory servletContainer() { | ||
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(port); | ||
factory.addConnectorCustomizers((TomcatConnectorCustomizer) connector -> connector.setProperty("relaxedQueryChars", "|{}[]\\")); | ||
return factory; | ||
} | ||
} |
Oops, something went wrong.