mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-04 19:54:00 +09:00
mybatis 세팅됨
This commit is contained in:
@@ -1 +1,13 @@
|
||||
#DB Datasource
|
||||
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
|
||||
spring.datasource.url=jdbc:mariadb://summerneko.com:43306/wms
|
||||
spring.datasource.username=client
|
||||
spring.datasource.password=no1wms
|
||||
|
||||
# Mapper Xml Location
|
||||
mybatis.mapper-locations=classpath:mappers/*.xml
|
||||
mybatis.type-aliases-package=com.no1.wms
|
||||
|
||||
# jsp
|
||||
spring.mvc.view.prefix=/WEB-INF/views/
|
||||
spring.mvc.view.suffix=.jsp
|
||||
9
src/main/resources/mappers/AuthorityMapper.xml
Normal file
9
src/main/resources/mappers/AuthorityMapper.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTO Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.no1.wms.authority.AuthorityMapper">
|
||||
<select id="selectById" resultType="AuthorityDto">
|
||||
SELECT * FROM authority WHERE id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
10
src/main/resources/static/hello.html
Normal file
10
src/main/resources/static/hello.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user