Archive For Required Library: ‘.m2/repository/spring-tx-5.0.10.release.jar’ In Project Cannot Be Read Or Is Not A Valid Zip File

When you develop a spring java project with maven, sometimes you may encounter errors like below. This is a crazy error because the reason is not very clear. I tried a lot of methods such as rebuild the project, recreate the project, and even delete the .m2 directory to re-download all the maven jar files

Archive For Required Library: ‘.m2/repository/spring-tx-5.0.10.release.jar’ In Project Cannot Be Read Or Is Not A Valid Zip File Read More »

How To Install Spring Boot CLI On Mac, Linux And Windows

Spring boot CLI is a spring command-line tool that can help you develop spring applications quickly and easily. It utilizes spring’s start dependence and automation configuration features, then developers can focus on the business logic code, does not need to care about the project jars dependency and configuration. This article will tell you how to

How To Install Spring Boot CLI On Mac, Linux And Windows Read More »

How To Read External Properties File In Spring Using PropertyPlaceholderConfigurer

If you want to save configuration data in an external properties file, and then read them in the spring application, you can use PropertyPlaceholderConfigurer class. This class has a location attribute where you can specify the external properties file location. It then can read the data from the external properties file, and you can use

How To Read External Properties File In Spring Using PropertyPlaceholderConfigurer Read More »

How To Fix MySQL JDBC 08001 Database Connection Error

When you use MySQL JDBC driver to connect to MySQL database server. You may encounter bellow error messages. try { Connection connection = DriverManager.getConnection(“jdbc:mysql://localhost:3306/dev2qa?useSSL=false”,”test”,”666888″); } catch (SQLException ex) { ex.printStackTrace(); System.out.println(“SQL State : ” + ex.getSQLState()); } Below are the error messages. INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@36d64342: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,userAccountDao]; root of factory hierarchy com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:

How To Fix MySQL JDBC 08001 Database Connection Error Read More »