- 博客(16)
- 收藏
- 关注
原创 SpringBoot:新版SpringBoot已不再需要@EnableDiscoveryClient
新版SpringBoot已不再需要@EnableDiscoveryClient,只要在pom里配置了相应的服务发现依赖就可以了
2021-09-01 13:51:11
1961
原创 SpringBoot: required a bean of type ‘javax.sql.DataSource‘ that could not be found.
可能缺少 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId></dependency>
2020-10-11 20:08:04
3380
原创 MyBatis: like
org_name like concat(concat(’%’,#{orgName,jdbcType=VARCHAR}),’%’)
2020-10-09 16:49:49
76
原创 Oracle: 数据类型转换
insert into ts_user_detail(id,user_id,update_pwd_time,frozen_flag) values('fd36c7af-c962-44b3-a18c-251addb0f3e0','A6VCZ2NVHC',to_date(to_char(to_timestamp('2020-09-28 11:04:34.598', 'yyyy-MM-dd HH24:MI:ss.ff'),'yyyy-MM-dd HH24:Mi:ss'),'yyyy-MM-dd HH24:
2020-09-28 11:23:37
123
原创 ES: Must与Should 一起用
一定要注意,否则会出逻辑错误Must: andShould or public Map<String,Float> queryAllUsersDailyByPage(String startDate,String endDate) { //当前用户的id String userId = UserUtils.getUserId(); Date date1=null; Date date2=null;
2020-09-25 10:19:34
353
原创 ES: 分组聚合查询
{ "query": { "exists": { "field": "workCostTime" } }, "size": 0, "aggs": { "user_id": { "terms": { "field": "createUserId" }, "aggs": { "sum_workTime": { "sum": { "field": "wo
2020-09-22 17:11:36
1859
原创 SpringBoot: No bean named ‘org.springframework.context.annotation.ConfigurationClassPostProcessor.im
application.properties没配置好
2020-09-16 09:28:13
1481
原创 SpringBoot: 整合MyBatis , Mapper
1.通过在Mapper类上加@Mapper注解package tju.SpringBootMyBatisProject.mapper;import org.apache.ibatis.annotations.Mapper;import org.springframework.stereotype.Repository;import tju.SpringBootMyBatisProject.domain.User;@Mapperpublic interface UserMapper {
2020-09-12 20:22:29
141
原创 SpringBoot: 配置MyBatis类型映射器和别名扫描
mybatis.type-handlers-package=tju.SpringBootMyBatisProject.handler
2020-09-12 15:36:58
341
原创 ES: IK分词
1.对类型为keyword(原String)的数据不会进行全文检索2.对类型为 text的数据,创建 mappings时 可选择 standard 分词器或IK分词器,只有选择了IK分词器的,中文才会按照词进行查询。
2020-09-09 21:46:06
360
原创 ES: java.net.BindException: Cannot assign requested address: bind
Ip地址配置错误或端口被占用
2020-09-09 13:02:29
751
原创 ES: 7.3集群配置(windows)
# ======================== Elasticsearch Configuration =========================## NOTE: Elasticsearch comes with reasonable defaults for most settings.# Before you set out to tweak and tune the configuration, make sure you# understand what
2020-09-08 22:59:24
318
原创 ES: IK分词器
1.安装 IK插件2. http://localhost:9200/_analyze {"analyzer" : "ik_max_word",“text” : “代码生成工具民主党”}
2020-09-08 09:31:09
71
原创 JAVA: GSON返回字符串的处理
package fgh;import org.apache.http.HttpHost;import org.elasticsearch.action.get.GetResponse;import org.elasticsearch.action.index.IndexResponse;import org.elasticsearch.action.search.SearchRequest;import org.elasticsearch.action.search.SearchResponse
2020-09-06 21:15:17
205
原创 Idea Maven: Unable to import maven project: See logs for details
Unable to import maven project: See logs for details可能是 idea与maven版本不兼容,更换 maven版本
2020-09-02 10:52:56
58
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人