I hereby claim:
- I am endymuhardin on github.
- I am endymuhardin (https://keybase.io/endymuhardin) on keybase.
- I have a public key whose fingerprint is 1E7B 083C 3A70 7C7D AE8D 4B3C BBA4 76BB C1FB C266
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
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); |
@Controller | |
public class DynamicInputController { | |
@GetMapping("/dynamic-input") | |
public void displayForm(){} | |
@PostMapping("/dynamic-input") | |
public String processForm(@RequestParam Map<String, String> semuaParameter){ | |
// penampungan hasilnya |
<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> |
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"); | |
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>(); |
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; |
# 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 |
<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> |
<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> |