This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans.xsd | |
| http://www.springframework.org/schema/context | |
| http://www.springframework.org/schema/context/spring-context.xsd"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.luv2code.web.jdbc; | |
| import javax.sql.DataSource; | |
| import java.io.IOException; | |
| import java.sql.SQLException; | |
| import java.sql.Statement; | |
| import java.util.List; | |
| import javax.annotation.Resource; | |
| import javax.servlet.RequestDispatcher; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.luv2code.springdemo; | |
| import java.util.logging.ConsoleHandler; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| import java.util.logging.SimpleFormatter; | |
| import javax.annotation.PostConstruct; | |
| import org.springframework.beans.factory.annotation.Value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.luv2code.springdemo; | |
| import java.util.logging.ConsoleHandler; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| import java.util.logging.SimpleFormatter; | |
| import org.springframework.context.annotation.AnnotationConfigApplicationContext; | |
| public class MyLoggerConfig { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:context="http://www.springframework.org/schema/context" | |
| xmlns:tx="http://www.springframework.org/schema/tx" | |
| xmlns:mvc="http://www.springframework.org/schema/mvc" | |
| xsi:schemaLocation=" | |
| http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans.xsd | |
| http://www.springframework.org/schema/context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.luv2code.springdemo.config; | |
| import java.beans.PropertyVetoException; | |
| import java.util.Properties; | |
| import java.util.logging.Logger; | |
| import javax.sql.DataSource; | |
| import org.hibernate.SessionFactory; | |
| import org.springframework.beans.factory.annotation.Autowired; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.hypen.mycare.config; | |
| import java.beans.PropertyVetoException; | |
| import java.util.Properties; | |
| import java.util.logging.Logger; | |
| import javax.sql.DataSource; | |
| import org.hibernate.SessionFactory; | |
| import org.springframework.beans.factory.annotation.Autowired; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.luv2code.springdemo.rest; | |
| public class BadDataException extends RuntimeException { | |
| public BadDataException() { | |
| // TODO Auto-generated constructor stub | |
| } | |
| public BadDataException(String message) { | |
| super(message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.luv2code.springdemo.config; | |
| import java.beans.PropertyVetoException; | |
| import java.util.Properties; | |
| import java.util.logging.Logger; | |
| import javax.sql.DataSource; | |
| import org.hibernate.SessionFactory; | |
| import org.springframework.beans.factory.annotation.Autowired; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Connecting to MySQL Database Server v8 with JDBC Driver, MySQL Connector/J v5.1.x | |
| Starting with MySQL Database Server v8, the MySQL database has changed the default authentication plugin for MySQL server from mysql_native_password to caching_sha2_password. | |
| As a result, you need to make minor changes to the security configuration for your user account. Also, there were some recent critical bug fixes in the 5.1.x JDBC driver, MySQL Connector/J. | |
| 1. Download from this link: | |
| JDBC Driver, MySQL Connector/J 5.1.46 | |
| https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.46.zip |