mybatis学习笔记(自用)

mybatis复习




    
        
        
        
        
        
        
            
            

        
    
    
    
        insert into course (cname,t_no)values
        
            (#{item.courceName},#{item.teacherNo})
        


    
    
    
    
    
    
    
        


        insert into course (cname,t_no)values (#{courceName},#{teacherNo})

    
    
    
    
    
        update  cousre set
        

        
    

    username,nickname,address,birthday,id,favorites



spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.url=jdbc:mysql://localhost:3306/test?serverTimezone=Asia/Shanghai
mybatis.mapper-locations=com/muggle/mybatis_test/mapper/*.xml
mybatis.type-aliases-package=com/muggle/mybatis_test/entity

你可能感兴趣的:(mybatis学习笔记(自用))