// Path: druid-spring-boot-example/druid-spring-boot-mybatis-example/src/main/java/com/github/trang/druid/example/mybatis/mapper/CityMapper.java
// @Mapper
// public interface CityMapper {
// 
//     @Select("select * from city")
//     List<City> findAll();
// 
//     @Select("select * from city where id = #{id}")
//     City findById(@Param("id") Long id);
// 
// }
// 
// Path: druid-spring-boot-example/druid-spring-boot-mybatis-example/src/main/java/com/github/trang/druid/example/mybatis/model/City.java
// @Data
// public class City implements Serializable {
// 
//     private static final long serialVersionUID = 1L;
// 
//     private Long id;
//     private String name;
//     private String state;
//     private String country;
// 
// }


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.github.trang.druid.example.mybatis.mapper.CityMapper;
import com.github.trang.druid.example.mybatis.model.City;
package com.github.trang.druid.example.mybatis.controller;



/**
 * CityController
 *
 * @author trang
 */
@RestController
@RequestMapping("/city")
public class CityController {

    @Autowired
// Path: druid-spring-boot-example/druid-spring-boot-mybatis-example/src/main/java/com/github/trang/druid/example/mybatis/mapper/CityMapper.java
// @Mapper
// public interface CityMapper {
// 
//     @Select("select * from city")
//     List<City> findAll();
// 
//     @Select("select * from city where id = #{id}")
//     City findById(@Param("id") Long id);
// 
// }
// 
// Path: druid-spring-boot-example/druid-spring-boot-mybatis-example/src/main/java/com/github/trang/druid/example/mybatis/model/City.java
// @Data
// public class City implements Serializable {
// 
//     private static final long serialVersionUID = 1L;
// 
//     private Long id;
//     private String name;
//     private String state;
//     private String country;
// 
// }


// Path: druid-spring-boot-example/druid-spring-boot-mybatis-example/src/main/java/com/github/trang/druid/example/mybatis/controller/CityController.java
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.github.trang.druid.example.mybatis.mapper.CityMapper;
import com.github.trang.druid.example.mybatis.model.City;

package com.github.trang.druid.example.mybatis.controller;



/**
 * CityController
 *
 * @author trang
 */
@RestController
@RequestMapping("/city")
public class CityController {

    @Autowired
    private CityMapper cityMapper;