Skip to main content

Posts

poem

Recent posts

Swagger Documentation with Spring boot application for REST Services

Steps to integrate Swagger Documentation with Spring Boot Application: Step-1: Dependency addition in Maven < dependency >      < groupId >io.springfox</ groupId >      < artifactId >springfox-swagger2</ artifactId >      < version >2.6.1</ version > </ dependency > Step-2: Enable Swagger in your application Use the following annotations(highlighted in bold) in your Spring Boot Application java file: @SpringBootApplication @EnableSwagger2 @ComponentScan(basePackages={"com.test.controller"}) public class SpringBootApp extends SpringBootServletInitializer {  ------------- ------------- } @ComponentScan will be used to inform swagger which package to scan to generate documentation. My Complete Boot Application file looks as follows: import static springfox.documentation.builders.PathSelectors.regex; import java.util.Properties; import org....

Install Tomcat8 as Service in Windows

This topic will contains the steps to install Tomcat8 as a S ervice in Windows . -Go to the TOMCAT_HOME\bin folder. For example, my TOMCAT_HOME location is : C:\software\apache-tomcat-8.5.15 -Open Command prompt as Administrator and run the following command to install tomcat as service: C:\software\apache-tomcat-8.5.15\bin\service.bat install -Open/Refresh Services windows and check if the Tomcat8 service has been installed or not. If the service has been installed, you can see the following: -Once it is installed, run the following: C:\software\apache-tomcat-8.5.15\bin\tomcat8w.exe -A Service wizard will be opened. You can go to Java tab and cross verify the JVM and other library details. For example: -You can make this service as Automatic by changing the following: -Right click on the service and start the process. Tomcat server will be started using this. The is the easiest way to configure Tomcat8 as service. For any queries, please contact me...

It's All Mobile

In the digital era, where anything is available on finger tip and we want everything in our pocket, It will not be wrong to say that mobile devices have become our life line. These devices are impacting our lives on a daily basis. Today we have an app(as the modern world calls it) for everything. You name an application, its there on app store/play store. For any company(small or big), having a mobile application can be a smart way to connect with people and get started with their business very quickly.  I can say it has become a must first step for businesses to have mobile presence if they want to reach out to their customers easily and on time. This is high time for them to get their feet wet and jump into this App world. Today's world of technical innovation is taking business owners closer to their customers and giving them opportunity to know the customers need. This can be a good way to understand your customer instead of solving their problem. Demand for mobile software a...

Are you really trying to live the way you wanted to live few years back?

We all know "Change is law of nature" and there are events/moments in life, which changes our way of living. Most of the time we go with flow and eventually that becomes our way to lead the life. Sometimes, when we look back, and think whatever we had done during that moment, we could have done that in much better way. But as the life cycle moves on, it may happen that we may fall in same situation again  and whatever we are  doing now, it might happen in future when we recall our memories and feel that, it could have been done in much better way earlier.          I wanted to share my thoughts because, in my perception, some or the other day we all will be nostalgic and  would be thinking of our past events, our relations, our  behavior  at work place, our relations with friends, our bonding with society. Question comes in our mind "Was it better earlier or it could have been much sweet and memorable?".Therefore...

User Input Mechanism in Java

Recently while writing some java program. I wanted to quickly run some test cases using runtime inputs from console. I am working on some of the legacy system which runs on java1.5 and recently has been upgraded to java1.6 version. For taking user input during run time, I have always used Scanner API. But recently came to know about Console class. Though it was included as part of Java1.6 release. But I never used it any time. Just wanted to share some information on the available API which is used for user input: - Scanner (Included in Java1.5) - BufferedReader (Included in Java1.1) - Console (Included in Java1.6) From developers point, I assume following factors could be considered during the selection of any of the above APIs: If your input size is more, or more number of inputs is going to be used in the program, it is advisable to use BufferedReader instead of Scanner. It will be difficult to observe the speed for fewer inputs. But for huge data (for millions of...

Building an Efficient and Effective Team

Some days back I met one of my friend, who was hunting for new opportunity.  He asked me some simple questions which I felt difficult to answer. For example: “Is your next job application depends on your current team size?”     "How the size of team affects the productivity of team and individual?” etc... I tried my best to explain my experiences to him and am hoping many of us must be having some inputs to share. In IT companies we meet people who are either working in small team or managing some big teams. There are some enthusiasts who find comfortable working as individual contributor. But have we ever thought of any specific team size. I am not aware of any standard size. But if we talk about any sports, we know the size of team is fixed and if the size varies, it is going to impact the end result of the game. Does the same apply in case of project teams? If we take some similar example we find that team with small number are doing well then compared to...