Skip to content

Instantly share code, notes, and snippets.

View LunaticWolf's full-sized avatar

Yang LunaticWolf

  • DeviantArt
  • V.A Chatswood West NSW,Aus
View GitHub Profile
@LunaticWolf
LunaticWolf / Assignment3.html
Created January 15, 2019 21:57
Assignment 3
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
body{
font-size:0.8em;
font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
}
@LunaticWolf
LunaticWolf / Assignment1.html
Created January 15, 2019 21:56
Assignment 1
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title> Team Details </title>
<link rel="stylesheet" type="text/css" href="TeamDetails.css">
<script type="text/javascript" src="TeamDetails.js">
@LunaticWolf
LunaticWolf / assignment2.html
Created January 15, 2019 21:55
Assignment 2
<!DOCTYPE html>
<html>
<head>
<title>PlayerList</title>
<link rel="stylesheet" type="text/css" href="PlayerList.css">
<style type="text/css">
#dataDisplay
{
width:80%;
@LunaticWolf
LunaticWolf / Authentication Config.java
Created August 20, 2018 22:38
Authentication Java Config
package com.demo;
import java.util.ArrayList;
import java.util.Scanner;
import org.springframework.security.authentication.*;
import org.springframework.security.core.*;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
@LunaticWolf
LunaticWolf / web.xml
Created August 14, 2018 11:44
Nishant's webXml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>finalBRD</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/spring-servlet.xml,
/WEB-INF/spring-security.xml
</param-value>
@LunaticWolf
LunaticWolf / sprint-servlet.xml
Created August 14, 2018 11:43
nishant's springservletxml
<?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:mvc="http://www.springframework.org/schema/mvc" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
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
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd">
@LunaticWolf
LunaticWolf / spring-security.xml
Created August 14, 2018 11:42
nishant's spring-security
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.2.xsd">
<beans:import resource="spring-servlet.xml"/>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.demo</groupId>
<artifactId>finalBRD</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>finalBRD Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
DROP DATABASE IF EXISTS `spring_security_demo_plaintext`;
CREATE DATABASE IF NOT EXISTS `spring_security_demo_plaintext`;
USE `spring_security_demo_plaintext`;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
@LunaticWolf
LunaticWolf / pom.xml
Created August 13, 2018 11:47
final pom
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.nucleus</groupId>
<artifactId>SpringHibernate</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>SpringHibernate Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>