-
頁(yè)面O2O
查看全部 -
application.properties
查看全部 -
本門(mén)課程的框架
查看全部 -
//主鍵ID private?Integer?areaId; //名稱(chēng) private?String?areaName; //權(quán)重,越大越排前顯示 private?Integer?priority; //創(chuàng)建時(shí)間 private?Date?createTime; //更新時(shí)間 private?Date?lastEditTime;
查看全部 -
程序前后端調(diào)試
查看全部 -
/*?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獲取數(shù)據(jù)自增主鍵值
<setting name="useGeneratedKeys" value="true"/>
使用列標(biāo)簽替換列名,默認(rèn)為true
<setting name="useColumnLabel" value="true" />
開(kāi)啟駝峰命名轉(zhuǎn)換:Table{create_time}->Entity{createTime}
????????<setting name="mapUnderScoreToCamelCase" value="true" />
????????
查看全部 -
application.properties中配置:server.port=8082,可以設(shè)置端口號(hào)
查看全部 -
會(huì)話工廠的創(chuàng)建
查看全部 -
q查看全部
-
test test
查看全部 -
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled
SpringBoot啟動(dòng)報(bào)錯(cuò),在啟動(dòng)類(lèi)中的@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標(biāo)簽中,如果不是最后一個(gè)字段,是要加逗號(hào)的,不然會(huì)報(bào)錯(cuò)。。
查看全部 -
修改idea設(shè)置
查看全部
舉報(bào)