Miscellany 10

  • computed

  • [application.properties] (https://www.cnblogs.com/shamo89/p/8178109.html)
    the default configuration set global SpringBoot be modified
    such as writing variable com.abc.name = 'abc'
    to a class attribute can be used comment
    @value = ( "$ (com.abc.name) ")
    is initialized
    to an entire class may also be used
    @ConfigurationProperties (prefix = "com.abc")
    to initialize

  • @Aspect Oriented Programming aop

  • Autowired omitted
    if there is a bean constructor, then it can be omitted autowired. In lombok may be used as a final variable AllArgsConstructor automatically generated constructor, @Autowired can be omitted, very convenient.

  • No study summarized mabtis observed
    1.mapper Tags namespace class mapper (dao) corresponding to the java interface
    2.resultMap tags can be used, and the class name mapping table, type in the corresponding domain POJO / the bean
    3.ID tag correspondence table the primary key
    4.result tag corresponding to a correspondence relationship, column is the field in the table, property is the field in the class, jabcType fill type
    content 5.sql tag may be used include label references refid the id attribute
    6.Select tag corresponding id class method, property parameters corresponding to the parameterType class can be used.

Guess you like

Origin www.cnblogs.com/bestefforts/p/12008960.html