zoukankan      html  css  js  c++  java
  • 7月25 SVN 提交报错 | mybatis like | 数据库字段设计 | 打包打小包

    一、从svn down下来的工程,修改后提交报错

     svn: E200007: Commit failed (details follow)

    原因是ChECKOUTcan only be performed on a version resource

    解决方法:

    1、项目 team -- clean

    2、在本地svn路径 update ,然后再eclipse 里导入,修改后,在本地svn 路径下提交

    ok,在回到eclipse 里修改提交 ok了

    二、mybatis like

     name like CONCAT('%','${name}','%')

    先判断不为空 再查询

    --记录
    计算重量有字段为空 出现报错
    skuMaster.getGrossweight()

    应该要加上判断,防止数据库里的数据为空


    查询字段为空的值 is null

    SELECT * FROM sku_master WHERE GROSSWEIGHT IS NULL

    三、数据库字段设计

    首先表名 尽量小写,不容易出问题,linux 区分大小写

    字段名 采用下划线的方式

     插入对象的时候,注意不要忘记set createTime 更新的时候 updatTime

    四、 打包打小包

    <pluginManagement>
                <plugins>
                    <plugin>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-maven-plugin</artifactId>
                        <configuration>
                            <fork>true</fork>
                            <layout>ZIP</layout>
                            <includes>
                                <include>
                                    <groupId>org.mybatis.spring.boot</groupId>
                                    <artifactId>mybatis-spring-boot-starter</artifactId>
                                </include>
                            </includes>
                        </configuration>
                    </plugin> 
    </pluginManagement>

    jar包 首先打大包的时候,从lib里拷贝一份

  • 相关阅读:
    Path Sum II
    Convert Sorted Array to Binary Search Tree
    Construct Binary Tree from Inorder and Postorder Traversal
    Construct Binary Tree from Preorder and Inorder Traversal
    Maximum Depth of Binary Tree
    Binary Tree Zigzag Level Order Traversal
    Binary Tree Level Order Traversal
    Same Tree
    Validate Binary Search Tree
    Binary Tree Inorder Traversal
  • 原文地址:https://www.cnblogs.com/lyon91/p/9364820.html
Copyright © 2011-2022 走看看