自动生成配置文件和mapper xml

newBigdata
xiaoCJ 11 months ago
parent 76c7e1ee24
commit a9c08c0cb1

@ -67,8 +67,8 @@ public class UserController {
@PostMapping("/login") @PostMapping("/login")
@ApiOperation("登录接口") @ApiOperation("登录接口")
@AnonymousAccess @AnonymousAccess
public ResultEntity login(@RequestParam String passwordEncode, public ResultEntity login(@RequestParam(required = false) String passwordEncode,
@RequestParam String userName, @RequestParam(required = false) String userName,
HttpServletRequest request, HttpServletRequest request,
@RequestParam(required = false) int roleId, @RequestParam(required = false) int roleId,
@RequestParam(required = false) String TOKEN) { @RequestParam(required = false) String TOKEN) {

@ -101,7 +101,7 @@ public class TeaUserServiceImpl implements ITeaUserService {
} }
if (searcher == null) { if (searcher == null) {
try { try {
File file = ResourceUtils.getFile("/usr/local/tianzeProject/financial_bigdata/ipdb/ip2region.xdb"); File file = ResourceUtils.getFile("/usr/local/tianzeProject/financial_bigdata/uploadFile/ipdb/ip2region.xdb");
String dbPath = file.getPath(); String dbPath = file.getPath();
searcher = Searcher.newWithFileOnly(dbPath); searcher = Searcher.newWithFileOnly(dbPath);
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {

Loading…
Cancel
Save