Category "java"

Plugin [id: 'org.jetbrains.intellij', version: '1.1.2'] was not found in any of the following sources

When i try to create a Gradle project in Intellij IDEA, with JAVA & Intellij Platform Plugin as options, i am getting following error as shown below. Build

How to exclude a null value computed in JsonValue from JSON serialized by Jackson?

class Wrapper(private val value: String?) { @JsonValue fun asValue(): String? { return value } } val mapper = ObjectMapper()

Dagger-Hilt Did you forget to apply the Gradle Plugin? But I applied the plugin

Hello I'm trying to use the Dagger Hilt library In my project but when I'm trying to build it, it fails with this message public final class MyApplication exten

How do I add environment variables in IntelliJ Spring Boot project

I Am trying to add an environmental variable inside my spring-boot application.properties file. I know how to add it normally on a non spring-boot project, but

Unable to persist Spring data mongodb using save on repository

I am using Spring Data Mongodb and Embeded mongoDB to persist the data. Pom.xml <dependency> <groupId>org.springframework.boot</group

Adding Java home not working on windows ZSH

I have java installed and set up properly and works fine with the normal Windows Powershell. However, I'm trying to make java work with the ZSH terminal and I c

Make R2DBC use the same connection for all interactions with the database in a @Transactional method (Java, Sprint)

Motivation I have a service which I want to make @Transactional. My service is storing complex data in multiple tables, there is a referential integrity between

I am going to use log4j version 2.3.2 . is it safe for me? [closed]

I want to use log4j library for my web app that is created with Java 6. Which version is safe for me ? Do you recommend log4j or log4j2 consid

Mvn is not recognized as a command on Github Actions on Windows a self hosted runner

I set up a simple Github Actions workflow simply to check if my self-hosted Windows Virtual Machine is able to recognize the installed java/git/maven versions.

Servlet returns "HTTP Status 404 The requested resource (/servlet) is not available"

I have an HTML form in a JSP file in my WebContent/jsps folder. I have a servlet class servlet.java in my default package in src folder. In my web.xml it is map

Many to many relationship doesn't add new Entity into the table

I have two entities Book and BookTag. They are connect by many to many relationship. @Getter @Setter @Entity @NoArgsConstructor @AllArgsConstructor @Builder(toB

Using custom function call in CriteriaQuery multiselect cause a null pointer exception

I have a spring boot based application with hibernate-types included to properly map Postgres array to JPA entities. It works fine, but I run into an issue when

How to insert records into a Nested HashMap?

I want to create a nested HashMap of: var myHashMap = new HashMap<String, HashMap<String, int>>(); And I want to insert records into the inner Hash

train a model with djl

Good evening ! I'm starting with DJL. My code source is here https://github.com/ngandji/green_anthill.git someone can tell what is wrong in my code! I learn wit

Using EntityGraph with SuperClasses and Embedded Attributes

I would like to use the EntityGraph Feature because of the known n+1 Problem. I have the following Entities structure: @Entity @Table(name = "customer") public

Android: How do I programmatically DOWNLOAD an SSL certificate from a provided HTTPS URL?

try { final SSLSocket sslSocket = (SSLSocket)SSLSocketFactory.getDefault().createSocket(); Timber.e("RAWR: BEFORE CO

Making a method level annotation that tells the method to save all logs to database

My problem is that a lot of methods in my project now require to have their logs stored, AOP isn't very viable since there isn't an appropriate point to cut, so

Socket connection not workin in flutter release apk

I am new to working with sockets, and I am working on this project where a connection between my android flutter app and a java server is needed, to do this I a

Maven project couldn't resolve archetype org.apache.maven.archetypes

When I begin to create a maven project I have this problem couldn't resolve archetype org.apache.maven.archetypes I can’t create maven project in my eclip

Spring Boot Server not loading React webpage

Issue: Hello! I've been spending a fair bit of time now trying to get a Spring Boot server to host a React Application. I've been able to work out nearly everyt