`
ithoney
  • 浏览: 3899 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
Spring security用户权限数据库配置:将用户角色和用户名都放在一张表里面(suser) 在上文中xml配置文件换成: <bean id="datasource" class= "org.springframework.jdbc.datasource.DriverManagerDataSource" >  <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>  &l ...
最近学习了一系列关于Spring security安全框架,不知道在项目中使用的多不多? jar在官网下载:最新Spring Security 3.2.0.M2地址:http://www.springsource.org/download/community 一下用的是静态数据,没有连接数据库 web.xml配置: <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.Deleg ...
前段时间看了lucene,最近在学习solr刚刚搭建了一个环境。 1、tomcat:apache-tomcat-6.0.36 2、SOLR:solr-4.1.0 (我放在E盘根目录下) 打开目录solr-4.1.0/example/solr;确保solr目录有以下文件存在: solr/conf/solrconfig.xml; solr/conf/schema.xml; solr/data;[default index dir] 3、新增solr.xml在tomcat如下目录:{$TOMCAT}/conf/Catalina/localhost/下: <?xml version="1 ...
引入jar包:: lucene-analyzers-3.6.1.jar lucene-core-3.6.1.jar lucene-highlighter-3.6.1.jar (高亮效果) 首先,将需要检索的数据用内定的方式创建索引,(这里创建索引保存在硬盘) 1、新建一个config.properties #路径 indexPath=C:/lucene-doc 2 ...
Global site tag (gtag.js) - Google Analytics