當前位置:成語大全網 - 書法字典 - 如何在springboot中通過背景創建臨時表格

如何在springboot中通過背景創建臨時表格

首先,獲取壹個xml,並在xml中編寫壹個修改過的header標記。因為它是壹個臨時表,所以需要在表名處接收壹個參數$(tableName)來更改表名,然後寫入xml文件。

& lt更新?id =“creatable“parameter type =“Java . lang . string“& gt;

創造?臨時餐桌?${tableName}

name VARCHAR(10)不為空,

價值?英特爾不為空

)

& lt/update & gt;

在mapper中編寫相應的方法。此時,您需要將註釋@Param添加到參數中。只有通過添加這個註釋,您才能接收我以xml形式傳入的參數。

int?可創建的(@ Param(“tableName“)字符串表名)