init

Change-Id: I42ce9491614d73adf28295781b319809d1969b82
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
new file mode 100644
index 0000000..e912ce2
--- /dev/null
+++ b/src/main/resources/application.properties
@@ -0,0 +1,6 @@
+spring.datasource.password=050301
+spring.datasource.username=root
+spring.datasource.url=jdbc:mysql://localhost:3306/g8backend
+spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+
+mybatis-plus.mapper-locations=classpath*:/mapper/**/*.xml
\ No newline at end of file
diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
new file mode 100644
index 0000000..e8ffb26
--- /dev/null
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.example.g8backend.mapper.UserMapper">
+    <select id="getUserByName" resultType="com.example.g8backend.entity.User">
+        SELECT * FROM user WHERE name = #{name}
+    </select>
+</mapper>
\ No newline at end of file