-
頁面O2O
查看全部 -
application.properties
查看全部 -
本門課程的框架
查看全部 -
//主鍵ID private?Integer?areaId; //名稱 private?String?areaName; //權重,越大越排前顯示 private?Integer?priority; //創建時間 private?Date?createTime; //更新時間 private?Date?lastEditTime;
查看全部 -
程序前后端調試
查看全部 -
/*?pages/list/list.wxss?*/.container?{height:?100%;display:?table;align-items:?center;justify-content:?space-between;box-sizing:?border-box;padding-top:?10rpx;padding-bottom:?10rpx;text-align:?center;}.widget?{position:?relative;margin:?5rpx?10rpx;padding-left:?40rpx;padding-right:?40rpx;border:?1px?solid?#ddd;}.column?{width:?4rem;display:?table-cell;}.link-column?{width:?6rem;display:?table-cell;}.link?{color:?blue;display:?inline-table;}
查看全部 -
CREATE?TABLE?`tb_area`?( ??`area_id`?int(2)?NOT?NULL?AUTO_INCREMENT, ??`area_name`?varchar(200)?NOT?NULL, ??`priority`?int(2)?NOT?NULL?DEFAULT?'0', ??`create_time`?datetime?DEFAULT?NULL, ??`last_edit_time`?timestamp?NULL?DEFAULT?CURRENT_TIMESTAMP?ON?UPDATE?CURRENT_TIMESTAMP, ??PRIMARY?KEY?(`area_id`), ??UNIQUE?KEY?`UK_AREA`?(`area_name`) )?ENGINE=InnoDB?AUTO_INCREMENT=4?DEFAULT?CHARSET=utf8;
查看全部 -
MyBatis中配置全局屬性:
使用jdbc的getGeneratedKeys獲取數據自增主鍵值
<setting name="useGeneratedKeys" value="true"/>
使用列標簽替換列名,默認為true
<setting name="useColumnLabel" value="true" />
開啟駝峰命名轉換:Table{create_time}->Entity{createTime}
????????<setting name="mapUnderScoreToCamelCase" value="true" />
????????
查看全部 -
application.properties中配置:server.port=8082,可以設置端口號
查看全部 -
會話工廠的創建
查看全部 -
q查看全部
-
test test
查看全部 -
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled
SpringBoot啟動報錯,在啟動類中的@SpringBootApplication中加入
exclude?=?{DataSourceAutoConfiguration.class}
查看全部 -
<update?id="updateArea"?parameterType="com.expr.applet7.entity.Area"> ????update?tb_area ????<set> ????????<if?test="areaName?!=?null">area_name=#{areaName},</if> ????????<if?test="priority?!=?null">priority=#{priority},</if> ????????<if?test="lastEditTime?!=?null">last_edit_time=#{lastEditTime}</if> ????</set> ????<where> ????????area_id=#{areaId} ????</where> </update>
在if標簽中,如果不是最后一個字段,是要加逗號的,不然會報錯。。
查看全部 -
修改idea設置
查看全部
舉報