Savollar - Spring Framework Uz
368 subscribers
199 photos
193 links
😊 Hech qachon izlanishdan to'xtamang!
Download Telegram
#savol_15 #javob_berildi
An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.springframework.cloud.stream.function.FunctionConfiguration$FunctionBindingRegistrar.filterEligibleFunctionDefinitions(FunctionConfiguration.java:961)

The following method did not exist:

'java.lang.reflect.Type org.springframework.cloud.function.context.catalog.FunctionTypeUtils.discoverFunctionType(java.lang.Object, java.lang.String, org.springframework.context.support.GenericApplicationContext)'

...
Assalom Alaykum, projectga kafka qo'shgandim, kafka va zookeperlar run bo'lib turibdi lekin projectni run qilsam shunaqa error beryabdi
Savol muallifi: Vakhobiddin Ziyo
..........................................................
Javob:
Javob muallifi: Vakhobiddin Ziyo
izohdagi javob linki

............................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_16 #javob_berildi
Assalomu alaykum .crt va private key bilan .jks yasagan edim lekin resttemplatega set qilib iwlatsam iwlamayabdi cURL zapros orqali o`tvotti iwlatib ko`rganla bormi?\
Savol muallifi: Abdurahim
..........................................................
Javob: yoq Resttemplate bilan o`xshadi
Javob muallifi: Abdurahim
izohdagi javob linki

.................................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_17 #javob_berildi
Yaxshi java yoki python orgatadigan uchebniy sentr maslahat bera olasilami, napa, najot talim, pdp dan tashqari
Savol muallifi: B
..........................................................
Javob: mohirdev
Javob muallifi: Ваҳобиддин Зиё
izohdagi javob linki

..................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_18 #javob_berildi
Ассаломуалейкум бот ишга чушгандан кегин группа га камрог савол чушадигон боп колди. Олдин копрог малумот олйаптодим бошка одам лар берган саволлар дан. Кегин копчилик жовоб кайтарйаптоди. Админ лар дан илтимос бот ни очирворинг лар йоки кайтадан кориб чикинг лар
Savol muallifi: Рахимов Нуъмон
..........................................................
Javob: lkn ko'pchilik bir xil fikrda turgan bo'lishiyam mn
Javob muallifi: laziz
izohdagi javob linki

..............................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_19 #javob_berildi
Good day, dear brothers. As-salamu alaykum. What is the starting/medium salary of a Java developer with all the Spring stack perks?
Savol muallifi: Meiirlan
..........................................................
Javob: its about 400-700$ for beginners in Uzbekistan
Javob muallifi: Shavkat T
izohdagi javob linki

...............................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_20 #javob_berildi
Assalomu alaykum. Extended qilingan classga almashtirganda yangi funksiyalar ko'rinmaydi, shunga qanaqa yechim qilinadi?

Strukturani o'zgartirish kkmi yoki generic lardan foydalanishmi..?
Savol muallifi: laziz
Rasm 1

..........................................................
Javob: (CarService) service

Cast qilib ishlatasizda
Javob muallifi: Xudoyshukur Jo'rayev
izohdagi javob linki

................................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_21 #javob_berildi
Assalomu alaykum. Savol bor edi. Tizimdagi userga notification jo`natiladi va u bazaga saqlanadi. U user shu xabarni ko`rganidan ma'lum vaqt o`tgandan so`ng shu saqlangan xabarni qanday o`chirib yuborsa bo`ladi? @Scheduled dan foydalanmagan holda
Savol muallifi: JALOLIDDIN
..........................................................
Javob: Userga notification jo'natilgandan keyin, o'sha message ni ko'rilgan ko'rilmagan degan qiymati bo'ladi. Userga jo'natilsa va ko'rilsa message ni o'sha vaqtning o'zida ko'rilgan sifatida belgilab, o'chirib yuborasiz. Yoki bitta thread yozib qo'yasiz va o'sha ko'rilgan messagelarni o'chirib ketaverasiz doimiy.
Javob muallifi: Boburshox👑 Norboyev
izohdagi javob linki

...................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_22 #javob_berildi
Dockerda java app kutarilgan containerda , postgres bn redis ham bor ular ham alohidacontainerlarda postgresni connect qilishda postgres hostiga postgres container nameni berganman ishlayapdi ln redisda connect qilolmayapdi , hostiga quyganda .


````
@Bean
public MessageSource messageSource() {
ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource();
messageSource.setBasename("classpath:messages");
messageSource.setDefaultEncoding("UTF-8");
return messageSource;
}

@Bean
JedisConnectionFactory jedisConnectionFactory() {
JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory();
jedisConnectionFactory.setHostName("redis_host");
jedisConnectionFactory.setPort(6379);
jedisConnectionFactory.setUsePool(true);
jedisConnectionFactory.getPoolConfig().setMaxIdle(30);
jedisConnectionFactory.getPoolConfig().setMinIdle(0);
return new
#savol_23 #javob_berildi
Assalomu alaykum. postmanda date ni qanaqa tartibda berish kere. masalan mahsulot yaroqlilik muddatini.
Savol muallifi: Coder98
..........................................................
Javob: Default holatda yyyy.MM.dd bulishi kerak without timestamp bulsa siz qandaydir uziz formatini uzgartirmagan bulsangiz
Javob muallifi: Shoxzod Ravshanov
izohdagi javob linki

..........................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_24 #javob_berildi
Error response from daemon: Ports are not available: listen tcp 0.0.0.0:2181: bind: An attempt was made to access a sock
et in a way forbidden by its access permissions.
Savol muallifi: Mus'ab
Rasm 1

..........................................................
Javob: https://github.com/docker/for-win/issues/9272
Javob muallifi: Boburshox👑 Norboyev
izohdagi javob linki

...............................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_25 #javob_berildi
Assalom aleylum savolim bor edi,
@JoinColumn annotatsiyasini vazifani columga nom qotish uchun lekin uni ishlatmasa ham ozi nomi bn yoziladiku, unda nima uchun bu annotatsiya bizga kereK
Savol muallifi: .
..........................................................
Javob: buni relation ship da ishlatasiz jadvalingizga boshqa jadvalni boglamoqchi bulsangi. @OneToOne @OneToMany @ManyToOne @ManyToMany larda ishlatasiz vazifasi nom berishingiz mumkin uzingiz , NotNull ni quyishingiz mumkin optional=false desangiz shu ish quyib beradi @Column degan annotatsiya nima vazifa bajarsa bu ham shuni bajaradi faqat bu bog'lanishlar uchun
Javob muallifi: Shoxzod Ravshanov
izohdagi javob linki

.....................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_26 #javob_berildi
Javada Static methodlar non static methodni chaqirolmaydi. LEKIN static void mainda Boshqa non static methodga murojaat qilsam ishlayapti. BU nima degani?.
Savol muallifi: First name
..........................................................
Javob: Non static ga obyekt olib keyin murojaat qilasiz. Main metodda ham boshqa metod static boʻlsagina toʻgʻridan toʻgʻri murojaat boʻladi.
Javob muallifi: Abdulvahid
izohdagi javob linki

................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_27 #javob_berildi
assalomu aleykum, jpa da getById(Long id) methood ihslatsam No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.example.gm.entity.AutoShop$HibernateProxy$DgRWvj5r["hibernateLazyInitializer"]) xatolik berayabdi lekin findbyId() orqali get qilsam ishlayabdi, oldin bunday xatolik bo'lmagandi,
Savol muallifi: Sardorbek Matniyazov
..........................................................
Javob: 1. spring.jackson.serialization.fail-on-empty-beans=false
Javob muallifi: Sanjar Suvonov
izohdagi javob linki

...................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_28 #javob_berildi
Assalomu alaykum databasega connection ololmayapti, nimadan bo'lishi mumkin?
Savol muallifi: Dilnoza Bekmurotova
Rasm 1

..........................................................
Javob: PlSql dan ulanganiga ishonch hosil qiling, success ulansa keyin intelij da ulanib koring
Javob muallifi: Nozimbek Xamidovich
izohdagi javob linki

..........................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_29 #javob_berildi
Assalomu aleykum hammaga bazada negadur user_id ni id si bilan generatsiya qila olmayapti user_id ruchnoy generatsiya qlib beriladida aslida shunga nima qilsa bo'ladi akalar sequenceId bilan qilsam bo'lyapti
Savol muallifi: Shoxrux
Rasm 1

..........................................................
Javob: cardInfo ni ichida @ManyToOne qilib user bilan bog'lang

yondashuv sal g'alati bopti

ElementCollection asosan elementlar bilan ishlatiladi, entity bilan relationship lar
Javob muallifi: Nozimbek Xamidovich
izohdagi javob linki

.....................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_30 #javob_berildi
Assalom alaykum, telegram bootni spring bootda qilingan birorta yaxhsiro sitemi yo tutorialmi bormi
Savol muallifi: Temurbek Zarifov
..........................................................
Javob: telegram bot demoqchi bogansiz manimcha

@SaidovSirojiddin akani masterclass da korsatgan videolari bor 1ta variant

havola 👈
Javob muallifi: Shavkat T
izohdagi javob linki

..........................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_31 #javob_berildi
Bean qilib e'lon qilingan classlarni run berganimda yarata olmayapti hammasiga annatatsiyalari quyilgan
Savol muallifi: Shoxzod Ravshanov
..........................................................
Javob: JedisConnectionFactory null kelayotagni uchun propertyda port i va host ini berib quyish kerak ekan
Javob muallifi: Shoxzod Ravshanov
izohdagi javob linki

..................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_32 #javob_berildi
FAILURE: Build failed with an exception. Bu qanday exception? Spring bootda hali yangiman, bugun ustanovka qilsam manashunaqa exception chiqardi.
Savol muallifi: Feruz
..........................................................
Javob: yuklab olishda qayerdadir failed bo'lgan manimcha, qaytadan project ochib ko'ring !
Javob muallifi: Javohir Temirov
izohdagi javob linki

.................................................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_33 #javob_berildi
Assalomu alaykum.

Savolim RabbitMQ bo'yicha edi.


Spring & RabbitMQ integratsiya qildim, muammo yo'q, shunaqa task berildi message deadletter queue ga tushishi kerak, tushira olmayapmann, consumer da 500 error beradigan ham qilib kordim, barbr deadletter ga tushmasdan kutib turibdi doimiy queue da, max attempt larini kamaytirib ham kordim
Savol muallifi: Temurmalik
..........................................................
Javob: barcha urinishlarda exception bersa o'tadi
Javob muallifi: Jabborov Sherzod
izohdagi javob linki

........................................
Savol berish uchun @spring_framework_savol_bot ga yozing
#savol_34 #javob_berildi
Assalomaleykom bir savol boridi spring securityda jwt tokenli security hamda OAuth2 turlari manimcha kop qollaniladi bulardan qaysibirini prayect ishlatgan yaxshi bir biridan afzalliklari nimada qisqacha tushuncha bera olasilarmi
Savol muallifi: Shaxzodxoja
..........................................................
Javob: https://link.medium.com/GjourDDe9nb
Javob muallifi: Channel
izohdagi javob linki

.................................
Savol berish uchun @spring_framework_savol_bot ga yozing