Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' encoding='utf-8'?>
- <Context>
- <WatchedResource>WEB-INF/web.xml</WatchedResource>
- <Realm className="org.apache.catalina.realm.JDBCRealm"
- driverName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
- connectionURL="jdbc:sqlserver://ip:porta;databaseName=dbname;user=user;password=pass"
- userTable="user" userNameCol="username" userCredCol="pass"
- userRoleTable="roles" roleNameCol="rolename"
- digest="SHA-256"/>
- </Context>
- <plugin>
- <groupId>org.apache.tomcat.maven</groupId>
- <artifactId>tomcat7-maven-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <port>9090</port>
- <path>/</path>
- <contextFile>src/main/resources/tomcat/context.xml</contextFile>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>com.microsoft.sqlserver</groupId>
- <artifactId>mssql-jdbc</artifactId>
- <version>${mssql-jdbc.version}</version>
- </dependency>
- </dependencies>
- </plugin>
Add Comment
Please, Sign In to add comment