• 大小: 19.21MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-06
  • 语言: Java
  • 标签: 论坛  

资源简介

基于Java开发的论坛系统,内置mysql数据库,自动建立索引,里面包含安装教程。

资源截图

代码片段和文件信息

package com.ibeetl.bbs;


import java.util.HashMap;
import java.util.Map;

import javax.sql.DataSource;

import org.beetl.core.resource.ClasspathResourceLoader;
import org.beetl.ext.spring.BeetlGroupUtilConfiguration;
import org.beetl.ext.spring.BeetlSpringViewResolver;
import org.beetl.sql.core.ClasspathLoader;
import org.beetl.sql.core.Interceptor;
import org.beetl.sql.core.SQLManager;
import org.beetl.sql.core.UnderlinedNameConversion;
import org.beetl.sql.core.db.MySqlstyle;
import org.beetl.sql.ext.DebugInterceptor;
import org.beetl.sql.ext.spring4.BeetlSqlDataSource;
import org.beetl.sql.ext.spring4.BeetlSqlScannerConfigurer;
import org.beetl.sql.ext.spring4.SqlManagerFactoryBean;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.core.env.Environment;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternUtils;

import com.alibaba.druid.pool.DruidDataSource;
import com.ibeetl.bbs.common.Const;
import com.ibeetl.bbs.dao.BbsModuleDao;
import com.ibeetl.bbs.util.Functions;
import com.ibeetl.bbs.util.lucene.LuceneUtil;


@SpringBootApplication
@EnableCaching
public class BbsMain extends SpringBootServletInitializer  {

@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(BbsMain.class);
    }

public static void main(String[] args) throws Exception {
        SpringApplication app = new SpringApplication(BbsMain.class);
        app.setBannerMode(Banner.Mode.OFF);
//        PageQuery.DEFAULT_PAGE_SIZE =10 ;
        app.run(args);

    }

    @Bean(initMethod = “init“ name = “beetlConfig“)
    public BeetlGroupUtilConfiguration getBeetlGroupUtilConfiguration(@Qualifier(“functions“) Functions fn final BbsModuleDao moduleDao) {

        BeetlGroupUtilConfiguration beetlGroupUtilConfiguration = new BeetlGroupUtilConfiguration();
        ResourcePatternResolver patternResolver = ResourcePatternUtils.getResourcePatternResolver(new DefaultResourceLoader());

        try {
            ClasspathResourceLoader cploder = new ClasspathResourceLoader(“/templates“);
            beetlGroupUtilConfiguration.setResourceLoader(cploder);

            beetlGroupUtilConfiguration.setConfigFileResource(patternResolver.getResource(“classpath:beetl.properties“));
            Mapject> functionPackages = new HashMapject>();
            functi

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-02-22 18:47  beetl-bbs\
     文件        1447  2017-02-22 18:46  beetl-bbs\.classpath
     目录           0  2017-02-22 18:31  beetl-bbs\.git\
     文件          27  2017-02-22 18:31  beetl-bbs\.gitignore
     目录           0  2017-02-22 18:31  beetl-bbs\.git\branches\
     文件         276  2017-02-22 18:31  beetl-bbs\.git\config
     文件         121  2017-02-22 18:31  beetl-bbs\.git\FETCH_HEAD
     文件          23  2017-02-22 18:31  beetl-bbs\.git\HEAD
     目录           0  2017-02-22 18:31  beetl-bbs\.git\hooks\
     文件        8640  2017-02-22 18:31  beetl-bbs\.git\index
     目录           0  2017-02-22 18:31  beetl-bbs\.git\logs\
     文件         140  2017-02-22 18:31  beetl-bbs\.git\logs\HEAD
     目录           0  2017-02-22 18:31  beetl-bbs\.git\logs\refs\
     目录           0  2017-02-22 18:31  beetl-bbs\.git\logs\refs\heads\
     文件         140  2017-02-22 18:31  beetl-bbs\.git\logs\refs\heads\master
     目录           0  2017-02-22 18:31  beetl-bbs\.git\logs\refs\remotes\
     目录           0  2017-02-22 18:31  beetl-bbs\.git\logs\refs\remotes\origin\
     文件         154  2017-02-22 18:31  beetl-bbs\.git\logs\refs\remotes\origin\master
     目录           0  2017-02-22 18:31  beetl-bbs\.git\objects\
     目录           0  2017-02-22 18:31  beetl-bbs\.git\objects\info\
     目录           0  2017-02-22 18:31  beetl-bbs\.git\objects\pack\
     文件       81628  2017-02-22 18:31  beetl-bbs\.git\objects\pack\pack-432e8b935aff7adbec35efd69d440cebbadd603b.idx
     文件    19642718  2017-02-22 18:31  beetl-bbs\.git\objects\pack\pack-432e8b935aff7adbec35efd69d440cebbadd603b.pack
     目录           0  2017-02-22 18:31  beetl-bbs\.git\refs\
     目录           0  2017-02-22 18:31  beetl-bbs\.git\refs\heads\
     文件          41  2017-02-22 18:31  beetl-bbs\.git\refs\heads\master
     目录           0  2017-02-22 18:31  beetl-bbs\.git\refs\remotes\
     目录           0  2017-02-22 18:31  beetl-bbs\.git\refs\remotes\origin\
     文件          41  2017-02-22 18:31  beetl-bbs\.git\refs\remotes\origin\master
     目录           0  2017-02-22 18:31  beetl-bbs\.git\refs\tags\
     文件        1293  2017-02-22 18:35  beetl-bbs\.project
............此处省略229个文件信息

评论

共有 条评论