自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(45)
  • 收藏
  • 关注

转载 spring framework with JDK version

Spring Framework Versions · spring-projects/spring-framework Wiki · GitHubWe fully test and support Spring on Long-Term Support (LTS) releases of the JDK: currently JDK 8, JDK 11, JDK 17, and JDK 21. Additionally, there is support for intermediate releases

2023-10-30 10:13:34 89

原创 java.lang.UnsupportedClassVersionError

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/baeldung/MajorMinorApp has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up

2022-04-01 17:30:58 895

原创 Open web start 1.5.2

简介:1.目标代替 Java web start。官网:Java Web Start is dead. Long live OpenWebStart! - openwebstart.com2.开源3.配置手顺:The Definitive Guide To OpenWebStartOpenWebStart configuration (daimler.com)JNLP settings in the JVM managerSome settings, which derive..

2022-04-01 10:54:10 1487

原创 Apache Tomcat 9 配置 问题记录

Apache Tomcat 9 (9.0.60) - Documentation IndexCGI- Using CGIs with Apache Tomcat. JNDI Resources- Configuring standard and custom resources in the JNDI naming context that is provided to each web application. JDBC DataSource- Configuring a JNDI Data...

2022-04-01 09:58:00 947

原创 Solaris 10 时区修正

date +%Z:JST需要将其修正改为 GMT对应案:$ cat /etc/TIMEZONE## Copyright 1992, 1999-2002 Sun Microsystems, Inc. All rights reserved.# Use is subject to license terms.##ident "@(#)init.dfl 1.7 02/12/03 SMI"## This file is /etc/default/init. /etc/T

2021-12-15 15:02:55 511

原创 Linux 时区调整

背景:入手时区:date +%Z → CST客户时区:date +%Z → JST需求 同步时区设定原因:/etc/localtime指向了../usr/share/zoneinfo/Asia/Shanghai 所以是CST对应案1:ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime对应案2(未尝试):timedatectl set-timezone Asia/Tokyo对应案1 操作后利用timedatectl查..

2021-12-15 11:10:35 1297

原创 solaris10 安装oacle11g的过程中追加swap

2021-12-06 13:45:10 57

原创 Solaris 10 install oracle 11g

官网手顺:Oracle® Database Quick Installation Guide关键点截图:1.事前check:内存分配确认机器型号确认:package必须安装的确认solaris studio 安装确认:内核参数的修正:修正前:修正:1. 以root用户身份,添加group.dba项目#projadd -U oracle -p 100 group.dba2. 修改/etc/user_attr,在其中添加oracle::::proj..

2021-12-06 13:42:02 808

原创 Solaris 10 Oracle Solaris Studio 12.3 install

1.事前check:系统版本命令:cat /etc/release其余参数:dh -f最低jdk版本:1.6.0_24软件包安装确认:pkginfo -i SUNWhea SUNWarc SUNWcpp SUNWlibstdcxx4 SUNWpiclh SUNWpiclr SUNWPython-devel SUNWcar SUNWcpcu SUNWcsl SUNWcslr SUNWdpl SUNWgnome-base-libs SUNWlibC SUNWlibm SUNWlibms

2021-12-03 11:04:03 205

原创 Solaris10 jdk install (sparc)

インストール: mv /opt/software/jdk-6u21-solaris-sparcv9.sh /usr/jdk mv /opt/software/jdk-6u21-solaris-sparc.sh /usr/jdk ./jdk-6u21-solaris-sparc.sh ./jdk-6u21-solaris-sparcv9.sh 環境変数設定: /etc/profileに以下内容追記: JAVA_HOME=/usr/jdk/jdk1.6.0_21 PA

2021-12-02 15:43:44 88

原创 Solaris10 hostname 设定

以下ファイルにホスト名修正vi /etc/inet/hostsvi /etc/nodenamevi /etc/hostname.igb0vi /etc/inet/ipnodes重启机器:init 6 (优雅重启)官方说明:Submitted Tech Tip: Changing a Host Name or IP Address on the Solaris OS (oracle.com)...

2021-12-02 15:41:21 122

原创 Solaris 10 修改环境变量

前提:shell=/bin/bash (solaris 默认shell为/bin/sh 切换bash 需要修正/etc/passwd文件)1.-bash-3.2#env 查询当前用户的全部环境参数2.-bash-3.2# echo $PATH 查询当前用户的某参数3.-bash-3.2# PATH=$PATH:/usr/sbin (临时追加)4.长久追加需要写入到.profile中cc命令不识别:-bash: cc: command not found1.查找环境中是否有该命名.

2021-11-04 11:38:37 592 1

原创 Solaris 10 用户相关命令

