Ravat Tailor

1

votes
1

answer
42

views

Spring boot elastic not giving expected result

I am querying elastic through spring boot. case:- 1 There is some data in my elastic like region = 'REGION 1' I want to get all the data where 'REGION 1', but getting an empty result. case 2:- There is some data in my elastic like region = 'REGION1' I want to get all the data where 'REGION1', I am g...
Ravat Tailor
1

votes
1

answer
118

views

Get elastic search query from spring data Jpa

In my code base, I have two code for search on elastic. One is through ElasticSearchTemplte from there I build the elastic query and query on elastic. In the second one, I am querying through spring-data-jpa. In the first case, I can see my elastic search query and can directly query on ES. My quest...
Ravat Tailor
1

votes
1

answer
239

views

two conversionService bean created

I am getting an error while trying to up my application Description: Field conversionService in com.profectus.dashboard.service.impl.DashBoardSettingsServiceimpl required a single bean, but 2 were found: - mvcConversionService: defined by method 'mvcConversionService' in class path resource [org/spr...
Ravat Tailor
1

votes
1

answer
112

views

Consul is throwing error of spring boot health Url (401)

I have configured consul with my spring boot application, I have basic Auth to access the url. If I hit localhost:8081/health it is asking for basic authentication and status is UP but in consul UI it is throwing an error HTTP GET http://192.168.1.155:8081/health: 401 Output: HTTP Status 401 - Ful...
Ravat Tailor
1

votes
0

answer
36

views

elastic search file converting first letter of field to lowercase automatically

I am trying to upload data on elastic search though java file. @Document(indexName = 'testinventorydata', type = 'testinventory') public class InventoryData { @Id private String id; @Field(type = FieldType.Long, index = FieldIndex.analyzed) private Long invStoreId; @JsonFormat(shape = JsonFormat.Sha...
Ravat Tailor
1

votes
0

answer
26

views

TraceId from de.siegmar.logbackgelf.GelfUdpAppender to graylog

I am using de.siegmar.logbackgelf.GelfUdpAppender from pushing logs to graylog but TraceId is not coming into graylog. Has tried with putting logging_correlation_id:%X{X-B3-TraceId:-} but instead of tracId, %X{X-B3-TraceId:-} is printing. Can anyone please help me to solve this.
Ravat Tailor
1

votes
1

answer
499

views

Anonymous Inner class to lambda

In Sonarcube I am getting an error to convert the following code to Lambda but facing difficulty. private MeterFilter getDefualtConfig() { return new MeterFilter() { @Override public DistributionStatisticConfig configure(Meter.Id id, DistributionStatisticConfig config) { return DistributionStatistic...
Ravat Tailor
1

votes
2

answer
2.2k

views

Spring Boot : Context Path in application properties giving an error

I have set up context path in my application.properties but while running the spring boot app I am getting an Error like:- ContextPath must start with '/' and not end with '/' Here is Code:- DemoApplication :- package com.ravat.demo; import com.ravat.controller.DemoController; import org.springfra...
Ravat Tailor
2

votes
2

answer
34

views

How to Store Every request in same file

I am creating one service without using database. I am storing all my request data in file system. But the issue is on every request it is creating the new file again and again but i want to put every request data in same file. I am developing service using spring boot.
Ravat Tailor
3

votes
2

answer
1.1k

views

eclipse source folder is not java project, after importing project from git

I have imported project from git and after that converted that into a maven project. but while trying to add any class or package in my source folder I am getting an error source folder is not java project and also ctrl+space is not working. I have also tried in my repo mvn eclipse:eclipse but tha...
Ravat Tailor
3

votes
2

answer
635

views

LocalDateTime not storing in database

I am working on Spring data JPA, I have created an entity in which I am taking a date as LocalDateTime (Java 8). but while storing in DB it is not storing the actual date, it is storing some binary type value in DB. Should I use LocalDateTime while in DB or not, if not when should I use this java 8...
Ravat Tailor
2

votes
2

answer
680

views

How to provide external url to docker image

I am working on Docker Image, I am a beginner on Docker. I have one Docker Image, but what I want to update my Docker Image as that my Docker Image should accept the one external URL like:- and start the further processing on it. I do not have any clue how to do this, I am totally new on Docker and...
Ravat Tailor
1

votes
2

answer
1.8k

views

Spring boot jackson non_null property not working

I am using Spring boot 1.5.7-RELEASE. I am trying to set global non null Jackson property in my application. but it is not working. I have tried both in application.properties and bootstrap.properties but not working. spring.jackson.default-property-inclusion=NON_NULL spring.jackson.serialization-in...
Ravat Tailor