javaEEday10-tlias-案例-部门管理-查询
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
package com.inmind.controller;
|
||||
|
||||
import com.inmind.pojo.Result;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class DeptController {
|
||||
|
||||
//logback日志框架
|
||||
private static Logger logger = LoggerFactory.getLogger("com.inmind.controller.DeptController");
|
||||
|
||||
@RequestMapping("/depts")
|
||||
public Result deptList(){
|
||||
//接收请求
|
||||
logger.info("查询全部部门数据请求");
|
||||
return Result.success();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
spring.application.name=tlias-web
|
||||
#?????
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
#??????url
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/tlias
|
||||
#?????????
|
||||
spring.datasource.username=root
|
||||
#????????
|
||||
spring.datasource.password=1234
|
||||
|
||||
#??mybatis???, ????????
|
||||
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
|
||||
#??mybatis??????????? a_column ------> aCloumn
|
||||
mybatis.configuration.map-underscore-to-camel-case=true
|
||||
|
||||
server.port=8080
|
||||
|
||||
Reference in New Issue
Block a user