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
import org.springframework.core.Ordered; | |
import org.springframework.core.annotation.Order; | |
import org.springframework.stereotype.Component; | |
import javax.servlet.*; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
@Component |
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
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
import java.util.ArrayList; | |
public class EscolaDAO extends GenericoDAO { | |
private static final String INSERT = "insert into infoescola values(?,?,?,?,?,?,?,?,?)"; | |
public void inserirInfoEscola(String BD, ArrayList<String> niveis, String ensino) throws Exception { | |
Connection con = null; | |
PreparedStatement stm = null; |
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
import {Component, Input, OnInit} from '@angular/core'; | |
import {DomSanitizer} from '@angular/platform-browser'; | |
@Component({ | |
selector: 'app-spacer', | |
templateUrl: './app-spacer.component.html', | |
styleUrls: ['./app-spacer.component.scss'] | |
}) | |
export class AppSpacerComponent implements OnInit { |
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.willvuong.foodie.controller; | |
import com.willvuong.foodie.dao.PlaceRepository; | |
import com.willvuong.foodie.domain.Place; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.data.repository.CrudRepository; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
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
/** | |
* Fonte = https://youtu.be/eO11iFgrdCA | |
*/ | |
import java.text.DecimalFormat; | |
public class PixPayload { | |
private static final String ID_PAYLOAD_FORMAT_INDICATOR = "00"; | |
private static final String ID_POINT_OF_INITIATION_METHOD = "01"; | |
private static final String ID_MERCHANT_ACCOUNT_INFORMATION = "26"; |
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
@Getter | |
@Setter | |
public class Filter { | |
private String nome; | |
private Boolean ativo; | |
private Boolean pai; | |
} |