DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

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.

Threat Detection: Learn core practices for managing security risks and vulnerabilities in your organization — don't regret those threats!

Managing API integrations: Assess your use case and needs — plus learn patterns for the design, build, and maintenance of your integrations.

Avatar

Zoltan Raffai

Senior software engineer at Self employed

Tortel, HU

Joined Jul 2018

https://www.zoltanraffai.com/blog/

About

twitter: @zraffai ‏

Stats

Reputation: 520
Pageviews: 1.0M
Articles: 11
Comments: 14
  • Articles
  • Comments

Articles

article thumbnail
Java 9 Performance Improvements — Getting Started With Java Spring
Take a look at how some of the performance improvements and changes in Java 9 differ from Java 8.
June 19, 2019
· 9,135 Views · 4 Likes
article thumbnail
Permutation Check in Java
Check out this post to learn more about solving permutation check problems in Java.
June 17, 2019
· 15,167 Views · 9 Likes
article thumbnail
Decide if a String Has Duplicates
Check out this post and decide if a string has duplicates.
May 31, 2019
· 22,493 Views · 4 Likes
article thumbnail
Spring Boot With External Tomcat
Let's look at some common problems you might fave when starting a project from scratch.
May 14, 2019
· 120,965 Views · 29 Likes
article thumbnail
Using Logback With Spring
Learn more about losing logback with Spring.
May 13, 2019
· 20,097 Views · 4 Likes
article thumbnail
What Is Spring AOP?
While AOP isn't often discussed, it is used extensively in Spring. Maybe it's about time you got familiar with AOP and how to make it work for you.
Updated October 25, 2018
· 28,076 Views · 11 Likes
article thumbnail
Top 10 Java Interview Questions That I Recently Faced
Need help getting ready for your next Java interview? Check out this post on the top 10 Java interview questions to make sure you're prepared!
August 27, 2018
· 80,484 Views · 66 Likes
article thumbnail
Building a Basic CRUD RESTful Spring Boot MVC Application: Getting Started With Java Spring
In this article, I will show you how to extend its features by creating a Basic CRUD RESTFul Spring boot MVC application through an example.
Updated August 22, 2018
· 91,011 Views · 11 Likes
article thumbnail
Building Your First Spring Boot Web Application
Want to learn how to build your first Spring Boot web application using Maven and a web application controller? Check out this tutorial to learn how with Spring Boot!
August 13, 2018
· 235,836 Views · 19 Likes
article thumbnail
Spring Boot: The Most Notable Features You Should Know
Let’s see what Spring Boot looks like under the hood so you can get your program up and running as soon as possible.
July 30, 2018
· 125,838 Views · 23 Likes
article thumbnail
Difference Between BeanFactory and ApplicationContext in Spring
The BeanFactory and ApplicationContext interfaces both are used to get Spring beans from a container, however, they have major differences.
July 25, 2018
· 163,140 Views · 11 Likes

Comments

Permutation Check in Java

Jun 18, 2019 · Lindsay Burk

Thanks Arthur!

Decide if a String Has Duplicates

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

Decide if a String Has Duplicates

Jun 02, 2019 · Lindsay Burk

What would you like to decide with this?

Spring Boot With External Tomcat

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.

Spring Boot With External Tomcat

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.

Spring Boot With External Tomcat

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.

Using Logback With Spring

May 14, 2019 · Lindsay Burk

What do you exactly mean under this article?

Using Logback With Spring

May 14, 2019 · Lindsay Burk

Thanks! I didn't know that there is such a bug in this library.

What Is Spring AOP?

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.

Top 10 Java Interview Questions That I Recently Faced

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.


Top 10 Java Interview Questions That I Recently Faced

Aug 28, 2018 · Lindsay Burk

Actually, they all start with "final" :)

Difference Between BeanFactory and ApplicationContext in Spring

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

Difference Between BeanFactory and ApplicationContext in Spring

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.

Difference Between BeanFactory and ApplicationContext in Spring

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

User has been successfully modified

Failed to modify user

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: