must Janik wrote:Still waiting Can not find answer for that.
must Janik wrote:Could you tell me, why in service Spring Context is not involved and in controller it is? Where it comes from?
meenakshi sundar wrote:Another interesting read on the functional web framework...
meenakshi sundar wrote:I have never personally used, but I have seen some examples around ...
Spring 4 on Java 8
meenakshi sundar wrote:[
Appreciate your answer, though you say it is up to the individual's personal preference,
you must be having some reason for your choice...
meenakshi sundar wrote:I personally use Groovy for writing some useful and fun scripts...
I have read somewhere that (also looked at few examples) Groovy DSL feature can be leveraged for Spring configurations and may season programmers use Groovy for
Spring configuration extensively, What is your personal preference and have you discussed using Groovy as a Configuration method
in your book?
must Janik wrote:Hey. Im coming to you with question.
I wanted to test same method from controller and service layer.
Here is it:
Here is the test for Controller:
And here is for service;
The question is... Why do I have to use @MockBean annotation in controller, why not @Mock for BookFindOperationsService bookService. Same question for service, why do I need to @Mock repository, why not to use @MockBean?
meenakshi sundar wrote:Craig,
With many of options available via XML configuration, Component scanning, and auto wiring, @Inject annotation,
what would be your advice and the best practice to choose the best DI mechanism suitable for a given situation in Spring?
Julian Isaac wrote:What's the quickest and easiest way to create a Spring context to use in junit test classes?
Are there strategies for this covered in the book?
Igor Janicki wrote:@Peter Rooke: Thanks.
Now I think how to perform tests with JUnit.
I would add some @tests using Apache HTTP client.
However how to start automatically the local server with @Controller ?
I use Eclipse and Maven.
Chintan Sanghavi wrote:I am really excited to see my much awaited title is out now. Many thanks Craig for helping many Spring developers to put Spring really in action over through past four editions.
Spring as well as project development landscape has changed a lot over the years. Would like to understand how this revised edition can help to understand and adopt to micro-service architecture quickly, as it's need of an hour for today's agile world ?
Will Myers wrote:Hi,
Does Spring 5 allow you to inject a lambda into a bean via configuration?
M Khalid wrote:Hi,
I think Spring is supporting many other frameworks and libraries and expanding its dependencies, can you please share some insight on which are the most recent and useful integration done with Spring/Spring Boot.
Isaac Ferguson wrote:I am starting with the migration for it I am using the Spring Initializr to create the basic structure, but which one shoudl I use?
The project to migrate contains Rest Services and credentials. Which starter should I use ?
Matt Campbell wrote:Hello Craig,
In your book, what tools/frameworks do you use/recommend for service discovery/load balancing? Do your examples use any specific cloud provider? Can we expect to have something fully configured by the end of the book?