Vincent Tung
Vincent Tung
目前去重distinct是在@SearchBean(distinct=true)中設定, 能否增加去重功能是可以在每個查詢中決定啟動或關閉?
同一個template中, 放置table元件與form的元件時, 當table data超過100筆時, 整個瀏覽器頁面無法捲動, 但table內的資料上下捲都是正常, 這個狀況很常發生, 通常要將頁面放置很久(10分鐘以上),瀏覽器頁面才能正常捲動
多數據源測試有誤
Mybatis-flex: 1.6.9 spring boot:2.7.10 數據池: druid 參考[多數據源](https://mybatis-flex.com/zh/core/multi-datasource.html) 調試過程發現兩個問題 1. 有沒有使用UseDataSource("ds2") or DataSourceKey.use("ds2"), 所指向的datasource都是ds1(application.yml有設ds1與ds2) 2. 沒有使用UseDataSource or DataSourceKey.use(不論設成"ds1"或"ds2")時,下面這段代碼有效. 有使用的話,下面代碼無效, 無法正常判斷數據庫類型. ``` FlexGlobalConfig defaultConfig = FlexGlobalConfig.getDefaultConfig(); defaultConfig.setDbType(DbType.INFORMIX); ```
我參考[SQL打印](https://mybatis-flex.com/zh/core/sql-print.html)的方式, 來設置db type, 但執行後又被改回預設的mysql ``` package com.vt.demo20.config; import org.apache.ibatis.logging.stdout.StdOutImpl; import org.springframework.context.annotation.Configuration; import com.mybatisflex.core.FlexGlobalConfig; import com.mybatisflex.core.dialect.DbType; import com.mybatisflex.core.mybatis.FlexConfiguration; import com.mybatisflex.spring.boot.ConfigurationCustomizer; @Configuration public class MyBatisFlexConfiguration implements ConfigurationCustomizer { public MyBatisFlexConfiguration() { FlexGlobalConfig...