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
package br.itarocha.teste.xls; | |
import org.apache.poi.ss.usermodel.Cell; | |
import org.apache.poi.ss.usermodel.Sheet; | |
import org.apache.poi.ss.usermodel.Workbook; | |
import org.apache.poi.ss.usermodel.WorkbookFactory; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.util.*; |
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
from datetime import datetime, timedelta | |
from dateutil.relativedelta import relativedelta | |
formato_br = "%d/%m/%Y %H:%M:%S" | |
formato_db = "%Y-%m-%d %H:%M:%S" | |
formato_db_date = "%Y-%m-%d" | |
def agora_local(): | |
return datetime.now() |
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
package com.example.multipart.controller; | |
import lombok.SneakyThrows; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.web.bind.annotation.*; | |
import org.springframework.web.multipart.MultipartFile; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; |
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
b'--X-INSOMNIA-BOUNDARY\r\nContent-Disposition: form-data; name="cliente"\r\nContent-Type: application/json\r\n\r\n{ | |
"id": 30, | |
"nome": "Itamar" | |
}\r\n--X-INSOMNIA-BOUNDARY\r\nContent-Disposition: form-data; name="arquivo"; filename="Fatura Cart\xc3\xa3o Caixa.xlsx"\r\nContent-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\r\n\r\nPK\x03\x04\n\x00\x00\x00\x00\x00\x87N\xe2@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00docProps/PK\x03\x04\x14\x00\x00\x00\x08\x00\x87N\xe2@\xf0\r\x92tW\x01\x00\x00l\x02\x00\x00\x10\x00\x00\x00docProps/app.xml\x9d\x92\xc1J\xc3@\x10\x86\xef\x82\xef\x10\x96^\xdbMC\x08R\x92\x14E\xc4C\xa19T\xf1V\xb6\xc9\xb4]\xd9\xec\x86\xddih}\x16/\x1e\x04\xdf\xc0\x93o\xa3\xe0c8I@S\xf1${\xf9w\xe7\xe7\x9fo\x86\x8d\xa7\xfbRy5X\'\x8dN\xd8x\xe43\x0ftn\n\xa97\t\xbbY\\\r\xcf\x98\xe7P\xe8B(\xa3!a\x07pl\x9a\x9e\x9e\xc4\x995\x15X\x94\xe0<\x8a\xd0.a[\xc4j\xc2\xb9\xcb\xb7P\n7\xa2\xb2\xa6\xca\xda\xd8R ]\xed\x86\x9b\xf5Z\xe6pi\xf2]\t\x1ay\xe0\xfb\x11\x87=\x82.\xa0\x18V\ |
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
var oldValor = ""; | |
var xhr; | |
function trata(data) { | |
//var json = JSON.parse(data); | |
console.log("tratando...."); | |
var options = $("#options"); | |
$(options).empty(); | |
var json = data; | |
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
logging.level.root=INFO | |
spring.datasource.url:jdbc:firebirdsql:localhost/3050:D:\\database\\petra.FDB | |
spring.datasource.driverClassName:org.firebirdsql.jdbc.FBDriver | |
spring.datasource.username:SYSDBA | |
spring.datasource.password:masterkey | |
spring.jpa.hibernate.ddl-auto:update | |
spring.jpa.show-sql: true | |
spring.jpa.properties.hibernate.format_sql=true |