This file contains hidden or 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
package somepackage; | |
import static org.apache.commons.lang3.StringUtils.isNotBlank; | |
import com.fasterxml.jackson.databind.JavaType; | |
import io.swagger.v3.core.converter.AnnotatedType; | |
import io.swagger.v3.core.converter.ModelConverters; | |
import io.swagger.v3.oas.models.OpenAPI; | |
import io.swagger.v3.oas.models.media.Schema; | |
import java.lang.annotation.Annotation; |
This file contains hidden or 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
@Service | |
public class FileUploadService { | |
private RestTemplate restTemplate; | |
@Autowired | |
public FileUploadService(RestTemplateBuilder builder) { | |
this.restTemplate = builder.build(); | |
} |
This file contains hidden or 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
<subsystem xmlns="urn:jboss:domain:web:2.2" … > | |
… | |
<valve name="RemoteIPValve" module="org.jboss.as.web" class-name="org.apache.catalina.valves.RemoteIpValve"> | |
<param param-name="remoteIpHeader" param-value="x-forwarded-for"/> | |
<param param-name="protocolHeader" param-value="x-forwarded-proto"/> | |
<param param-name="protocolHeaderHttpsValue" param-value="https"/> | |
</valve> | |
</subsystem> |
This file contains hidden or 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
/subsystem=web/valve=RemoteIPValve/:add(module=org.jboss.as.web, class-name=org.apache.catalina.valves.RemoteIpValve) | |
/subsystem=web/valve=RemoteIPValve:add-param(param-name=remoteIpHeader,param-value=x-forwarded-for) | |
/subsystem=web/valve=RemoteIPValve:add-param(param-name=protocolHeader,param-value=x-forwarded-proto) | |
/subsystem=web/valve=RemoteIPValve:add-param(param-name=protocolHeaderHttpsValue,param-value=https) |