自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(178)
  • 资源 (1)
  • 问答 (3)
  • 收藏
  • 关注

原创 Java delete if exists

【代码】Java delete if exists。

2024-03-11 17:06:19 373

原创 Java delete file

【代码】Java delete file。

2024-03-11 17:02:54 355

原创 Java move files

【代码】Java move files。

2024-03-11 16:54:25 378

原创 java file copy

package sample;import java.nio.file.Files;import java.nio.file.Path;import java.nio.file.Paths;public class CopyExample1 {public static void main(String[] args) throws Exception {Path source = Paths.get("foo/bar/note.txt");Path target = Paths.get("temp/bar

2024-03-11 15:18:45 329

原创 Java create file

package sample;import java.nio.file.Files;import java.nio.file.Path;import java.nio.file.Paths;public class PathExample3 {public static void main(String[] args) throws Exception {Path path = Paths.get("temp/bar/note.txt");Files.createFile(path);}}

2024-03-11 15:08:03 376

原创 Java Directory

Files;try {;

2024-03-11 14:48:18 356

原创 Interface Path

package sample;import java.nio.file.Path;import java.nio.file.Paths;public class PathExample1 {public static void main(String[] args) {Path p = Paths.get("C:/work/docs/note.txt");System.out.println(p);System.out.println(p.getRoot());System.out.println(p.ge

2024-03-11 14:33:36 325

原创 DAO Java

try {return con;try {\n" + e);if (smt!= null) {try {if (con!= null) {try {try {\n" + e);if (smt!= null) {try {if (con!= null) {try {try {

2024-03-10 13:56:58 890

原创 Spring Boot Architecture

2024-03-10 07:15:06 314

原创 DAO(Data Access Object)

1.add.ctp2.index.ctp3.controller

2024-03-10 06:34:08 332

原创 Entity

Enity<---------------->1 line in table

2024-03-03 09:31:46 293

原创 Object Relational Mapping(ORM)

2024-03-03 09:21:03 344

原创 Spring Starter Project

/DependencyInjectionSample/src/main/java/com/example/demo/chapter03/used/Greet.java/DependencyInjectionSample/src/main/java/com/example/demo/chapter03/used/MorningGreet.java/DependencyInjectionSample/src/main/java/com/example/demo/chapter03/used/EveningGre

2024-03-02 11:09:26 436 1

原创 Dependency Injection

sprintf—Return a formatted stringsprintf(string$format,mixed...$values) :string|false

2024-03-02 09:46:46 346

原创 Javadoc自动生成

Alt+Shift+j

2024-03-02 08:42:34 314

原创 Sping MVC Model

4.

2023-07-30 09:11:33 958

原创 Javadoc comment自动生成

按下Alt + Shift + j。

2023-07-29 08:33:35 312

原创 DAO(Data Access Object)

(Servlet)CompileTomcatCompile。

2023-07-16 13:40:58 326

原创 JavaBeans

①②③ complie④ Tomcat⑤。

2023-07-16 10:20:55 222

原创 netstat -nao | find “8080“

Tomcat port

2022-11-06 13:00:58 242

原创 Web Application Folder

C:\work\tomcat\webapps\book

2022-11-06 10:59:19 61

原创 Servlet修改后可以不用重启Tomcat

Before1.Servlet (Hello.java)编译编译javac -encoding utf-8 -d ..\classes -sourcepath . chapter3\Hello.java生成Hello.class2.启动Tomcat3.运行http://localhost:8080/book/chapter3/helloServlet修改后可以不用重启Tomcat 的方法演示如下1.编写文件context.htmlC:...

2021-09-04 10:52:49 370

原创 Servlet编译

1.编译Servlet文件Hello.javajavac -encoding utf-8 -d ..\classes -sourcepath . chapter3\Hello.java生成Hello.class2.启动tomcat3.运行http://localhost:8080/book/chapter3/hello

2021-09-04 08:39:39 277

原创 javax.servlet不存在

1.编译Servlet (Hello.java)的时候,提示 javax.servlet不存在2.原因Classpath的设置有问题3.调查开始-输入cmd,输入下面代码echo %classpath%.;C:\Program Files\Java\jdk1.8.0_171\lib\tools.jar;C:\Program Files\Java\jdk1.8.0_171\lib\dt.jarC:\work\tomcat\lib\servlet-api.jar4.改..

2021-09-04 08:12:47 260

原创 Java throw throws

1.throwfunction内部throwsfunction外部2.throw 后面只能一次抛出一个异常throws可以一次抛出若干异常,异常之间用逗号分开

2021-03-05 11:10:01 84 1

原创 margin 0 auto

居中margin : 0 automargin-top:0;margin-right:auto;margin-bottom:0;margin-left:auto;

2020-11-23 09:07:29 178

原创 Android 网站页面内容控制在手机屏幕内

<meta name="viewport" content="width=640px, user-scalable=no, target-densitydpi=device-dpi">

2020-11-19 13:18:59 150

原创 PHP json_encode()

private $data =[......];echo json_encode($this->data[$id]);

2020-11-19 09:06:24 93

原创 this->Html

$this->Html->scriptStart(array('inline' => false));$this->Html->scriptEnd();$this->Html->css(filename [, ] );echo $this->Html->css('forms');<link rel="stylesheet" href="/css/forms.css" />

2020-11-18 16:43:34 113

原创 CakePHP find()

$this->model name->find('all',array('fields' => array('id','last_name','first_name'),'conditions' => array('Model.id' => 10),'order' => array('id' => 'asc'),'limit' =&gt...

2020-11-18 15:50:02 114

原创 PHP strpos

strpos(string$haystack,mixed$needle[,int$offset= 0] ) :int

2020-11-18 15:28:03 170

原创 PHP array_key_exists()

array_key_exists(mixed$key,array$array) :boolChecks if the given key or index exists in the array

2020-11-18 15:14:41 98

原创 CakePHP 3.9.3 autoRender

public $autoRender = false; Controller $autoRender = false action                            ↓ Web browser

2020-11-18 15:04:05 112

原创 PHP sprintf()

sprintf(string$format,mixed...$values) :string|false%02dE%02 包含0在内2位dintegerEscientific notation

2020-11-18 14:38:31 126

原创 CakePHP array

$name = array('Tom', 'Lili', 'Kate');print $name[0];print $name[1];print $name[2];$name = array('Tom' =>'CN', 'Lili' =>US, 'Kate' =>JP);print $name['Tom'];print $name['Lili'];print $name['Kate'];

2020-11-18 11:21:30 67

原创 CakePHP foreach

foreach( $arrayname as $key =>$value){print $key;print $value;print '<br />';}

2020-11-18 11:16:29 83

原创 CakePHP HTML helper link method

$this->Html->link('title', ['controller' => 'controllername ', 'action' => 'action name','parameter']);

2020-11-18 11:06:16 215

原创 Html Placeholder

index.html<!DOCTYPE html><html><body><h1>placeholder</h1><form action="/test.html"> <label for="phone">Enter a phone number:</label><br><br> <input type="tel" id="phone" name="pho..

2020-11-17 08:52:05 95

原创 notepad++ 代码带颜色

Settings----StyleConfiguratorSelect theme:BespinLanguage----P----PHP

2020-11-16 06:38:16 7044

原创 页面浮动按钮固定在右下角

footer.php<div style="z-index: 9999; position: fixed ! important; right: 0px; bottom: 0px;"><table width="100%" style="position: absolute; right: 0px; bottom: 0px;"><tr><td><ul> <li><a href="https://xxxxx...

2020-11-15 16:04:03 1569

Win10 Delphi Help.zip

解决的问题:win10安装完Delphi7之后,在代码编写的时候,任意选中代码,点击F1无法显示Delphi Help的文档。 解决方案: 下载Win10 Delphi Help.zip,解压缩,然后打开Win10 Delphi Help.的文件夹,右键点击install.cmd,选择管理员身份运行。重新启动Delphi7,就会发现,编写代码的时候,任意选中代码,点击F1,显示Delphi Help文档。

2020-03-29

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

TA关注的人

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