Open
Conversation
Update application.properties
P3 Production review changes
Java 17 and Spring Boot 2.6.3 Upgrade
krnsehgal06-gif
left a comment
There was a problem hiding this comment.
<title>AI Insurance Advisor | securetounsecured.com</title>
<style>
body { font-family: Arial; background:#0b2a4a; color:#fff; margin:0 }
.container { max-width:600px; margin:auto; padding:20px }
.chatbox { background:#ffffff; color:#000; padding:15px; border-radius:10px; height:420px; overflow-y:auto }
.msg { margin-bottom:10px }
.user { font-weight:bold; color:#0b2a4a }
.ai { color:#333 }
input, button {
width:100%; padding:12px; margin-top:10px;
border-radius:6px; border:none; font-size:16px
}
button { background:#f4c430; cursor:pointer }
.footer { margin-top:15px; font-size:14px; text-align:center }
</style>
<script>
async function send() {
const input = document.getElementById("input");
const chat = document.getElementById("chat");
if (!input.value) return;
chat.innerHTML += `
AI Insurance Advisor
Smart guidance. Human support. 100% online.
Send
Final purchase handled by licensed advisor
📞 8076009848
📞 8076009848
You: ${input.value}
`;
const res = await fetch("/chat", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ message: input.value })
});
const data = await res.json();
chat.innerHTML += `AI: ${data.reply}
`;
chat.scrollTop = chat.scrollHeight;
input.value = "";
}
</script>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
in Chapter #6
You can also use functional programming in this class EmailVerificationService.
but I might change some code of EmailVerificationRepository like this .
EmailVerificationService interface
`public interface EmailVerificationService {
}`
and
EmailVerificationServiceImpl class
`@Service
public class EmailVerificationServiceImpl implements EmailVerificationService {
private final EmailVerificationRepository repository;
}`
EmailVerificationRepository interface
public interface EmailVerificationRepository extends JpaRepository<EmailVerification, String> { Optional<EmailVerification> findByUsername(String username); }but I'm using @builder in Entity classes
this is how I used functional programming in this project