1.创建用户:useradd -g groupName testpasswd testmkdir -p /export/home/testchown test /export/home/testvi /etc/passwd::/home/test修改为::/export/home/test2.创建组:groupadd testgpusermod -g testgp test3.查询全部用户信息:# more /etc/passwdroot:x:0:0:Super-U

2021-11-04 11:17:53 354

转载 Fiddler https 配置方式

出处:Fiddler安装及证书配置教程(Windows) - 柠檬草不孤单 - 博客园已检证 完美

2021-09-29 11:18:47 133

原创 maven 创建版本文件

需要每次打包的时候新建一个版本文件(eg:build.jsp)1.创建模板版本文件:buildVersion.txt@VERSIONID@.@PACKTIME@2.追加maven-antrun-plugin组件:pom.xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifa

2021-09-27 10:43:56 319

原创 maven 分环境打包

前提:多环境部署的场合,有些配置文件是需要分环境设定的。1.application.properties中配置环境的共通设定,并利用spring.profiles.include来引入外部配置文件。(也支持yml文件)spring.profiles.include=application-jdbc.properties2.pom.xml设定: <profiles> <profile> <!-- 開発環境 --> <id>.

2021-09-26 14:17:47 178

原创 maven spring boot hot-dev

1.pom.xmlの配置: <!-- springboot dev用(hot-load) --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <scope&gt

2021-09-26 11:03:23 743

原创 maven 父子&modules

1.POM 的父子关系:2.三个工程之间的调用关系:3.打包顺:sub1-Proj→sub2-Proj→war-Proj在parent工程中追加: <modules> <module>../sub1-Proj</module> <module>../sub2-Proj</module> <module>../war-Proj</module> </modules>直..

2021-09-24 16:01:49 479

原创 maven maven-compiler-plugin

1.版本:http://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin2.常用配置: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <config

2021-09-24 11:31:32 110

原创 log4j・log4j2のカスタマイズAppender

