ylbtech-Java-Class-@I:lombok.extern.slf4j.Slf4j
1.返回顶部
 
2.返回顶部
1、
  1. package com.ylbtech.api.controller.operation;
  2.  
  3. import cn.hutool.core.date.DateUtil;
  4. import com.ylbtech.api.core.response.Result;
  5. import com.ylbtech.api.core.response.ResultCode;
  6. import com.ylbtech.api.core.response.ResultGenerator;
  7. import com.ylbtech.api.util.RedisUtils;
  8. import com.ylbtech.api.util.SMSUtil;
  9. import com.ylbtech.edu.classTry.service.IClassTryService;
  10. import com.ylbtech.edu.common.service.ICommonService;
  11. import com.ylbtech.edu.courseTry.domain.CourseTry;
  12. import com.ylbtech.edu.courseTry.service.ICourseTryService;
  13. import com.ylbtech.edu.organizationStudent.domain.OrganizationStudent;
  14. import com.ylbtech.edu.organizationStudent.service.IOrganizationStudentService;
  15. import com.ylbtech.edu.organizationWxuser.domain.OrganizationWxuser;
  16. import com.ylbtech.edu.organizationWxuser.service.IOrganizationWxuserService;
  17. import com.ylbtech.edu.pclass.domain.Class;
  18. import com.ylbtech.edu.pclass.service.IClassService;
  19. import com.ylbtech.edu.sms.domain.Sms;
  20. import com.ylbtech.edu.sms.service.ISmsService;
  21. import com.ylbtech.edu.student.domain.Student;
  22. import com.ylbtech.edu.student.service.IStudentService;
  23. import io.swagger.annotations.Api;
  24. import io.swagger.annotations.ApiOperation;
  25. import lombok.extern.slf4j.Slf4j;
  26. import org.springframework.beans.factory.annotation.Autowired;
  27. import org.springframework.validation.annotation.Validated;
  28. import org.springframework.web.bind.annotation.PostMapping;
  29. import org.springframework.web.bind.annotation.RequestBody;
  30. import org.springframework.web.bind.annotation.RequestMapping;
  31. import org.springframework.web.bind.annotation.RestController;
  32.  
  33. import javax.servlet.http.HttpServletRequest;
  34. import java.util.*;
  35.  
  36. @Slf4j
  37. @Api(tags = "学生业务")
  38. @Validated
  39. @RestController
  40. @RequestMapping("/student")
  41. public class StudentController {
  42.  
  43. @Autowired
  44. private IStudentService studentService;
  45.  
  46. /**
  47. * showdoc
  48. *
  49. * @param mobile 必选 string 手机号
  50. * @param verificationCode 必选 string 验证码
  51. * @param password 必选 string 密码
  52. * @param openid 必选 string openid
  53. * @param organizationId 必选 string 机构id
  54. * @return {"code":200,"data":{"city":"Kaifeng","country":"China","createTime":1537916044000,"language":"zh_CN","mobile":"13543214321","nickName":"å\u0090\u0091é\u0098³","organizationID":"shushenglanglang","params":{},"pno":1,"province":"Henan","psize":10,"studentID":"s190125162711","wxOpenID":"123456"}}
  55. * @catalog 直播教育
  56. * @title 注册
  57. * @description 注册接口
  58. * @method POST
  59. * @url https://ip:port/student/regist
  60. * @remark
  61. */
  62. @ApiOperation(value = "注册")
  63. @PostMapping("/regist")
  64. public Result regist(@RequestBody() Map map, HttpServletRequest request) {
  65.  
  66. }
  67.  
  68. }
2、
3.返回顶部
 
4.返回顶部
1、
  1. /*
  2. * Copyright (C) 2010-2017 The Project Lombok Authors.
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a copy
  5. * of this software and associated documentation files (the "Software"), to deal
  6. * in the Software without restriction, including without limitation the rights
  7. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. * copies of the Software, and to permit persons to whom the Software is
  9. * furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. * THE SOFTWARE.
  21. */
  22. package lombok.extern.slf4j;
  23.  
  24. import java.lang.annotation.ElementType;
  25. import java.lang.annotation.Retention;
  26. import java.lang.annotation.RetentionPolicy;
  27. import java.lang.annotation.Target;
  28.  
  29. /**
  30. * Causes lombok to generate a logger field.
  31. * <p>
  32. * Complete documentation is found at <a href="https://projectlombok.org/features/Log">the project lombok features page for lombok log annotations</a>.
  33. * <p>
  34. * Example:
  35. * <pre>
  36. * @Slf4j
  37. * public class LogExample {
  38. * }
  39. * </pre>
  40. *
  41. * will generate:
  42. *
  43. * <pre>
  44. * public class LogExample {
  45. * private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogExample.class);
  46. * }
  47. * </pre>
  48. *
  49. * This annotation is valid for classes and enumerations.<br>
  50. * @see <a href="https://www.slf4j.org/api/org/slf4j/Logger.html">org.slf4j.Logger</a>
  51. * @see <a href="https://www.slf4j.org/api/org/slf4j/LoggerFactory.html#getLogger(java.lang.Class)">org.slf4j.LoggerFactory#getLogger(java.lang.Class)</a>
  52. * @see lombok.extern.apachecommons.CommonsLog @CommonsLog
  53. * @see lombok.extern.java.Log @Log
  54. * @see lombok.extern.log4j.Log4j @Log4j
  55. * @see lombok.extern.log4j.Log4j2 @Log4j2
  56. * @see lombok.extern.slf4j.XSlf4j @XSlf4j
  57. * @see lombok.extern.jbosslog.JBossLog @JBossLog
  58. * @see lombok.extern.flogger.Flogger @Flogger
  59. */
  60. @Retention(RetentionPolicy.SOURCE)
  61. @Target(ElementType.TYPE)
  62. public @interface Slf4j {
  63. /** @return The category of the constructed Logger. By default, it will use the type where the annotation is placed. */
  64. String topic() default "";
  65. }
