Skip to content

Commit

Permalink
SQL script updated
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhan98 committed May 9, 2020
1 parent 2b0a5db commit 8a7e6b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion sql/DB_INSERT.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
insert into users(mobile, oauth_id, notif_token, role) values('sfdbgffed','sfdbgffed','["token_sfdbgffed"]','SUPER_ADMIN');
insert into users(mobile, oauth_id, role) values('9798099763','r2PoBWesLMaQevHdyXGKIKTC0Ma2','SUPER_ADMIN');

insert into place values(1,'SSN College of Engineering','https://www.foodiesfeed.com/wp-content/uploads/2019/04/mae-mu-oranges-ice-349x436.jpg','Kelambakkam',0);
insert into place values(2,'VIT University','https://www.foodiesfeed.com/wp-content/uploads/2019/04/mae-mu-oranges-ice-349x436.jpg','Vandaloor',0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServl
}

String responseFromServer = " ";
try{
try {
String responseBody = IOUtils.toString(responseWrapper.getContentInputStream(), UTF_8);
JsonNode responseJson = objectMapper.readTree(responseBody);
ResponseEntity<JsonNode> responseEntity = new ResponseEntity<>(responseJson, responseHeaders, responseStatus);
responseFromServer = responseEntity.getBody().toString();
}catch (Exception e){
} catch (Exception e) {

}

Expand Down
22 changes: 4 additions & 18 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.url = jdbc:mysql://localhost:3306/zinger

#spring.datasource.url=jdbc:mysql://db4free.net:3306/sfdbgffed
#spring.datasource.username=dasvfdbgfvsd
#spring.datasource.password=12345678

#spring.datasource.url=jdbc:mysql://localhost:3306/sfdbgffed
#spring.datasource.username=root
#spring.datasource.password=Logesh5$

spring.datasource.url=jdbc:mysql://localhost:3306/food
spring.datasource.username=root
spring.datasource.password=harsha@sql

firebase.credential.path = src/main/resources/zinger-fb-adminsdk.json
spring.datasource.url = jdbc:mysql://localhost:3306/zinger

# Replace your 'mysql_username' and 'mysql_password' with your MySql credentials
#spring.datasource.username = mysql_username
#spring.datasource.password = mysql_password
spring.datasource.username = mysql_username
spring.datasource.password = mysql_password

# Replace the below path with your Firebase credentials file path
# firebase.credential.path = src/main/resources/zinger-fb-adminsdk.json
firebase.credential.path = src/main/resources/zinger-fb-adminsdk.json

0 comments on commit 8a7e6b2

Please sign in to comment.