Install apt requiriments:
- sudo apt-get install libusb-1.0-0-dev python3-setuptools python3-pip
After pip installed:
- pip3 install libusb pyusb
def application(environ, start_response): | |
""" | |
WSGI application callable. | |
""" | |
# Configurar o status HTTP e os headers | |
status = '200 OK' | |
headers = [('Content-Type', 'text/plain')] | |
# Iniciar a resposta | |
start_response(status, headers) |
public class HashMapSerializer extends JsonSerializer<Map<Long, Object>> { | |
ObjectMapper mapper = new ObjectMapper(); | |
@Override | |
public void serialize(Map<Long, Object> userMap, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { | |
jsonGenerator.writeString(mapper.writeValueAsString(userMap.values())); | |
} | |
} |
Install apt requiriments:
After pip installed:
If not exists, create a folder /home/user/.m2, and copy this settings.xml and settings-security.xml.
Run the command for generate password for settings.xml:
mvn --encrypt-password <maven-local-repo-password>
Copy the generated hash (with {}) and paste on settings.xml (/servers/server/password)
Add Dependency on pom.xml, considering use of Maven: com.sun.xml.ws jaxws-rt 2.3.2
Add "sun-jaxws.xml" file on path: /src/main/webapp/WEB-INF/
Add "web.xml" file on path: /src/main/webapp/WEB-INF/