| | |
| | | @Autowired |
| | | private RedisUtils redisUtils; |
| | | |
| | | @Scheduled(cron = "0 0 2 * * ? ") |
| | | // @Scheduled(cron = "0 0 2 * * ? ") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void start() { |
| | | log.info("返利执行"); |
| | |
| | | @GetMapping("login") |
| | | @ResponseBody |
| | | public Object login(HttpServletRequest request) { |
| | | if (request.getRequestURL().indexOf("api.birdworld.vip") > 0) { |
| | | if (request.getRequestURL().indexOf("api.dappclouds.info") > 0) { |
| | | ModelAndView mav = new ModelAndView(); |
| | | mav.setViewName(FebsUtil.view("error/error")); |
| | | return mav; |
| | |
| | | datasource: |
| | | # 数据源-1,名称为 base |
| | | base: |
| | | username: sys_lab |
| | | password: sys_lab!@#123 |
| | | username: db_qcode |
| | | password: qcode!@#123 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | url: jdbc:mysql://127.0.0.1:3306/sys_lab?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b9 |
| | | url: jdbc:mysql://127.0.0.1:3306/sys_qcode?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b9 |
| | | |
| | | redis: |
| | | # Redis数据库索引(默认为 0) |
| | | database: 1 |
| | | database: 2 |
| | | # Redis服务器地址 |
| | | host: 127.0.0.1 |
| | | # Redis服务器连接端口 |