HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
ApplicationContext
for that matter)
I am getting the below response when run application on Netty server. But i do not want to include the xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" if value is null/blank.
<employeeResponse>
<employee>
<empId>1000</empId>
<firstName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<lastName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<salary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<status xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</employee>
</employeeResponse>
When I run the same application on Netty Server, getting the proper response. Can anyone help me to get the below response on the netty server?
<employeeResponse>
<employee>
<empId>1000</empId>
<firstName />
<lastName />
<salary />
<status />
</employee>
</employeeResponse>
Spring Boot will automatically add static web resources located within any of the following directories:
/META-INF/resources/
/resources/
/static/
/public/
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry
.addResourceHandler("/files/**")
.addResourceLocations("file:/opt/files/");
}