Problem Fix List(always update)

ORACLE 11G R2安装

安装步骤

安装步骤地址

报错处理一

ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/data/oracle/product/11.2.0/db_1/dbs/initorcl.ora

处理方案

报错处理二

ORA-00205: error in identifying control file, check alert log for more info

处理方案

具体操作步骤:

  • 使用命令dbca创建数据库jc中,去/usr/oracle/app中执行如下命令:即可拿到control_files路径。
    find . -name control0*
  • 在SQL>窗口中执行如下命令,看control_files的路径如查找到的是否一致
show parameter control_files
alter system set control_files='/usr/oracle/app/oradata/jc/control01.ctl'  scope=spfile;
alter system set control_files='/usr/oracle/app/flash_recovery_area/jc/control02.ctl'  scope=spfile;

Oralce数据库配置文件

.bash_profile
initjc.ora

linux 版 ORACLE自启

参见博客

Oracle数据库 字符集中文乱码

参见博客


java开发类报错

Springboot启动时报错 org.springframework.boot不存在

建议采用方法二在终端中输入mvn idea:idea,方法一在Spring Boot 项目中,运行其他Main方法测试类的时候会重新启动SpringBoot 工程,如果你还从ApplicationContext中获取,那么将会收到报错容器已经关闭。
参见博客

spring boot源码运行SpringApplication时报错

Could not find artifact lifecycle-mapping:lifecycle-mapping:jar:sources:1.0.0
参见博客

处理Maven远程仓库下载不到jar包问题

先去Maven Repository找到对应的依赖,并下载。

去下载目录下执行如下命令,注意替换掉-DgroupId,-DartifactId,-Dversion,-Dfile
mvn install:install-file -DgroupId=io.confluent -DartifactId=kafka-schema-registry-client -Dversion=4.1.0 -Dpackaging=jar -Dfile=kafka-schema-registry-client-4.1.0.jar

SQL查询时 null值封装回int类型报 UncategorizedSQLException

将BO属性从int改为Integer类型

rg.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];

参见博客

SQL查询返回集合类型时时null还是空集合?

  • 如果查询结果集为空,则返回空集合;
  • 如果结果集外还套一层分组函数select nvl(sum(a.xxx),default_value) from (select xxx from table_name);那么一定回返回带一条数据的集合

使用Tomcat启动服务出现依赖冲突问题

  1. 解决方案 查看报错信息 根据提示找到冲突的类,定位到对应的jar中(直接搜索类名就行了 including no-project items)
  2. 去tomcat lib目下查看相关jar;去项目导入的依赖中找到jar。
  3. 首先要确定 jar的版本 与当前工程相关的东西是否匹配,如果匹配,则可以进行去除一边的jar包进行测验。一般都能解决问题

jasper后台,如果打印的模板需要动态区太多,以前封装的框架不够用,怎么办?

这个时候重写框架 ,可能太令人f**k了。当然你也可以找新的版本的POI框架 看看有没有相应的扩展点。

此处不讨论新POI框架的内容;采取只修改jasper文件的方案:

  1. 选择文本框一定要是text field 不能是static text
  2. 在框内写上三元表达式,然后勾选上remove line when blank and blank when null
  3. 预览效果 此处是表达式为1==2?"a":null的效果图

转载请注明 原文地址

原文地址:https://www.cnblogs.com/whalefall541/p/13616077.html