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 jvm.pablohdz.prototypepatternapi; | |
/** | |
* implementation of the Student class with copy constructor | |
* */ | |
public class Student { | |
int rollNo; | |
String name; | |
public Student(int rollNo, String name) { |
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
{ | |
"httpStatus": 200, | |
"message": "get all catalogs success", | |
"messageParams": null, | |
"data": [ | |
{ | |
"id": "62322a33b5c8261e807088e5", | |
"providerMessageId": "bce05599-5c47-4ba5-b1c9-3337e19f3819", | |
"type": "form", | |
"conversationId": "622f624d760843000861b52b", |
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 org.example.observer; | |
import org.junit.jupiter.api.Test; | |
import org.mockito.Mockito; | |
class ConcreteSubjectTest { | |
@Test | |
void observersHandleEventsFromSubject() { | |
// given |
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.chatbot.bulkmessages.controller; | |
import java.io.IOException; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.util.LinkedMultiValueMap; | |
import org.springframework.util.MultiValueMap; | |
import org.springframework.web.bind.annotation.CrossOrigin; |
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
spring.datasource.url=jdbc:mysql://localhost:3306/jwt_app | |
spring.datasource.username=root | |
spring.datasource.password=my-secret-pw | |
spring.jpa.hibernate.ddl-auto=create | |
spring.jpa.show-sql=true | |
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect | |
spring.jpa.properties.hibernate.format_sql=true |
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 jvm.pablohdz.spring09testingcontrollers.controller; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.extension.ExtendWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; | |
import org.springframework.test.context.junit.jupiter.SpringExtension; | |
import org.springframework.test.web.servlet.MockMvc; | |
import org.springframework.test.web.servlet.MvcResult; | |
import org.springframework.test.web.servlet.RequestBuilder; |
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 jvm.pablohdz.controller; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
@RestController | |
@RequestMapping("/foo") | |
public class FooController { |
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
plugins { | |
id 'application' | |
} | |
group 'com.shop.items' | |
version '1.0-SNAPSHOT' | |
repositories { | |
mavenCentral() | |
} |
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
handlers=java.util.logging.ConsoleHandler, java.util.logging.FileHandler | |
# To also add the FileHandler, use the following line instead. | |
# handler=java.util.logging.FileHandler, java.util.logging.ConsoleHandler | |
# level of all loggers and handlers | |
.level=INFO | |
# FileHandler specific props | |
java.util.logging.FileHandler.pattern = src/main/java/logs/main%u.log |
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.pluralsight.jdbc.course.m7c3; | |
import javax.sql.rowset.CachedRowSet; | |
import javax.sql.rowset.RowSetFactory; | |
import javax.sql.rowset.RowSetProvider; | |
import java.io.*; | |
import java.sql.SQLException; | |
public class RowSet | |
{ |