Guest User

Untitled

a guest
May 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <Context>
  3.  
  4. <WatchedResource>WEB-INF/web.xml</WatchedResource>
  5.  
  6. <Realm className="org.apache.catalina.realm.JDBCRealm"
  7.  
  8. driverName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
  9.  
  10. connectionURL="jdbc:sqlserver://ip:porta;databaseName=dbname;user=user;password=pass"
  11.  
  12. userTable="user" userNameCol="username" userCredCol="pass"
  13.  
  14. userRoleTable="roles" roleNameCol="rolename"
  15.  
  16. digest="SHA-256"/>
  17.  
  18. </Context>
  19.  
  20. <plugin>
  21. <groupId>org.apache.tomcat.maven</groupId>
  22. <artifactId>tomcat7-maven-plugin</artifactId>
  23. <version>2.2</version>
  24. <configuration>
  25. <port>9090</port>
  26. <path>/</path>
  27. <contextFile>src/main/resources/tomcat/context.xml</contextFile>
  28. </configuration>
  29.  
  30. <dependencies>
  31. <dependency>
  32. <groupId>com.microsoft.sqlserver</groupId>
  33. <artifactId>mssql-jdbc</artifactId>
  34. <version>${mssql-jdbc.version}</version>
  35. </dependency>
  36. </dependencies>
  37. </plugin>
Add Comment
Please, Sign In to add comment