Posts

Showing posts from 2017

Cannot determine embedded database driver class for database type NONE - SpringBoot

When we create Spring boot starter web project in STS and selected Apache Derby (Any Embeded Database) while creating project and on running project as Run as Java Application   it may give following Error :- *************************** APPLICATION FAILED TO START *************************** Description: Cannot determine embedded database driver class for database type NONE Action: If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active). Solution: We have to add following annotation @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}) to the class having main() method. Need to import following: import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

Important points that programmers should remember while developing web application

There are a lot points to be considered but some of them I am writing here: 1.   Do  some  R & D about  the  business logic and make a plan  on  how you will implement it before you start writing the  code. 2.   Should write  codes in an  easy, understandable and maintainable way. 3.   Make sure you are developing  an  application  with a  consistent look and feel. 4.   Should  follow  OOP s . 5.   Exercise  best practices that are established in the industry. 6.   Maintain  the  Naming convention . 7.   Transaction should be used properly and where ver  necessary. 8.   Remember  the  concurrency issue while coding. 9.   Validation should be checked properly.  It  should be done at  the  client side  as  far  as  possible. 10.   User or role based permission should be implemented properly so that  the  user  is not able to  do anything if not permitted. 11.   Should  write  comments where ver  necessary. 12.   Should be aware about  the  security of applic

Sort Map by Keys.

import java . util . HashMap ; import java . util . Map ; import java . util . TreeMap ; public class SortByKeyExample1 { public static void main ( String [ ] args ) { Map < String , String > unsortMap = new HashMap < String , String > ( ) ; unsortMap . put ( "Z" , "z" ) ; unsortMap . put ( "B" , "b" ) ; unsortMap . put ( "A" , "a" ) ; unsortMap . put ( "C" , "c" ) ; unsortMap . put ( "D" , "d" ) ; unsortMap . put ( "E" , "e" ) ; unsortMap . put ( "Y" , "y" ) ; unsortMap . put ( "N" , "n" ) ; unsortMap . put ( "J" , "j" ) ; unsortMap . put ( "M" , "m" ) ; unsortMap . put ( "F" , "f" ) ; System . out . pr

Skype Hidden Commands

Command Description /add [Skype Name] Adds a contact to the chat. For instance:  /add alex_cooper1  will add that member to the chat. Some Skype names also begin with "live:" (example:  live:alex_cooper1 ) /alertson [text] Allows you to specify what needs to appear in a chat for you to be notified. For example,  /alertson London  will only alert you when the word "London" appears in the chat. /alertsoff Disable message notifications. /find [text] Finds specific text in a chat. For example,  /find Charlie  will return the first instance of the word "Charlie" in the chat. /get admins Details the people administrating the chat. /get options Details active options for current chat - see /set options below for a list of the options available. /get role Details your role in the chat. /showmembers Displays list of members and their roles. /get uri Creates a URL link that other people can use to join the group chat.