@@ -0,0 +1,850 @@
+package com.yvhai.cookbook.dp.controller;%0A%0Aimport com.yvhai.cookbook.dp.ext.singleton.SingletonByDC;%0Aimport com.yvhai.cookbook.dp.ext.singleton.SingletonByEnum;%0Aimport com.yvhai.cookbook.dp.ext.singleton.SingletonByHolder;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A@RestController%0A@RequestMapping(%22/dp%22)%0Apublic class DPController %7B%0A%0A    @RequestMapping(%22singleton%22)%0A    public Object showSingleton() %7B%0A        Map%3CString, String%3E map = new HashMap%3C%3E();%0A        map.put(%22SingletonByDC%22, SingletonByDC.getInstance().toString());%0A        map.put(%22SingletonByEnum%22, SingletonByEnum.getInstance().toString());%0A        map.put(%22SingletonByHolder%22, SingletonByHolder.getInstance().toString());%0A        return map;%0A    %7D%0A%0A%7D%0A

Create DPController.java