Skip to content

Instantly share code, notes, and snippets.

View jordkris's full-sized avatar
😎
Welcome to my profile

Jordy Kristianata jordkris

😎
Welcome to my profile
View GitHub Profile
package com.example.myproject.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class DemoController<ModelMapper> {
private ModelMapper modelMapper;
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!DOCTYPE html>
<html lang="eng" xmlns:th="http://www.thymeleaf.org">
<head>
<title>Tabel Example</title>
<link href="https://cdn.datatables.net/1.10.25/css/jquery.dataTables.min.css" rel="stylesheet">
</head>
<body>
<h1>Tabel Example</h1>
<table class="display" id="tableExample" cellspacing="0" style="width:100%" border="1">
<thead>