log4j自定义Appender:最简单的办法就是找到已有的appender继承后重写其方法:例如:public class CustomDailyRollingFileAppender extends DailyRollingFileAppender { private static final String HOST_NAME; static { HOST_NAME= System.getProperty("hostname"); } pu

2021-08-25 16:12:52 192

原创 ibatisのウェブサイト変更

ibatisのXML(xxxx.xmlなど)に宣言部:<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd" >でも、sql-map-2.dtdがhttp://www.ibatis.com/dtd/sql-map-2.dtdにダウンロードできません。コンパイルエラー:Error while downloading 'http://www.i

2021-08-25 14:52:33 83

原创 log4j 1.x⇒log4j 2.x

1.官网下载地址:Log4j – Download Apache Log4j 22.官方说明网站:Log4j2 中文文档 - 从 Log4j 1.x 迁移 | Docs4dev3.必要依赖包:log4j-api-2.14.1.jarlog4j-core-2.14.1.jarlog4j-1.2-api-2.14.1.jar4.关于log4j-1.2-api-2.14.1.jarTo use the Log4j Legacy Bridge just remove all the Log4

2021-08-25 14:08:56 112

原创 @SafeVarargs

jdk 1.7以后追加的作用:注解抑制编译器警告。在声明具有模糊类型(比如:泛型)的可变参数的构造函数或方法时,Java编译器会报unchecked警告@SafeVarargs注解不适用于非 static 或非 final 声明的方法。由Java源代码声明我们了解到:@SafeVarargs注解,只能用于标记构造函数和方法,由于保留策略声明为RUNTIME,所以此注解可以在运行时生效。package java.lang;import java.lang.annotation.*;@

2021-08-09 09:41:32 449

原创 ant 学习 1

1.读取系统环境变量 以及echo命令 <property environment="env"/> <property name="env.home" location="${env.HOME}"/> <echo message="env.home=${env.home}" />2.<tstamp/>:Sets the DSTAMP, TSTAMP, and TODAY properties in the current projec.

2021-08-03 11:15:26 50

原创 create view select from synonym

oracle11g升级19c 导入view时出现问题CREATE OR REPLACE VIEW USR1.TEST AS SELECTEMP_ID from synonym_name;11g执行成功19c执行失败原因:The FROM clause of the defining subquery of the view can reference only a single existing database table. Joins are not permitted. The.

2021-07-30 10:37:35 106

原创 Oracle 常用sql

1.一个ORACLE上有多个数据库的时候,在sqlplus中如何切换通过ORACLE_SID 来进行切换2.查看能管理的所有用户3.查找有多少个表空间4. 当前用户所绑定的表空间select username,default_tablespace from dba_users;5.查看数据库里面所有用户select * from dba_users;6.启动报错ORA-01102传送门:Oracle启动数据库报ORA-01102解决办法 - Gnnnny -.

2021-07-09 18:23:26 59

原创 Oracle database 19c client on windows10

1.解压【windows\WINDOWS.X64_193000_client.zip】2.执行【/WINDOWS.X64_193000_client/client/setup.exe】

2021-07-08 14:34:00 449

原创 windows上Oracle 19c 卸载

1.按住win+R,输入services.mscOracle开头的service 停止。2.运行卸载Oracle数据库程序 (Universal Installer 工具)勾选的时候不要勾选Oracle_Home,然后删除3.删除注册表在命令窗口,输入regedit,打开注册表HKEY_LOCAL_MACHINE\SOFTWARE,找到oracle,删除HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services,删除所有or.

2021-07-06 17:24:19 5944

原创 sqlserver 把list转为xml进行传递,并在存储过程中进行大数据量插入

ALTER PROCEDURE [dbo].[SR_Test]( @doc VARCHAR(MAX))ASBEGINDECLARE @idoc INT;--Create an internal representation of the XML document. EXEC sp_xml_preparedocument @idoc OUTPUT, @doc;-- Execute a SELECT statement that uses the OPENXML rowset pr...

2021-06-01 14:29:49 351

原创 利用DateFormat.getDateInstance获取日期格式和jdk版本的关系

利用DateFormat.getDateInstance获取日期格式和jdk版本的关系:jdk版本:oraclejdk1.8.0_131和open jdk 11以及OpenJDK8U-jdk_x64_windows测试case: public static void main(String[] args) { Locale locale = new Locale("ja", "JP"); SimpleDateFormat df = (Simple...

2021-05-21 10:40:01 542

原创 SQL Server的变态参数

1.2100最大的参数个数2.2100最大的存储过程参数个数3.1000 insertvalues中values不能超过1000行Maximum capacity specifications for SQL Server - SQL Server | Microsoft Docs

2021-05-20 14:18:07 76

原创 MyBatis批量插入(sqlserver BULK INSERT)

MyBatis批量插入:1.foreach方式2.sqlsession +sqlsession.flushStatements方式:// SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false);//// logger.debug("mybatis sql batchinsert start");// long start = System....

2021-05-20 14:14:06 3569

原创 MyBatis Dynamic SQL

mybatis通常的insert方式:MyBatis Dynamic SQL – Insert Statements

2021-05-20 14:00:31 33

原创 java 基础 try catch的两种写法

老的写法: try { Connection con = DataSourceUtils.getConnection(dataSourceTransactionManager.getDataSource()); } finally { con.close(); }1.8以后的写法: try (Connection con = DataSourceUtils.getConnection(dataSourceTransactionManage...

2021-05-20 13:56:33 1238

原创 使用maven-assembly-plugin 在生成war的同时生成jar

官网:Apache Maven Assembly Plugin – Filtering Some Distribution Files打jar包:主要是使用\projNm\src\main\webapp\WEB-INF\classes目录下的编译路径进行打包mvn cleanmvn buildmvn assembly:single projNm\target下面生成projNm-0.0.1.jarmvn installprojNmのPom.xml1.修改maven-install...

2021-01-25 16:07:18 322

翻译 spotbugs Filter file文件过滤器

参考网站:Filter file — spotbugs 4.2.0 documentationFindBugs filter 编写过滤文件配置 - viakiba - OSCHINA - 中文开源技术交流社区Chapter8.Filter Files (sourceforge.net)メモ:Filter files may be used to include or exclude bug reports for particular classes and methods.A ..

2021-01-22 15:10:26 903

原创 spotbugs追加插件以及配置

SpotBugs 插件SpotBugs 还有对应的额外插件,用于扩展对应的规则,探测出更多的代码问题。1.findsecbugs-plugin 追加130条规则 <plugin> <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-maven-plugin</artifactId> <version>${spotbugs.vers

2021-01-19 18:01:15 1146

原创 SpotBugs-Maven-Plugin配置

1.pom.xml设定:<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apa

2021-01-19 17:17:09 2490

翻译 WACs の基礎情報

はじめにWACsとは、IBMが提供するフレームワークで、WebSphere Application Server 周りのドキュメントに目を通していると出てくることがあります。Googleで検索してもドキュメントがあまり見当たらないので簡単にポイントを備忘としてメモしておきました。読み方は「ワックス」と呼ばれていますが、RAD同様にアプリケーション開発基盤として採用している現場は見かけます。WACs の基礎情報役割IBMが提供する開発フレームワークです。Javaアプリケーション・シス

2020-09-07 19:38:20 2387

原创 BCompare.exe Command line参数详解

BeyondCompare 官网地址:http://www.scootersoftware.com/v4help/Command line executable files:(win64)BCompare.exe This is the main application. BComp.exe This is a Win32 GUI program. BComp.com...

2020-04-29 16:19:29 1181

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除