Curious about the future of data-driven systems? Join our Data Engineering roundtable and learn how to build scalable data platforms.
Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.
Stats
| Reputation: | 520 |
| Pageviews: | 1.0M |
| Articles: | 11 |
| Comments: | 14 |
Comments
Jun 18, 2019 · Lindsay Burk
Thanks Arthur!
Jun 06, 2019 · Lindsay Burk
Oh, well in this case. The str and s should be the same String.
The problem with this approach that it has a big performance overhead.
I cheked it on an eight char pattern with 1000 cycles the runtime result are:
1 vs 60 ms
With more cycles, the difference is decreasing, but still significant.
With 10000000 cycle:
748 vs 2328 ms
Jun 02, 2019 · Lindsay Burk
What would you like to decide with this?
May 17, 2019 · Zoltan Raffai
Hi! Thanks for your kindness. :)
I wrote about this in the first chapter under The Spring Boot Approach. In your configuration file, under the server section you can set the tomcat server properties. Port number, context path name etc. to run your Spring boot application with. This won't take effect under externalized tomcat. These are just for the embeeded one.
May 15, 2019 · Zoltan Raffai
It would be best if it would work. :) Here the link from the official documentation: https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html
The yaml variants are only working where it is written. I tried out.
May 14, 2019 · Zoltan Raffai
Hi Brian!
It only works for .properties file. You can't handle yaml/yml files with it. So you can not solve every situation that approach.
May 14, 2019 · Lindsay Burk
What do you exactly mean under this article?
May 14, 2019 · Lindsay Burk
Thanks! I didn't know that there is such a bug in this library.
Oct 31, 2018 · Duncan Brown
Hi! For controller level error handling you should use the @ControllerAdvice annotation. Its specified exactly for Controllers where you can define different ResponseBodies with different http statuses related to the throwed exceptions.
Aug 28, 2018 · Lindsay Burk
Hi Jose!
Thanks for your perception! You've got the point. I'll examine the possibility to upgrade my article regarding this.
Aug 28, 2018 · Lindsay Burk
Actually, they all start with "final" :)
Jul 30, 2018 · DZone_karap
Hi! I checked your code. You're right. It works with Java-based configuration in this scenario and with Annotation as well.
I had a convention that it not work. Maybe they upgraded it in some prev versions, but I didn't find any source for that.
Thank you to reveal my mistake!
I'll update my post according to this. (Omit these lines.)
Best Regards,
Zoltan Raffai
Jul 25, 2018 · DZone_karap
Hi Angel!
Thanks for your thought. It's a very interesting topic!
Here you wire up the BeanFactory through Annotation, but it does not show up, what type of BeanFactory you'll get and how the RestTemplate class is configured to be achievable.
The interesting thing here, that if you configure your Spring framework to use Annotation-based bean configuration and you use the @Component annotation on your POJO-s. You will can't reach them through the native BeanFactory implementations.
As I know it's possible to achieve that: you need to write your own BeanPostProcessor where you go through the annotations.
In contrast, the ApplicationContext can auto-configure the BeanPostProcessor for itself, when the configuration is set to annotation-based.
If you use the @Autowired annotation for Dependency Injection get the beans through the ApplicationContext.
So all in all, you've got true if we not too strict because it can support.
Please let me know if missed something.
Jul 25, 2018 · DZone_karap
Hi!
Thank you for the feedback Frédéric!
You've got right! I'll correct it.
Best Regards,
Zoltán Raffai