Skip to content

Commit c71cfd7

Browse files
committed
read file changes
1 parent 0cae316 commit c71cfd7

32 files changed

Lines changed: 301 additions & 5 deletions

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
# Prerequisites
2+
23
#####
3-
- JDK 11
4+
5+
- JDK 21
46
- Maven 3 or later
57
- MySQL 5.6 or later
68

7-
# Technologies
9+
# Technologies
10+
811
- Spring MVC
912
- Spring Security
1013
- Spring Data JPA
1114
- Maven
1215
- JSP
1316
- MySQL
17+
1418
# Database
15-
Here,we used Mysql DB
19+
20+
Here,we used Mysql DB
1621
MSQL DB Installation Steps for Linux ubuntu 14.04:
22+
1723
- $ sudo apt-get update
1824
- $ sudo apt-get install mysql-server
1925

2026
Then look for the file :
27+
2128
- /src/main/resources/accountsdb
2229
- accountsdb.sql file is a mysql dump file.we have to import this dump to mysql db server
2330
- > mysql -u <user_name> -p accounts < accountsdb.sql
24-
25-

target/classes/accountsdb.sql

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64)
2+
--
3+
-- Host: localhost Database: accounts
4+
-- ------------------------------------------------------
5+
-- Server version 5.7.18-0ubuntu0.16.10.1
6+
7+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10+
/*!40101 SET NAMES utf8 */;
11+
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12+
/*!40103 SET TIME_ZONE='+00:00' */;
13+
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14+
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15+
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16+
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17+
18+
--
19+
-- Table structure for table `role`
20+
--
21+
22+
DROP TABLE IF EXISTS `role`;
23+
/*!40101 SET @saved_cs_client = @@character_set_client */;
24+
/*!40101 SET character_set_client = utf8 */;
25+
CREATE TABLE `role` (
26+
`id` int(11) NOT NULL AUTO_INCREMENT,
27+
`name` varchar(45) DEFAULT NULL,
28+
PRIMARY KEY (`id`)
29+
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
30+
/*!40101 SET character_set_client = @saved_cs_client */;
31+
32+
--
33+
-- Dumping data for table `role`
34+
--
35+
36+
LOCK TABLES `role` WRITE;
37+
/*!40000 ALTER TABLE `role` DISABLE KEYS */;
38+
INSERT INTO `role` VALUES (1,'ROLE_USER');
39+
/*!40000 ALTER TABLE `role` ENABLE KEYS */;
40+
UNLOCK TABLES;
41+
42+
--
43+
-- Table structure for table `user`
44+
--
45+
46+
DROP TABLE IF EXISTS `user`;
47+
/*!40101 SET @saved_cs_client = @@character_set_client */;
48+
/*!40101 SET character_set_client = utf8 */;
49+
CREATE TABLE `user` (
50+
`id` int(11) NOT NULL AUTO_INCREMENT,
51+
`username` varchar(255) DEFAULT NULL,
52+
`userEmail` varchar(255) DEFAULT NULL,
53+
`password` varchar(255) DEFAULT NULL,
54+
PRIMARY KEY (`id`)
55+
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
56+
/*!40101 SET character_set_client = @saved_cs_client */;
57+
58+
--
59+
-- Dumping data for table `user`
60+
--
61+
62+
LOCK TABLES `user` WRITE;
63+
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
64+
INSERT INTO `user` VALUES (4,'admin_vp','admin@visualpathit.com','$2a$11$DSEIKJNrgPjG.iCYUwErvOkREtC67mqzQ.ogkZbc/KOW1OPOpZfY6');
65+
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
66+
UNLOCK TABLES;
67+
68+
--
69+
-- Table structure for table `user_role`
70+
--
71+
72+
DROP TABLE IF EXISTS `user_role`;
73+
/*!40101 SET @saved_cs_client = @@character_set_client */;
74+
/*!40101 SET character_set_client = utf8 */;
75+
CREATE TABLE `user_role` (
76+
`user_id` int(11) NOT NULL,
77+
`role_id` int(11) NOT NULL,
78+
PRIMARY KEY (`user_id`,`role_id`),
79+
KEY `fk_user_role_roleid_idx` (`role_id`),
80+
CONSTRAINT `fk_user_role_roleid` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
81+
CONSTRAINT `fk_user_role_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
82+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
83+
/*!40101 SET character_set_client = @saved_cs_client */;
84+
85+
--
86+
-- Dumping data for table `user_role`
87+
--
88+
89+
LOCK TABLES `user_role` WRITE;
90+
/*!40000 ALTER TABLE `user_role` DISABLE KEYS */;
91+
INSERT INTO `user_role` VALUES (4,1);
92+
/*!40000 ALTER TABLE `user_role` ENABLE KEYS */;
93+
UNLOCK TABLES;
94+
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
95+
96+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
97+
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
98+
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
99+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
100+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
101+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
102+
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
103+
104+
-- Dump completed on 2017-08-28 10:50:51
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#JDBC Configutation for Database Connection
2+
jdbc.driverClassName=com.mysql.jdbc.Driver
3+
jdbc.url=jdbc:mysql://db01:3306/accounts?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
4+
jdbc.username=admin
5+
jdbc.password=admin123
6+
7+
#Memcached Configuration For Active and StandBy Host
8+
#For Active Host
9+
memcached.active.host=mc01
10+
memcached.active.port=11211
11+
#For StandBy Host
12+
memcached.standBy.host=127.0.0.2
13+
memcached.standBy.port=11211
14+
15+
#RabbitMq Configuration
16+
rabbitmq.address=rmq01
17+
rabbitmq.port=5672
18+
rabbitmq.username=test
19+
rabbitmq.password=test
20+
21+
#Elasticesearch Configuration
22+
elasticsearch.host =192.168.1.85
23+
elasticsearch.port =9300
24+
elasticsearch.cluster=vprofile
25+
elasticsearch.node=vprofilenode
3.48 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1.68 KB
Binary file not shown.
5.83 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)