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
LAPORAN DAFTAR PELUNASAN KOLETKOR | |
AGEN PT. ARTIVISI INTERMEDIA | |
===================================================================================================================== | |
KODE KOLEKTOR : 0001 | |
NAMA KOLEKTOR : JOJO | |
+------+--------------+---------------------------+---------+-------------+-------------+-------------+-------------+ |
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
<bean id="facadeMonitoringAdvisor" | |
class="net.bull.javamelody.MonitoringSpringAdvisor"> | |
<property name="pointcut"> | |
<bean class="net.bull.javamelody.MonitoredWithInterfacePointcut"> | |
<property name="interfaceName" | |
value="com.artivisi.belajar.restful.service.MonitoredService" | |
/> | |
</bean> | |
</property> | |
</bean> |
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
<bean id="sessionFactory" | |
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean" | |
p:dataSource-ref="dataSource"> | |
<property name="hibernateProperties"> | |
<props> | |
<prop key="hibernate.generate_statistics">true</prop> | |
</props> | |
</property> | |
<property name="packagesToScan" value="com.artivisi.belajar.restful.domain" /> | |
</bean> |
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
# by default, levelnya adalah INFO, tampilkan ke System.out | |
log4j.rootLogger=INFO,Konsole | |
# untuk package com.artivisi, tampilkan level DEBUG ke System.out | |
log4j.logger.com.artivisi=DEBUG,Konsole | |
# untuk spring, error saja yang ditampilkan | |
log4j.logger.org.springframework=ERROR,Konsole | |
# Appender Konsole adalah System.out |
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
import org.apache.http.impl.client.BasicCookieStore; | |
import org.apache.http.protocol.BasicHttpContext; | |
import org.apache.http.protocol.HttpContext; | |
import org.apache.http.client.CookieStore; | |
import org.apache.http.client.protocol.ClientContext; | |
import org.apache.http.client.method.HttpPost; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.message.BasicNameValuePair; |
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
class DtoSaya { | |
private String tanggal; | |
private Integer yes; | |
private Integer no; | |
// getter setter | |
} | |
// nantinya ini hasil query database | |
Map<String, DtoSaya> query1 = new HashMap<String, DtoSaya>(); |
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
public class MultivalueReturn { | |
public static void main(String [] xx){ | |
// bagaimana supaya method ini mengembalikan banyak value? | |
// value yang diinginkan : kode, nama, harga | |
cariProduk("biskuit"); | |
// jawaban : buatkan classnya | |
Produk p = cariProduk("biskuit"); | |
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
<html> | |
<head><title>Belajar Geolocation</title></head> | |
<body> | |
<h1>Belajar Embed Google Map</h1> | |
Masukkan koordinat : | |
<input id="koordinat" type="text" value="-6.2420783,106.8469983"> | |
<button onclick="updatePeta()">Tampilkan di Peta</button> |
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
@Controller | |
public class DynamicInputController { | |
@GetMapping("/dynamic-input") | |
public void displayForm(){} | |
@PostMapping("/dynamic-input") | |
public String processForm(@RequestParam Map<String, String> semuaParameter){ | |
// penampungan hasilnya |
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
String kode = "transaksi-ppob"; | |
List<BigDecimal> nilai = new ArrayList<>(); | |
nilai.add(new BigDecimal(100000)); // pulsa | |
nilai.add(new BigDecimal(1000)); // fee ks | |
nilai.add(new BigDecimal(400)); // fee biller | |
nilai.add(new BigDecimal(600); // fee bank | |
nilai.add(new BigDecimal(102000)); // pengurangan saldo anggota | |
postingJurnal(kode, nilai); |