摘要:
#!/usr/bin/env python# -*- coding: UTF-8 -*-'''@Project :${PROJECT_NAME} @File :${NAME}.py@IDE :${PRODUCT_NAME} @Author :xxxxxxx@Date :${DATE} ${TIME}
閱讀全文
posted @ 2024-08-26 14:04
protect24
閱讀(400)
推薦(0)
摘要:
目標(biāo)1:完成solr環(huán)境安裝、中文分析器和業(yè)務(wù)域的配置 目標(biāo)2:會(huì)使用Spring Data Solr完成增刪改查操作 目標(biāo)3:完成批量數(shù)據(jù)導(dǎo)入功能 目標(biāo)4:完成按關(guān)鍵字搜索功能 1.業(yè)務(wù)接口層 1 public interface ItemSearchService { 2 /** 3 * 搜索
閱讀全文
posted @ 2019-11-21 22:00
protect24
閱讀(407)
推薦(1)
摘要:
1.商家申請(qǐng)入駐的密碼要使用BCrypt算法進(jìn)行加密存儲(chǔ),修改SellerController.java的add方法 1 /** 2 * 增加 3 * @param seller 4 * @return 5 */ 6 @RequestMapping("/add") 7 public Result a
閱讀全文
posted @ 2019-11-16 11:06
protect24
閱讀(199)
推薦(1)
摘要:
加載xml <build> <finalName>test</finalName> <!-- 這樣也可以把所有的xml文件,打包到相應(yīng)位置。 <resources> <resource> <directory>src/main/resources</directory> <includes> <in
閱讀全文
posted @ 2019-11-16 10:18
protect24
閱讀(261)
推薦(1)
摘要:
1 // 自定義驗(yàn)證類(lèi)UserDetailsService 實(shí)現(xiàn)Security框架UserDetailsService的接口 2 public class UserDetailServiceImpl implements UserDetailsService { 3 //修改UserDetails
閱讀全文
posted @ 2019-11-16 10:06
protect24
閱讀(5460)
推薦(2)
摘要:
1.加依賴(lài) 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
閱讀全文
posted @ 2019-11-05 22:30
protect24
閱讀(205)
推薦(1)
摘要:
1創(chuàng)建數(shù)據(jù)庫(kù) user表 2.配置文件信息 #DB Configuration spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3306/us
閱讀全文
posted @ 2019-11-05 22:05
protect24
閱讀(195)
推薦(1)
摘要:
# DB Configuration#指定數(shù)據(jù)庫(kù)驅(qū)動(dòng)spring.datasource.driver-class-name=com.mysql.jdbc.Driver#數(shù)據(jù)庫(kù)jdbc連接url地址,serverTimezone設(shè)置數(shù)據(jù)庫(kù)時(shí)區(qū)東八區(qū)spring.datasource.url=jdbc:
閱讀全文
posted @ 2019-11-05 21:11
protect24
閱讀(8525)
推薦(1)