Skip to content

Instantly share code, notes, and snippets.

View ejaz-ahmed's full-sized avatar

Ejaz Ahmed ejaz-ahmed

View GitHub Profile
@ejaz-ahmed
ejaz-ahmed / PlacesRESTController.java
Created March 30, 2016 11:15 — forked from wvuong/PlacesRESTController.java
Simple generic REST-ful Spring MVC controller, interops with Spring Data repositories
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;
import org.apache.log4j.*
import grails.util.Holders
myconfig {
myvariable {
workdir = 0
}
}
log4j = {