2、
5.返回顶部
 
 
6.返回顶部
 
作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

Java-Class-@I:lombok.extern.slf4j.Slf4j的更多相关文章

  1. Springboot:单元测试日志打印@Slf4j 注解的使用方法

    当自己写日志的时候,肯定需要: private final Logger logger = LoggerFactory.getLogger(LoggerTest.class); 每次写新的类,就需要重 ...

  2. 八:Lombok 安装、入门 - 消除冗长的 java 代码

    Lombok 安装.入门 - 消除冗长的 java 代码 前言:    逛开源社区的时候无意发现的,用了一段时间,觉得还可以,特此推荐一下.    lombok 提供了简单的注解的形式来帮助我们简化消 ...

  3. Java进阶教程:使用Lombok提升开发效率

    Java进阶教程:使用Lombok提升开发效率 Lombok Lombok是一种Java™实用工具,可用来帮助开发人员消除Java的冗长代码,尤其是对于简单的Java对象(POJO).它通过注释实现这 ...

  4. Java代码简化神器-Lombok

    一.背景 前段时间在开源社区中发现了一个比较牛逼的简化Java代码的神器-Lombok,接着自己写了demo进行测试和练习,感觉真的很不错,特此分享给需要的小伙伴们~ 二.开发之前的准备 1.lomb ...

  5. java工具jar包—Lombok

    如何引入 maven工程,直接引入lombok的jar依赖即可: <dependency> <groupId>org.projectlombok</groupId> ...

  6. 2.lombok系列2:lombok注解详解

    转自:https://www.imooc.com/article/18157 开篇 看到第一篇<初识lombok>你可能意犹未尽,本文我们按照场景来介绍一下常用的注解. 未特别说明,均标注 ...

  7. Kubernetes官方java客户端之三:外部应用

    欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java.Docker.Kubernetes.DevOPS ...

  8. Kubernetes官方java客户端之四:内部应用

    欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java.Docker.Kubernetes.DevOPS ...

  9. Kubernetes官方java客户端之五:proto基本操作

    欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java.Docker.Kubernetes.DevOPS ...

随机推荐

  1. flask中的目录解析

    首先我们看一下博客blog的封面,flask和django都属于web框架.不过flask属于轻量级web框架,功能的实现是通过扩展实现的,extension.py 中存放各个对象,具体的功能通过对象 ...

  2. PHP 换行处理

    换行符 unix系列用 \n windows系列用 \r\n mac用 \r PHP中可以用PHP_EOL来替代,以提高代码的源代码级可移植性 如: <?php echo PHP_EOL; // ...

  3. Python sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings......

    完整的错误信息如下: You must not use 8-bit bytestrings unless you use a text _factory that can interpret 8-bi ...

  4. js全局变量优点和缺点

    全局变量的优点:可以减少变量的个数,减少由于实际参数和形式参数的数据传递带来的时间消耗. 全局变量的缺点: (1)全局变量保存在静态存贮区,程序开始运行时为其分配内存,程序结束释放该内存.与局部变量的 ...

  5. windows 安装虚拟环境

    步骤一:安装virtualenv 在windows cmd终端下使用输入:pip install virtualenv 步骤二:新建虚拟环境 在cmd终端输入virtualenv testvir(环境 ...

  6. 高级UI晋升之自定义view实战(七)

    更多Android高级架构进阶视频学习请点击:https://space.bilibili.com/474380680本篇文章自定义ViewGroup实现瀑布流效果来进行详解dispatchTouch ...

  7. 使用Pandas读取大型Excel文件

    import os import pandas as pd HERE = os.path.abspath(os.path.dirname(__file__)) DATA_DIR = os.path.a ...

  8. __init__ 和__new__的区别

    __init__和__new__的区别 __init__是当实例对象创建完成后被调用的,然后设置对象属性的一些初始值. __new__是在实例创建之前被调用的,因为它的任务就是创建实例然后返回该实例, ...

  9. C语言注意事项

    #include <stdio.h> int main() { /*********************************************** * 指针使用注意事项: * ...

  10. 自定义vant ui steps组件效果实现

    记录个问题,当作笔记吧:因为vue项目的移动端vant ui 的step组件跟ui设计图有差别,研究了半天还是没法使用step组件,只能手动设置一个 先上效果图和代码: (1)HTML部分 <d ...