# SpringbootDemo **Repository Path**: RookieMeng/SpringbootDemo ## Basic Information - **Project Name**: SpringbootDemo - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SpringbootDemo #### 介绍 数据库配置以及端口配置放在resource/bootstrap.properties中 springboot主函数入口: com.quantchi.tianji.service.search.Application 启动该类则能启动整个项目 项目采用mvc分层结构 文件包中体现为 controller servcie dao; controller中主要用来接收参数,判断参数合法性,@requestmapping + @getmapping 即为接口访问路径,例如:localhost:8158/work/welcome; service层用来处理业务逻辑; dao层用来与数据库交互; 与数据库交互采用mybatis框架,只需在dao层写接口,框架自动生成实现类,接口对应的sql语句写在resource/mybatis/mapper中,一个dao接口对应一个mapper