Category "spring"

Spring injection not working for FF4J web console

I am try to get the FF4j (ff4j.org) web console to work. According to the documentation on the website, I use the following configuration: <servlet>

Page looks different on localhost than in Intellij preview

In my Spring app I have implemented form on my page and I don't know why it looks different when I run it on localhost from when i clicked in the Intellij chrom

How to split catalina.out for tomcat?

I have log4j2.xml properties: <?xml version="1.0" encoding="UTF-8"?> <Configuration> <Appenders> <Console name="Console" target

Spring scheduling task - run only once

Is it possible to schedule Spring service method only once at exactly specified time? For example, current time is 2pm but when I hit the action button I want t

Spring. Registering Aspect with @Bean

I need some help with creating Aspect bean. I have module A, B... and module starter-x. I have a couple of Aspects declared in module starter-x, and configura

Why does Jackson 2 not recognize the first capital letter if the leading camel case word is only a single letter long?

I'm using Spring 4 MVC with Jackson 2 for my service. For one of the operations I have a request object that has an attribute where the leading camel case word

Spring Boot doesn't load javascript file

After Spring starts, I open my ajax.html page, but nothing happens. There is no error message, the js file just doesn't start. If I write javascript-code in aja

How do I use Spring Mongo to group two fields and get a array of one fields based on the other?

Let me give a example here: Two entries in the collection Author: { "name" : "Joe" "Book" : "A" }, { "name" : "Joe" "Book" : "B" } Now, if I use the aggrega

Field in com.XXX required a bean of type that could not be found

I'm working on Spring over Hibernate project an i'm only in the beginning. I'm tryng to hav a SpringBootApplication which writes to MsSql some LogEntries object

How to auto deploy Docker Image on own server with GitLab?

I am trying to Google it for few hours, but can't find it. I have Java/Spring application (+MySQL if it matters) and I am looking to create CI for that. I know

Jaxb ignore the namespace on unmarshalling

I use Jaxb2 and Spring. I am trying to unmarshal some XML that are sent by 2 of my customers. Up to now, I only had to handle one customer which sent some xml

Error with H2 not creating the schema with my data.sql file

I have this project that I just started and using a model from my teacher I created a simple class to be mapped in the H2. So far no problems I run the applicat

After Migrating from spring boot 2.6.2 to 2.6.6 , getting org.springframework.context.ApplicationContextException

Error logs: org.springframework.context.ApplicationContextException: Failed to start bean 'inputBindingLifecycle'; nested exception is java.lang.NoSuchMethodEr

Apache camel setHeader in spring xml dsl

I just have assigned to apache camel project in the company where I work. The project is with spring xml dsl. I'm curious about strange behaviour of the attribu

What is wrong with my native query in jpa?

I'm sending a very simple query to the database, but I'm getting an error. It feels like I'm missing something very simple. I guess it wouldn't allow me to crea

swagger-ui No mapping found for HTTP request

I'm trying to document and existing Rest API a Spring MVC project (NOT spring boot!). My application is called api so http://localhost:9090/api would be the r

org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0

i'm this following error when i submit for copying data here is the code.. public String deleteExistingRecordWeekWise(String monthOrWeek) throws ApplicationExc

Hibernate 4 Could not obtain transaction-synchronized Session for current thread

I know it's far not a new question. For example lots of recipies can be found here both in question and replies. However, I didn't manage to solve mine. I user

IntelliJ (2018.3) with Thymeleaf - NO auto completion on paths to static content?

Code completion for paths and filenames do NOT seem to work in IntelliJ with Thymeleaf: th:src="@{...}" attributes - e.g. files in the resources/static/ folder.

Spring Security CAS - After Receiving the ticket unable to land to login screen

After receiving ticket unable to login to home screen, how I can debug the spring security part in my application? How can I debug the entry point of the appli