-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polishing code on dozer-spring-boot-autoconfigure #655
Polishing code on dozer-spring-boot-autoconfigure #655
Conversation
@kazuki43zoo ; but why have you removed it? if its not needed, please explain why. CC @vadeg |
Since Spring 4.3+ (Spring Boot 1.4+) , It is no longer necessary to specify the WDYT? |
@kazuki43zoo ; OK. The dozer bits are not strictly tied to a spring4 version, so if the end user wanted to use spring 4.0.0, they could. We only test the bits against the latest spring4 version. So with that in mind, i'd prefer not to change this as it might break things for people without them realising. |
@garethahealy package com.example.dozerdemo;
import org.dozer.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class DozerDemoApplication {
@Autowired
Mapper mapper;
public static void main(String[] args) {
SpringApplication.run(DozerDemoApplication.class, args);
}
@Bean
CommandLineRunner run() {
return __ -> System.out.println(mapper);
}
} Unfortunately, it does not work. In other words, the dozer-spring-boot-autoconfigure depends on feature of Spring Boot 1.4+(Spring 4.3+). Hence; I think you can accept this change. WDYT?
NOTE: Spring Boot 1.4+ work fine as follow:
|
@kazuki43zoo ; fair comment. |
Purpose
I've polished some codes on dozer-spring-boot-autoconfigure.
@Autowired
from constructorOpen Questions and Pre-Merge TODOs